31-10-24 03:55 PM
I'm encountering issues with entering a date in the website's input field and selecting a specific option from a dropdown list, which should also allow text entry and pressing enter. The actions don’t appear on the site, and no errors are shown. I’ve also tried using Global Send Keys within a navigation stage but it is still not successful. Could you please help?
Answered! Go to Answer.
01-11-24 11:15 AM
Hi
UI mode is often my last resort anyway i would normally find it easier to work with browser mode. Ive had similar issues with writing to elements as youve described and its a bit of trial and error to get it working but here are some things that have resolved similar issues for me. In the navigate stage you have 3 steps so try adding in a pause between maybe start with a 1 second pause and see if it helps. If this doesnt work then try separating the steps out into their own navigate stages and run each step individually, with an arbitrary wait included before each navigate, i know this is a weird one but its genuinely resolved a few similar issues for me.
Also try to use global mouse click centre rather than click, also in the mouse button input add "LEFT" to define the click as left mouse click and maybe include a focus in their before the mouse click.
You can also check the element type for the dropdown and maybe change the type to something else or try adjusting the attributes to improve accuracy.
If none of these are helping then you could try including some surface automation using global send key events, add an activate to bring the page to the fore front and add global send key event with "{TAB}" in the action text field, this will perform keyboard tab function and should highlight the first field, you can add in multiple tabs to move to the field you need and include others like "{ENTER}" to click the field or button.
I know thats a lot of playing around but with web applications it can take a bit of time to find the right way to interact and without knowing the web page you are working on i cant tested it to give you a better indication of what will or wont work.
01-11-24 10:08 AM
Hi @blazino17
What spy method are you using? you should be able to spy the drop down as a drop down list and then for the navigate add the value you want to select from the list.
You may also need to add in some click actions such as Global mouse click and maybe an activate before that as well.
01-11-24 10:29 AM
I used Browser Mode to spy the elements and employed both Global Mouse Click and Global Send Key to interact with the website. However, while no error appeared, the automation moved to the next stage without any action taking place on the website as expected. Interestingly, the email section worked smoothly, but I’m currently uncertain how to resolve this issue. Please review the attached for context.Thank youu
01-11-24 10:32 AM
The UI Mode is not capturing the application so that's why i am using browser mode
01-11-24 11:15 AM
Hi
UI mode is often my last resort anyway i would normally find it easier to work with browser mode. Ive had similar issues with writing to elements as youve described and its a bit of trial and error to get it working but here are some things that have resolved similar issues for me. In the navigate stage you have 3 steps so try adding in a pause between maybe start with a 1 second pause and see if it helps. If this doesnt work then try separating the steps out into their own navigate stages and run each step individually, with an arbitrary wait included before each navigate, i know this is a weird one but its genuinely resolved a few similar issues for me.
Also try to use global mouse click centre rather than click, also in the mouse button input add "LEFT" to define the click as left mouse click and maybe include a focus in their before the mouse click.
You can also check the element type for the dropdown and maybe change the type to something else or try adjusting the attributes to improve accuracy.
If none of these are helping then you could try including some surface automation using global send key events, add an activate to bring the page to the fore front and add global send key event with "{TAB}" in the action text field, this will perform keyboard tab function and should highlight the first field, you can add in multiple tabs to move to the field you need and include others like "{ENTER}" to click the field or button.
I know thats a lot of playing around but with web applications it can take a bit of time to find the right way to interact and without knowing the web page you are working on i cant tested it to give you a better indication of what will or wont work.