Hi Nikhil,
One thing I have found is that you can use "Select Item" action on the dropdown (<SELECT> tag) item you wish to pick. If you manually expand the list by clicking on the control, the item will actually be highlighted. Highlighting the item in the list does have one advantage, that you can select it by using the ENTER key. This should in turn trigger the on page mechanism to select the item for you.
I would recommend the following steps to achieve what you wanted:
a. use "Select Item" action on the dropdown (<SELECT> tag) item that you wish to pick
b. do exactly what I advised in the last post
c. send one additional "ENTER" key to the dropdown control to confirm the selection
------------------------------
Bruce Liu
Senior Product Consultant, Professional Services
Blue Prism
Australia/Sydney
------------------------------
Original Message:
Sent: 09-08-2020 10:37
From: Nikhil Sathe
Subject: Click does not work on web element in Chrome
Hi Bruce
Adding an window element by spying with Win32 definitely helped!! It gave some control over the elements.
However it seems that website itself is bit tricky. I am struggling to select an element from the list or type into the text box. The responses are erratic.
Thanks!
Nikhil
------------------------------
Nikhil Sathe
Sr Consultant
Capgemini Technology Services
Original Message:
Sent: 09-08-2020 01:31
From: Bruce Liu
Subject: Click does not work on web element in Chrome
Hi Nikhil,
If you explore the HTML code behind, you can tell that the dropdown is not a standard HTML control. It actually consists of two parts, the standard dropdown control and a DIV which displays the selected value. This is the reason why this control can be difficult to interact with and BP may not work in the expected manner.
Using Chrome browser mode, you may follow the steps below to achieve the effect of click:
1. Spy the browser window in Win32
2. Spy the dropdown "<SELECT>" element using Chrome mode
3. Add a step in a Navigate stage so it activates the browser Window spied in 1
4. Add another step to the same Navigate stage so it sends an ENTER key using "Global Send Keys" to the dropdown element
5. If necessary, add another step between step 3 and step 4 so it performs "Select" on the dropdown element
6. Add some interval between each Navigate stage step, e.g. one second.
------------------------------
Bruce Liu
Senior Product Consultant, Professional Services
Blue Prism
Australia/Sydney
Original Message:
Sent: 09-03-2020 22:13
From: Bruce Liu
Subject: Click does not work on web element in Chrome
Hi Nikhil,
You may try spy the element using UIA mode and then use "Global Mouse Click Centre" action.
------------------------------
Bruce Liu
Senior Product Consultant, Professional Services
Blue Prism
Australia/Sydney
Original Message:
Sent: 09-03-2020 10:20
From: Nikhil Sathe
Subject: Click does not work on web element in Chrome
Hello
I am using BP v6.7.2, Chrome 84, BP Chrome extension 2.1.0.
I spied few elements on a website without any issues and they get Highlighted quickly too.
For a couple of elements I have an issue. In Navigate step I am giving Click/Select/Select List Item etc. but nothing actually works and it does not give any error too! It just moves ahead to the next step. The further steps including other elements work as desired.
The website I use is -
https://www1.nseindia.com/live_market/dynaContent/live_analysis/top_gainers_losers.htm
Thanks in advance!
------------------------------
Nikhil Sathe
Sr Consultant
Capgemini Technology Services
------------------------------