Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Prevent elements not being properly loaded in Selenium

I have this whatsapp bot and I need to send messages frequently while the user does other work, so the program opens chrome and then the user overlays it with another window "chrome window, file explorer or whatever", the problem is that on windows it works just fine, but on macOS, if you don’t focus on the whatsapp window, the program execute wrong commands like not seeing an element. Does anybody know a solution for this?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I’m not sure, but try running the Selenium script in headless mode. This can resolve your issue.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading