Synchronisation issue with Selenium

Synchronisation issue with Selenium

Sometimes when we run our code, Selenium cannot find the element even when we know that that element is there.

Why does this happen?

The webdriver is slower than actual code.

What if when we go to url and we open the page, what happens when it doesn't load yet but the code is already at the next step trying to find the element.

So to fix this issue, we can use the thread sleep or wait functionality.

Comments

Popular posts from this blog

Specflow, Gherkin

DevOps, Github

Test Automation tool, VS, selenium, Github, Gitbash