Python Forum

Full Version: Python Selenium
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone,

I need your help for a strange problem.
I am using Selenium library and I have problem with this instruction:
Sometimes it works and I can find the element with the name 'longitude' and sometimes not even if nothing changes in the web page.

Thank you,
Some time most give page more time to load all,before search for content on page.
time.sleep(3) is an easy way that can be used as test.
Let the page load 3-sec before do any thing.

Waits can be the more correct way.
Quote:wait makes WebDriver wait for a certain condition to occur before proceeding