From 40f441cd56360cfdbfc94a911895af6524874a41 Mon Sep 17 00:00:00 2001 From: Abhishek Malani Date: Sun, 22 Mar 2020 19:10:37 +0530 Subject: [PATCH] updating page_loading_strategy.zh-cn.md updating page loading strategy for china --- .../content/webdriver/page_loading_strategy.zh-cn.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs_source_files/content/webdriver/page_loading_strategy.zh-cn.md b/docs_source_files/content/webdriver/page_loading_strategy.zh-cn.md index 8ea6c13a1490..f9e4268ee0a7 100644 --- a/docs_source_files/content/webdriver/page_loading_strategy.zh-cn.md +++ b/docs_source_files/content/webdriver/page_loading_strategy.zh-cn.md @@ -64,7 +64,14 @@ public class pageLoadStrategy { } {{< / code-panel >}} {{< code-panel language="python" >}} -# Please raise a PR +from selenium import webdriver +from selenium.webdriver.chrome.options import Options +options = Options() +options.page_load_strategy = 'normal' +driver = webdriver.Chrome(options=options) +# Navigate to url +driver.get("http://www.google.com") +driver.quit() {{< / code-panel >}} {{< code-panel language="c#" >}} using OpenQA.Selenium;