File tree Expand file tree Collapse file tree 5 files changed +13
-10
lines changed
examples/python/tests/browsers
website_and_docs/content/documentation/webdriver/browsers Expand file tree Collapse file tree 5 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -143,14 +143,17 @@ def test_full_page_screenshot(firefox_driver):
143143 driver .quit ()
144144
145145
146- def test_set_context (firefox_driver ):
147- driver = firefox_driver
146+ def test_set_context ():
147+ options = webdriver .FirefoxOptions ()
148+ options .add_argument ("-remote-allow-system-access" )
149+ driver = webdriver .Firefox (options = options )
148150
149151 with driver .context (driver .CONTEXT_CHROME ):
150152 driver .execute_script ("console.log('Inside Chrome context');" )
151153
152154 # Check if the context is back to content
153155 assert driver .execute ("GET_CONTEXT" )["value" ] == "content"
156+ driver .quit ()
154157
155158
156159def test_firefox_profile ():
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ There are several ways to work with Firefox profiles.
106106{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}}
107107{{< /tab >}}
108108{{< tab header="Python" text=true >}}
109- {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165 " >}}
109+ {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L160-L168 " >}}
110110{{< /tab >}}
111111 {{< tab header="CSharp" >}}
112112var options = new FirefoxOptions();
@@ -445,7 +445,7 @@ please refer to the
445445{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L197-L198" >}}
446446{{< /tab >}}
447447{{< tab header="Python" >}}
448- {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L149-L150 " >}}
448+ {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L151-L152 " >}}
449449{{< /tab >}}
450450{{< tab header="CSharp" >}}
451451{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ Firefoxプロファイルを操作するにはいくつかの方法がありま
110110{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}}
111111{{< /tab >}}
112112{{< tab header="Python" text=true >}}
113- {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165 " >}}
113+ {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L160-L168 " >}}
114114{{< /tab >}}
115115{{< tab header="CSharp" >}}
116116var options = new FirefoxOptions();
@@ -442,7 +442,7 @@ IDはアドオンインストール時の戻り値から取得できます。
442442{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L197-L198" >}}
443443{{< /tab >}}
444444{{< tab header="Python" >}}
445- {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L149-L150 " >}}
445+ {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L151-L152 " >}}
446446{{< /tab >}}
447447{{< tab header="CSharp" >}}
448448{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ Existem várias formas de trabalhar com perfis Firefox
109109{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}}
110110{{< /tab >}}
111111{{< tab header="Python" text=true >}}
112- {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165 " >}}
112+ {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L160-L168 " >}}
113113{{< /tab >}}
114114 {{< tab header="CSharp" >}}
115115var options = new FirefoxOptions();
@@ -451,7 +451,7 @@ please refer to the
451451{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L197-L198" >}}
452452{{< /tab >}}
453453{{< tab header="Python" >}}
454- {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L149-L150 " >}}
454+ {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L151-L152 " >}}
455455{{< /tab >}}
456456{{< tab header="CSharp" >}}
457457{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ There are several ways to work with Firefox profiles
108108{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}}
109109{{< /tab >}}
110110{{< tab header="Python" text=true >}}
111- {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L157-L165 " >}}
111+ {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L160-L168 " >}}
112112{{< /tab >}}
113113 {{< tab header="CSharp" >}}
114114var options = new FirefoxOptions();
@@ -448,7 +448,7 @@ please refer to the
448448{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L197-L198" >}}
449449{{< /tab >}}
450450{{< tab header="Python" >}}
451- {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L149-L150 " >}}
451+ {{< gh-codeblock path="/examples/python/tests/browsers/test_firefox.py#L151-L152 " >}}
452452{{< /tab >}}
453453{{< tab header="CSharp" >}}
454454{{< badge-code >}}
You can’t perform that action at this time.
0 commit comments