Support Portal

for ProcessRobot and WinAutomation

Start a new topic

Possibility to focus 2 or more selectors with exactly the same html code

Let's see:


I want to export client data from our system to google contacts.

When customer has 1 tel. number - no problem, I can select needed fields with class custom selector.

When customer has 2 tel. numbers one has to click + button in Google contacts and second row with number and type of number appear.


Now 1st and 2nd tel. number selectors have the same html values.

For example:

1st number row:

<input type="tel" class="whsOnd zHQkBf" jsname="YPqjbf" autocomplete="tel" tabindex="0" aria-label="Phone" value="test" dir="ltr" data-initial-value="test1" badinput="false">


2nd row:

<input type="tel" class="whsOnd zHQkBf" jsname="YPqjbf" autocomplete="tel" tabindex="0" aria-label="Phone" value="" data-initial-value="test2" badinput="false" dir="ltr">


(values were written by me).


As we can see they are exactly the same. I can find 1st row with class manual selector. But how can I select 2nd one?


Thanks!

1 Comment

ADMIN

Hello,


Try to use    > input:eq(2).


That may work for your requirement.

Login or Signup to post a comment