Skip to main content
Question

Passing a Number Variable to a Webpage

  • April 16, 2023
  • 4 replies
  • 103 views

Forum|alt.badge.img+1

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
  • April 16, 2023

Convert number to string and use this string representation instead.


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

I have trued this but still get the same issues.


Forum|alt.badge.img+9
  • 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
Forum|alt.badge.img+17
  • 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