Write Data Item with special characters using Global Send Keys

moranmarc13

New Member
Hi all,

I have a field on a webpage which is easily identified when there is no input held within it, as it has a UIA Name unique to that field. However, after you begin to type to the field, a dropdown list appears, and the name of the field disappears, meaning that the UIA name cannot be included within the criteria as it won't always be there. The easiest way to remove the list (and confirm your entry) is to press TAB.

View attachment 1576056300763.png

What I am currently doing is writing to the field across three actions:
View attachment 1576056437336.png

Firstly, it presses the right arrow 25 times, and presses the backspace button 25 times (for some reason using ^A to select all and then backspace wouldn't work.
Secondly it writes the data item I have set up for the field value.
Finally it will press Tab in the field.

The final step of pressing tab is what fails because the name has been removed. What I want to do is to do all three of these actions in one line, but I can't get the syntax right. Can someone advise?

Thanks in advance
 

moranmarc13

New Member
Sorry guys, I had a mindflash just after I posted this.

To anyone that looks at this thread in future, the solution is:

"{RIGHT 25}{BKSP 25}"&[dataItem]&"{TAB}"

Obviously replace each part with your own buttons/data items :)
 
Top