Spy Element with Win 32 Mode and try to send value with the help of Global Send Keys instead of write stage.i am entering text in search box via write stage but on click search icon nothing is happening. Can anyone rectify this?
Spy Element with Win 32 Mode and try to send value with the help of Global Send Keys instead of write stage.
If Global send keys will not works then try with Global Send Key Events.
@Sachin Win32 in web it's not working for spying that element.
Actually i am giving the input in Flipkart search box.Hello gagan235,
A screenshot of the field would be very useful.
I assume that we are speaking in a search bar on some website, right? In a website the HTML in the websites has multiple layers in the same field, meaning that when you spy, you can be spying the 'hint' textbox, for example.
A good way to solve that, it's using Global Send Keys, as Sachin_Kharmal recommended.
SOLUTION:
To achieve that you need to spy the website window in Win32 and the search box in Browser/HTML mode or other.
Then create a Navigate Stage with the following 3 actions:
Element Action
Window Activate Application
Search Box Focus
Root Element Global Send Keys (Input - Text - [text to insert])
(first element of the tree)
It should work just fine. bit it really depends on the website/application structure.
Awsome it's working thanks a lot for the help.Please see the screenshot in attachment.
You need 3 elements:
- Window - Win32 to Activate Application
- Input box - UIA to Focus
- Root tree element to use Global Send Keys.
Sorry for the 'extra' elements, but I just used an old object to test.
Edit: A more reliable and faster way is to Navigate to URL.
How? Use a Navigate stage.
Element: root (first element in the tree)
Action: Navigate | Inputs: URL: "https://www.flipkart.com/search?q=" & [text to search] (your data item)
Let me know if you need more assistance.
To remove the text, you just need to write an empty data item.
But, everything you write in the search box, it should overwrite the current text.
Hello Silva,Please see the screenshot in attachment.
You need 3 elements:
- Window - Win32 to Activate Application
- Input box - UIA to Focus
- Root tree element to use Global Send Keys.
Sorry for the 'extra' elements, but I just used an old object to test.
Edit: A more reliable and faster way is to Navigate to URL.
How? Use a Navigate stage.
Element: root (first element in the tree)
Action: Navigate | Inputs: URL: "https://www.flipkart.com/search?q=" & [text to search] (your data item)
Let me know if you need more assistance.
Thanks for replying Silva.Hello MadhuG001,
Yes, that's a common issue when interacting with HTML elements with multiple layers.
The proper approach is to use a Navigate stage with 3 actions:
Window - Win32 (spy the full IE window with Win32 mode) | Activate Application
Enter Email ID | Focus
Flipkart Shopping (root element) | Global Send Keys (input: [Cell Number])
Hello Silva,Thanks for replying Silva.
Could you please explain a bit more how to enter the credentials
Thanks again