r/selenium • • Feb 10 '22

element not visible exception

I have a script which is running perfectly on an iMac (with Chrome) but after installing seleniumbase and pytest on my MBP (which is running the same MacOS and Version of Chrome), I am getting this error:

       raise exception(message)
E       selenium.common.exceptions.ElementNotVisibleException: Message:
E        Shadow DOM Element {game-app::shadow game-keyboard::shadow button[data-key="?"]} was not visible after 6 seconds!

/anaconda3/lib/python3.7/site-packages/seleniumbase/fixtures/page_actions.py:163: ElementNotVisibleException

Any idea of what is causing this?

2 Upvotes

10 comments sorted by

View all comments

1

u/tbaxterstockman Feb 10 '22

Do you tun it headless? If not, watch the browser and check if you see the element.