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

Can't interact with confirmation dialog pop-up #2514

Closed
cohnhead66 opened this issue Feb 19, 2024 · 2 comments
Closed

Can't interact with confirmation dialog pop-up #2514

cohnhead66 opened this issue Feb 19, 2024 · 2 comments
Labels
duplicate The answer/solution already exists somewhere question Someone is looking for answers UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode

Comments

@cohnhead66
Copy link

Thanks to your help I was able to make a lot of progress. I have been able to get to the final automation step without triggering Captcha.

Last steps are:

  • Click "Submit" button
  • Click "Confirm" pop-up
  • Click "Exit"
  • Driver quit.

Is is when I click submit button using uc_click() the pop-up flashes briefly and then disappears, and Captcha page is displayed. and the data to be submitted is not saved.
when I a driver.reconnect("breakpoint") before the uc_click() and then click the "Submit" button manually I get the same result, (Flash of the dialog box, Captcha, and no saved data)

Any guidance appriciated

@mdmintz mdmintz added duplicate The answer/solution already exists somewhere question Someone is looking for answers labels Feb 19, 2024
@mdmintz
Copy link
Member

mdmintz commented Feb 19, 2024

For handling the issue you see with pop-ups, see #1825 and #600 (comment).

@mdmintz mdmintz closed this as completed Feb 19, 2024
@cohnhead66
Copy link
Author

Thanks Michael, After following your guidance on the work around for the pop up, I still was facing the same issue with where as soon as it was displayed it triggered a Captcha. It happened both when under test or if I disconnected with reconnect)"breakpoint".

Since I was having no problem with Captcha when performing the task manually, i thought it might be related to the proxy. I disabled the proxy, and I triggered the Captcha much earlier in the script, but once I got past that, the script completed to the end, even the pop up was handled correctly. Captcha also triggered at the same point if i disconnected driver and performed the same steps manually.

So i'm thinking maybe i should try a different proxy service. Ultimate goal is to run these scripts on a VM in the cloud, so almost certain I will need a good working proxy. Any thoughts on how else I can avoid the captcha when automating browser spun up by SeleniumBase?

@mdmintz mdmintz added the UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The answer/solution already exists somewhere question Someone is looking for answers UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode
Projects
None yet
Development

No branches or pull requests

2 participants