@@ -97,16 +97,8 @@ InternetExplorerOptions options = new InternetExplorerOptions();
9797options.waitForUploadDialogUpTo(Duration.ofSeconds(2));
9898WebDriver driver = new RemoteWebDriver(options);
9999  {{< /tab >}}
100-   {{< tab header="Python" >}}
101- from selenium import webdriver
102- 
103- options = webdriver.IeOptions()
104- options.file_upload_dialog_timeout = 2000
105- driver = webdriver.Ie(options=options)
106- 
107- driver.get("http://www.google.com ")
108- 
109- driver.quit()
100+   {{< tab header="Python" text=true >}}
101+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L28-L29" >}}
110102  {{< /tab >}}
111103  {{< tab header="CSharp" >}}
112104var options = new InternetExplorerOptions();
@@ -150,16 +142,8 @@ InternetExplorerOptions options = new InternetExplorerOptions();
150142options.destructivelyEnsureCleanSession();
151143WebDriver driver = new RemoteWebDriver(options);
152144  {{< /tab >}}
153-   {{< tab header="Python" >}}
154- from selenium import webdriver
155- 
156- options = webdriver.IeOptions()
157- options.ensure_clean_session = True
158- driver = webdriver.Ie(options=options)
159- 
160- driver.get("http://www.google.com ")
161- 
162- driver.quit()
145+   {{< tab header="Python" text=true >}}
146+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L38-L39" >}}
163147  {{< /tab >}}
164148  {{< tab header="CSharp" >}}
165149var options = new InternetExplorerOptions();
@@ -198,16 +182,8 @@ InternetExplorerOptions options = new InternetExplorerOptions();
198182options.ignoreZoomSettings();
199183WebDriver driver = new RemoteWebDriver(options);
200184  {{< /tab >}}
201-   {{< tab header="Python" >}}
202- from selenium import webdriver
203- 
204- options = webdriver.IeOptions()
205- options.ignore_zoom_level = True
206- driver = webdriver.Ie(options=options)
207- 
208- driver.get("http://www.google.com ")
209- 
210- driver.quit()
185+   {{< tab header="Python" text=true >}}
186+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L48-L49" >}}
211187  {{< /tab >}}
212188  {{< tab header="CSharp" >}}
213189var options = new InternetExplorerOptions();
@@ -256,16 +232,8 @@ InternetExplorerOptions options = new InternetExplorerOptions();
256232options.introduceFlakinessByIgnoringSecurityDomains();
257233WebDriver driver = new RemoteWebDriver(options);
258234  {{< /tab >}}
259-   {{< tab header="Python" >}}
260- from selenium import webdriver
261- 
262- options = webdriver.IeOptions()
263- options.ignore_protected_mode_settings = True
264- driver = webdriver.Ie(options=options)
265- 
266- driver.get("http://www.google.com ")
267- 
268- driver.quit()
235+   {{< tab header="Python" text=true >}}
236+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L58-L59" >}}
269237  {{< /tab >}}
270238  {{< tab header="CSharp" >}}
271239var options = new InternetExplorerOptions();
@@ -303,16 +271,8 @@ InternetExplorerOptions options = new InternetExplorerOptions();
303271options.setCapability("silent", true);
304272WebDriver driver = new InternetExplorerDriver(options);
305273  {{< /tab >}}
306-   {{< tab header="Python" >}}
307- from selenium import webdriver
308- 
309- options = webdriver.IeOptions()
310- options.set_capability("silent", True)
311- driver = webdriver.Ie(options=options)
312- 
313- driver.get("http://www.google.com ")
314- 
315- driver.quit()
274+   {{< tab header="Python" text=true >}}
275+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L68-L71" >}}
316276  {{< /tab >}}
317277  {{< tab header="CSharp" >}}
318278InternetExplorerOptions options = new InternetExplorerOptions();
@@ -400,17 +360,8 @@ public class ieTest {
400360    }
401361}
402362  {{< /tab >}}
403-   {{< tab header="Python" >}}
404- from selenium import webdriver
405- 
406- options = webdriver.IeOptions()
407- options.add_argument('-private')
408- options.force_create_process_api = True
409- driver = webdriver.Ie(options=options)
410- 
411- driver.get("http://www.google.com ")
412- 
413- driver.quit()
363+   {{< tab header="Python" text=true >}}
364+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L78-L81" >}}
414365  {{< /tab >}}
415366  {{< tab header="CSharp" >}}
416367using System;
@@ -495,16 +446,8 @@ public class ieTest {
495446    }
496447}
497448  {{< /tab >}}
498-   {{< tab header="Python" >}}
499- from selenium import webdriver
500- 
501- options = webdriver.IeOptions()
502- options.force_create_process_api = True
503- driver = webdriver.Ie(options=options)
504- 
505- driver.get("http://www.google.com ")
506- 
507- driver.quit()
449+   {{< tab header="Python" text=true >}}
450+ {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L88-L91" >}}
508451  {{< /tab >}}
509452  {{< tab header="CSharp" >}}
510453using System;
@@ -575,8 +518,8 @@ To change the logging output to save to a specific file:
575518Property key: ` InternetExplorerDriverService.IE_DRIVER_LOGFILE_PROPERTY ` \ 
576519Property value: String representing path to log file
577520{{% /tab %}}
578- {{< tab header="Python" >}}
579- {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L29 " >}}
521+ {{< tab header="Python" text=true  >}}
522+ {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L98 " >}}
580523{{< /tab >}}
581524{{< tab header="CSharp" >}}
582525{{< badge-implementation >}}
@@ -605,9 +548,9 @@ To change the logging output to display in the console as STDOUT:
605548Property key: ` InternetExplorerDriverService.IE_DRIVER_LOGFILE_PROPERTY ` \ 
606549Property value: ` DriverService.LOG_STDOUT `  or ` DriverService.LOG_STDERR ` 
607550{{% /tab %}}
608- {{< tab header="Python" >}}
551+ {{< tab header="Python" text=true  >}}
609552{{< badge-version version="4.11" >}}
610- {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L41 " >}}
553+ {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L110 " >}}
611554{{< /tab >}}
612555{{< tab header="CSharp" >}}
613556{{< badge-implementation >}}
@@ -635,8 +578,8 @@ If logging output is specified, the default level is `FATAL`
635578Property key: ` InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY ` \ 
636579Property value: String representation of ` InternetExplorerDriverLogLevel.DEBUG.toString() `  enum
637580{{% /tab %}}
638- {{< tab header="Python" >}}
639- {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L53 " >}}
581+ {{< tab header="Python" text=true  >}}
582+ {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L122 " >}}
640583{{< /tab >}}
641584{{< tab header="CSharp" >}}
642585{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L85" >}}
@@ -662,9 +605,9 @@ Property value: String representation of `InternetExplorerDriverLogLevel.DEBUG.t
662605Property key: ` InternetExplorerDriverService.IE_DRIVER_EXTRACT_PATH_PROPERTY ` \ 
663606Property value: String representing path to supporting files directory
664607{{< /tab >}}
665- {{< tab header="Python" >}}
608+ {{< tab header="Python" text=true  >}}
666609{{< badge-version version="4.11" >}}
667- {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L65 " >}}
610+ {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L134 " >}}
668611{{< /tab >}}
669612{{< tab header="CSharp" >}}
670613{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L98" >}}
0 commit comments