Is there a way to set timeout when specific element in webpage loads
Notice: I am talking about loading webpage using driver.get() method
I tried setting page loads timeout to 10s for example and check whether element is present but if it is not present i'll have to load it from start.
Edit:
Clearly said that I don't want to load full url
I want driver.get() to load url until element found and then stop loading more from url
In your examples you used simply driver.get() method which will load full url and then execute next command. One way is to use driver.set_page_load_timeout()
webdriver will wait for a page to load by default. It does not wait for loading inside frames or for ajax requests. It means when you use .get('url'), your browser will wait until the page is completely loaded and then go to the next command in the code. But when you are posting an ajax request, webdriver does not wait and it's your responsibility to wait an appropriate amount of time for the page or a part of page to load; so there is a module named expected_conditions.
How to load page until specific element found selenium python