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):
143
143
driver .quit ()
144
144
145
145
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 )
148
150
149
151
with driver .context (driver .CONTEXT_CHROME ):
150
152
driver .execute_script ("console.log('Inside Chrome context');" )
151
153
152
154
# Check if the context is back to content
153
155
assert driver .execute ("GET_CONTEXT" )["value" ] == "content"
156
+ driver .quit ()
154
157
155
158
156
159
def 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.
106
106
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}}
107
107
{{< /tab >}}
108
108
{{< 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 " >}}
110
110
{{< /tab >}}
111
111
{{< tab header="CSharp" >}}
112
112
var options = new FirefoxOptions();
@@ -445,7 +445,7 @@ please refer to the
445
445
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L197-L198" >}}
446
446
{{< /tab >}}
447
447
{{< 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 " >}}
449
449
{{< /tab >}}
450
450
{{< tab header="CSharp" >}}
451
451
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ Firefoxプロファイルを操作するにはいくつかの方法がありま
110
110
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}}
111
111
{{< /tab >}}
112
112
{{< 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 " >}}
114
114
{{< /tab >}}
115
115
{{< tab header="CSharp" >}}
116
116
var options = new FirefoxOptions();
@@ -442,7 +442,7 @@ IDはアドオンインストール時の戻り値から取得できます。
442
442
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L197-L198" >}}
443
443
{{< /tab >}}
444
444
{{< 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 " >}}
446
446
{{< /tab >}}
447
447
{{< tab header="CSharp" >}}
448
448
{{< 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
109
109
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}}
110
110
{{< /tab >}}
111
111
{{< 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 " >}}
113
113
{{< /tab >}}
114
114
{{< tab header="CSharp" >}}
115
115
var options = new FirefoxOptions();
@@ -451,7 +451,7 @@ please refer to the
451
451
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L197-L198" >}}
452
452
{{< /tab >}}
453
453
{{< 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 " >}}
455
455
{{< /tab >}}
456
456
{{< tab header="CSharp" >}}
457
457
{{< 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
108
108
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L211-L216" >}}
109
109
{{< /tab >}}
110
110
{{< 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 " >}}
112
112
{{< /tab >}}
113
113
{{< tab header="CSharp" >}}
114
114
var options = new FirefoxOptions();
@@ -448,7 +448,7 @@ please refer to the
448
448
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L197-L198" >}}
449
449
{{< /tab >}}
450
450
{{< 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 " >}}
452
452
{{< /tab >}}
453
453
{{< tab header="CSharp" >}}
454
454
{{< badge-code >}}
You can’t perform that action at this time.
0 commit comments