-
Notifications
You must be signed in to change notification settings - Fork 679
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
Headless mode cannot find element error? - bug with newer Chrome versions [fixed] #216
Comments
I don't think this is the better way to find the place in website to write your '[email protected]'. For example, if you want to write something in the comment box in GitHub you should write: r.type('//*[@id="new_comment_field"]', '[email protected]') as you write in your eg2. If you are getting an error maybe it is because your form is inside of an iframe, I had this kind of problem. Regards. |
I have run in local ubuntu It is running fine but problem in alpine docker container |
Hey @prashanttrivedi47, Hope it will help you, |
I have already tried , I have changed from chrome to headless but didn't work |
Thanks @prashanttrivedi47 for raising this! The package is not designed to run headless mode, but this should be fixed. I believe this is likely due to a bug in newer Chrome version. When it runs in headless mode, one of the parameters used can no longer support calling a relative directory but the absolute directory to the TagUI Chrome user profile is now required. More details on the issue - aisingapore/TagUI#890 Can you try make the following changes to your tagui file to see if that works. In a future release this will be fixed. The tagui file that you want to modify is ~/.tagui/src/tagui (where ~ is your user home directory) |
This is fixed in v1.31, available with |
Script running in alpine image docker container
running in chromium headless mode
can not find a xpath -
eg 1. r.type('/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input', '[email protected]'))
eg 2.
r.type('//*[@id="identifierId"]', '[email protected]')
=> this return a False and error
=>r.init() and r.url('https://www.google.com') returns True
[RPA][ERROR] - cannot find /html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input
Can you please tell me that why r.type() is returning a error ?
Note: script running normally in ubuntu but not in container docker
The text was updated successfully, but these errors were encountered: