Skip to main content
Cadet | Tier 2
April 16, 2023
Question

Passing a Number Variable to a Webpage

  • April 16, 2023
  • 4 replies
  • 168 views

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

Navigator | Tier 3
April 16, 2023

Convert number to string and use this string representation instead.

MoSabAuthor
Cadet | Tier 2
April 17, 2023

I have trued this but still get the same issues.

Flight Specialist | Tier 4
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
Navigator | Tier 3
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

 

Lets Automate !