pytest-dev / pytest-splinter

pytest splinter and selenium integration for anyone interested in browser interaction in tests
MIT License
254 stars 51 forks source link

Mixing implicit and explicit wait #155

Open jobezic opened 3 years ago

jobezic commented 3 years ago

Hi there, it seems in pytest-splinter it is not possible to disable implicit wait (see here https://github.com/pytest-dev/pytest-splinter/blob/5522d59fcabfa8904385c1e10ca61460a25193e0/pytest_splinter/plugin.py#L596)

but the issue is that if I want to use an explicit wait (pytest-splinter allow this) it will result in mixing explicit (the one I define) and implicit wait and this can take to strange waits behaviour (see: https://octopus.com/blog/selenium/8-mixing-waits/mixing-waits).

How to address this issue or disable implicit wait?

bubenkoff commented 3 years ago

you can override a fixture / set the option to have implicit wait timeout be 0, which should effectively disable implicit wait

mpasternak commented 2 years ago

@jobezic was the problem solved? Do you need any more assistance?