Skip to content

Commit ccde21a

Browse files
Updating page_loading_strategy.es.md (#360)
* Updating page_loading_strategy.es.md Updating page loading strategy in spanish * updating page_loading_strategy.es.md Nothing changed, travis build failed retriggering it. Co-authored-by: Sri Harsha <[email protected]>
1 parent bd72485 commit ccde21a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs_source_files/content/webdriver/page_loading_strategy.es.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,15 @@ public class pageLoadStrategy {
5757
}
5858
{{< / code-panel >}}
5959
{{< code-panel language="python" >}}
60-
# Please raise a PR
60+
from selenium import webdriver
61+
from selenium.webdriver.chrome.options import Options
62+
options = Options()
63+
options.page_load_strategy = 'normal'
64+
driver = webdriver.Chrome(options=options)
65+
# Navigate to url
66+
driver.get("http://www.google.com")
67+
driver.quit()
68+
6169
{{< / code-panel >}}
6270
{{< code-panel language="c#" >}}
6371
using OpenQA.Selenium;

0 commit comments

Comments
 (0)