Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find xpath to type - consider visual automation method for tricky scenarios #875

Closed
bharatiprashant opened this issue Oct 8, 2020 · 4 comments
Labels

Comments

@bharatiprashant
Copy link

bharatiprashant commented Oct 8, 2020

Hi i couldn't find a solution to this problem

i am trying to type name and email address in the field but i am unable to do so. it say it couldn't find the path. please spare few minute to look into my problem i adding the script. thank you in advance

webex.zip

@kelvinl22
Copy link

Hi coolmonster,

Instead of using XPath, the script below works:

  1. http://meetingsapac50.webex.com/meet/pr1651191506
  2. wait 3 seconds;
  3. keyboard [esc]
  4. wait 1 seconds;
  5. keyboard [tab][tab][tab]
  6. wait 1 seconds;
  7. keyboard [enter]
  8. wait 3 seconds;
  9. keyboard My Full Name[tab]
  10. keyboard [email protected]

Seems kind of challenging to construct XPath, your path seems ok but I encounter issue too:

ERROR - cannot find //*[@id="meetingSimpleContainer"]/div[2]/div[3]/input

... had tried and failed with the following too:

Truly painful to get XPath to work.

@kelvinl22
Copy link

... by the way, at script line 3, sending [Esc] key is to rid the Chrome pop-up ('Open Cisco Webex Meeting' - see screenshot below), so that subsequent 3 tabs would position cursor to the 'Join from your browser'.

Open link with Webex app

@bharatiprashant
Copy link
Author

bharatiprashant commented Oct 9, 2020

Thank you for the solution truly grateful. but line number 9 and 10 types in terminal.

@kensoh
Copy link
Member

kensoh commented Nov 23, 2020

Hi @coolmonster and @kelvinl22, sorry I was away the past few months - tebelorg/RPA-Python#144

Yes, using XPath is powerful but there are still tricky situations, eg in frames, and popup box like above.

Such dialog boxes can block execution of TagUI, thus control is not returned to TagUI until user manually clicks.

What @kelvinl22 shared is a workaround. If 9 and 10 types into the terminal, then just add a step before that to click on the browser to set it in the foreground. Some actions may cause browser to be away from foreground, try to replicate the same steps as a normal user manual actions.

@kensoh kensoh changed the title cannot find xpath to type cannot find xpath to type - consider visual automation method for tricky scenarios Nov 23, 2020
@kensoh kensoh added the query label Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants