File tree 8 files changed +32
-8
lines changed
docs_source_files/content/webdriver
8 files changed +32
-8
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,10 @@ public static void tearDown() {
523
523
}
524
524
{{< / code-panel >}}
525
525
{{< code-panel language="python" >}}
526
- # We don't have a Python code sample yet - Help us out and raise a PR
526
+ # unittest teardown
527
+ # https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown
528
+ def tearDown(self):
529
+ self.driver.quit()
527
530
{{< / code-panel >}}
528
531
{{< code-panel language="csharp" >}}
529
532
/*
Original file line number Diff line number Diff line change @@ -516,7 +516,10 @@ public static void tearDown() {
516
516
}
517
517
{{< / code-panel >}}
518
518
{{< code-panel language="python" >}}
519
- # We don't have a Python code sample yet - Help us out and raise a PR
519
+ # unittest teardown
520
+ # https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown
521
+ def tearDown(self):
522
+ self.driver.quit()
520
523
{{< / code-panel >}}
521
524
{{< code-panel language="csharp" >}}
522
525
/*
Original file line number Diff line number Diff line change @@ -522,7 +522,10 @@ public static void tearDown() {
522
522
}
523
523
{{< / code-panel >}}
524
524
{{< code-panel language="python" >}}
525
- # We don't have a Python code sample yet - Help us out and raise a PR
525
+ # unittest teardown
526
+ # https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown
527
+ def tearDown(self):
528
+ self.driver.quit()
526
529
{{< / code-panel >}}
527
530
{{< code-panel language="csharp" >}}
528
531
/*
Original file line number Diff line number Diff line change @@ -519,7 +519,10 @@ public static void tearDown() {
519
519
}
520
520
{{< / code-panel >}}
521
521
{{< code-panel language="python" >}}
522
- # We don't have a Python code sample yet - Help us out and raise a PR
522
+ # unittest teardown
523
+ # https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown
524
+ def tearDown(self):
525
+ self.driver.quit()
523
526
{{< / code-panel >}}
524
527
{{< code-panel language="csharp" >}}
525
528
/*
Original file line number Diff line number Diff line change @@ -484,7 +484,10 @@ public static void tearDown() {
484
484
}
485
485
{{< / code-panel >}}
486
486
{{< code-panel language="python" >}}
487
- # We don't have a Python code sample yet - Help us out and raise a PR
487
+ # unittest teardown
488
+ # https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown
489
+ def tearDown(self):
490
+ self.driver.quit()
488
491
{{< / code-panel >}}
489
492
{{< code-panel language="csharp" >}}
490
493
/*
Original file line number Diff line number Diff line change @@ -522,7 +522,10 @@ public static void tearDown() {
522
522
}
523
523
{{< / code-panel >}}
524
524
{{< code-panel language="python" >}}
525
- # We don't have a Python code sample yet - Help us out and raise a PR
525
+ # unittest teardown
526
+ # https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown
527
+ def tearDown(self):
528
+ self.driver.quit()
526
529
{{< / code-panel >}}
527
530
{{< code-panel language="csharp" >}}
528
531
/*
Original file line number Diff line number Diff line change @@ -519,7 +519,10 @@ public static void tearDown() {
519
519
}
520
520
{{< / code-panel >}}
521
521
{{< code-panel language="python" >}}
522
- # We don't have a Python code sample yet - Help us out and raise a PR
522
+ # unittest teardown
523
+ # https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown
524
+ def tearDown(self):
525
+ self.driver.quit()
523
526
{{< / code-panel >}}
524
527
{{< code-panel language="csharp" >}}
525
528
/*
Original file line number Diff line number Diff line change @@ -478,7 +478,10 @@ public static void tearDown() {driver.quit();
478
478
}
479
479
{{</ code-panel>}}
480
480
{{<code-panel language =" python " >}}
481
- # 我们还没有 python 的示例代码,请帮助我们,并提交一个 PR
481
+ # unittest teardown
482
+ # https://docs.python.org/3/library/unittest.html?highlight=teardown#unittest.TestCase.tearDown
483
+ def tearDown(self):
484
+ self.driver.quit()
482
485
{{</ code-panel>}}
483
486
{{<code-panel language =" csharp " >}}
484
487
/*
You can’t perform that action at this time.
0 commit comments