Skip to main content
Question

Passing a Number Variable to a Webpage


Forum|alt.badge.img+1
  • Cadet | Tier 2
  • 3 replies

I have recorded a web page where i would like to append or set text to a number variable. The webpage only receives a number as input. When i set/append a string variable with an assigned number no input is passed to the webpage, i have also tried using using a Any variable and no input is passed as well. When i try to use a number variable to set/append text i get a "does not return string" message. Please help

4 replies

Forum|alt.badge.img+6
  • Navigator | Tier 3
  • 142 replies
  • April 16, 2023

Convert number to string and use this string representation instead.


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 3 replies
  • April 17, 2023

I have trued this but still get the same issues.


Forum|alt.badge.img+8
  • Navigator | Tier 3
  • 63 replies
  • April 17, 2023

Try setting the focus to the text box on the web page and then use keystrokes to put the number in.


Zaid Chougle
Navigator | Tier 3
Forum|alt.badge.img+15
  • Navigator | Tier 3
  • 217 replies
  • April 18, 2023

Hi @MoSab ,

What you can do is append the text to the number → Trim it to remove any blank spaces present in the front or back→  convert the text to number → Use a click to the web page / area / text Box where you want to enter the data → Use simulate keystrokes to set the number onto the web page.

 

Let me know whether the solution works or not

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings