diff --git a/docs_source_files/content/webdriver/browser_manipulation.de.md b/docs_source_files/content/webdriver/browser_manipulation.de.md index a61f3af1238d..ae0ac516d37d 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.de.md +++ b/docs_source_files/content/webdriver/browser_manipulation.de.md @@ -523,7 +523,10 @@ public static void tearDown() { } {{< / code-panel >}} {{< code-panel language="python" >}} -# We don't have a Python code sample yet - Help us out and raise a PR +# unittest teardown +# https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown +def tearDown(self): + self.driver.quit() {{< / code-panel >}} {{< code-panel language="csharp" >}} /* diff --git a/docs_source_files/content/webdriver/browser_manipulation.en.md b/docs_source_files/content/webdriver/browser_manipulation.en.md index bf8f78dec218..865083dfc52a 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.en.md +++ b/docs_source_files/content/webdriver/browser_manipulation.en.md @@ -516,7 +516,10 @@ public static void tearDown() { } {{< / code-panel >}} {{< code-panel language="python" >}} -# We don't have a Python code sample yet - Help us out and raise a PR +# unittest teardown +# https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown +def tearDown(self): + self.driver.quit() {{< / code-panel >}} {{< code-panel language="csharp" >}} /* diff --git a/docs_source_files/content/webdriver/browser_manipulation.es.md b/docs_source_files/content/webdriver/browser_manipulation.es.md index 7a82fd817061..5aaeedf2770c 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.es.md +++ b/docs_source_files/content/webdriver/browser_manipulation.es.md @@ -522,7 +522,10 @@ public static void tearDown() { } {{< / code-panel >}} {{< code-panel language="python" >}} -# We don't have a Python code sample yet - Help us out and raise a PR +# unittest teardown +# https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown +def tearDown(self): + self.driver.quit() {{< / code-panel >}} {{< code-panel language="csharp" >}} /* diff --git a/docs_source_files/content/webdriver/browser_manipulation.fr.md b/docs_source_files/content/webdriver/browser_manipulation.fr.md index 97e253684d54..ccad36e488cd 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.fr.md +++ b/docs_source_files/content/webdriver/browser_manipulation.fr.md @@ -519,7 +519,10 @@ public static void tearDown() { } {{< / code-panel >}} {{< code-panel language="python" >}} -# We don't have a Python code sample yet - Help us out and raise a PR +# unittest teardown +# https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown +def tearDown(self): + self.driver.quit() {{< / code-panel >}} {{< code-panel language="csharp" >}} /* diff --git a/docs_source_files/content/webdriver/browser_manipulation.ja.md b/docs_source_files/content/webdriver/browser_manipulation.ja.md index 1661ee99748f..627776c8ef0b 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.ja.md +++ b/docs_source_files/content/webdriver/browser_manipulation.ja.md @@ -484,7 +484,10 @@ public static void tearDown() { } {{< / code-panel >}} {{< code-panel language="python" >}} -# We don't have a Python code sample yet - Help us out and raise a PR +# unittest teardown +# https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown +def tearDown(self): + self.driver.quit() {{< / code-panel >}} {{< code-panel language="csharp" >}} /* diff --git a/docs_source_files/content/webdriver/browser_manipulation.ko.md b/docs_source_files/content/webdriver/browser_manipulation.ko.md index 7433ffd50cf5..4473f7e08f35 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.ko.md +++ b/docs_source_files/content/webdriver/browser_manipulation.ko.md @@ -522,7 +522,10 @@ public static void tearDown() { } {{< / code-panel >}} {{< code-panel language="python" >}} -# We don't have a Python code sample yet - Help us out and raise a PR +# unittest teardown +# https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown +def tearDown(self): + self.driver.quit() {{< / code-panel >}} {{< code-panel language="csharp" >}} /* diff --git a/docs_source_files/content/webdriver/browser_manipulation.nl.md b/docs_source_files/content/webdriver/browser_manipulation.nl.md index 435e1aa77ea9..fe1e96b27247 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.nl.md +++ b/docs_source_files/content/webdriver/browser_manipulation.nl.md @@ -519,7 +519,10 @@ public static void tearDown() { } {{< / code-panel >}} {{< code-panel language="python" >}} -# We don't have a Python code sample yet - Help us out and raise a PR +# unittest teardown +# https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown +def tearDown(self): + self.driver.quit() {{< / code-panel >}} {{< code-panel language="csharp" >}} /* diff --git a/docs_source_files/content/webdriver/browser_manipulation.zh-cn.md b/docs_source_files/content/webdriver/browser_manipulation.zh-cn.md index 911a1c78767c..a2a8f1099532 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.zh-cn.md +++ b/docs_source_files/content/webdriver/browser_manipulation.zh-cn.md @@ -478,7 +478,10 @@ public static void tearDown() {driver.quit(); } {{}} {{}} -# 我们还没有 python 的示例代码,请帮助我们,并提交一个 PR +# unittest teardown +# https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown +def tearDown(self): + self.driver.quit() {{}} {{}} /*