Skip to content

Commit 490e63f

Browse files
committed
[java]: docs for set context in firefox (#2068)[deploy site]
java docs for set context in firefox cb7d8ae
1 parent fabac12 commit 490e63f

File tree

35 files changed

+158
-126
lines changed

35 files changed

+158
-126
lines changed

documentation/_print/index.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,7 +2073,9 @@
20732073
CSharp</button></li><li class=nav-item><button class=nav-link id=tabs-18-03-tab data-bs-toggle=tab data-bs-target=#tabs-18-03 role=tab data-td-tp-persist=ruby aria-controls=tabs-18-03 aria-selected=false>
20742074
Ruby</button></li><li class=nav-item><button class=nav-link id=tabs-18-04-tab data-bs-toggle=tab data-bs-target=#tabs-18-04 role=tab data-td-tp-persist=javascript aria-controls=tabs-18-04 aria-selected=false>
20752075
JavaScript</button></li><li class=nav-item><button class=nav-link id=tabs-18-05-tab data-bs-toggle=tab data-bs-target=#tabs-18-05 role=tab data-td-tp-persist=kotlin aria-controls=tabs-18-05 aria-selected=false>
2076-
Kotlin</button></li></ul><div class=tab-content id=tabs-18-content><div class="tab-body tab-pane fade show active" id=tabs-18-00 role=tabpanel aria-labelled-by=tabs-18-00-tab tabindex=18><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-18-01 role=tabpanel aria-labelled-by=tabs-18-01-tab tabindex=18><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-py data-lang=py><span style=display:flex><span> <span style=color:#204a87;font-weight:700>with</span> <span style=color:#000>driver</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>context</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>driver</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>CONTEXT_CHROME</span><span style=color:#000;font-weight:700>):</span>
2076+
Kotlin</button></li></ul><div class=tab-content id=tabs-18-content><div class="tab-body tab-pane fade show active" id=tabs-18-00 role=tabpanel aria-labelled-by=tabs-18-00-tab tabindex=18><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-java data-lang=java><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline> </span><span style=color:#000;font-weight:700>((</span><span style=color:#000>HasContext</span><span style=color:#000;font-weight:700>)</span><span style=color:#f8f8f8;text-decoration:underline> </span><span style=color:#000>driver</span><span style=color:#000;font-weight:700>).</span><span style=color:#c4a000>setContext</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>FirefoxCommandContext</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>CHROME</span><span style=color:#000;font-weight:700>);</span><span style=color:#f8f8f8;text-decoration:underline>
2077+
</span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline> </span><span style=color:#000>driver</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>executeScript</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>&#34;console.log(&#39;Inside Chrome context&#39;);&#34;</span><span style=color:#000;font-weight:700>);</span></span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk//examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L197-L198 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
2078+
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-18-01 role=tabpanel aria-labelled-by=tabs-18-01-tab tabindex=18><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-py data-lang=py><span style=display:flex><span> <span style=color:#204a87;font-weight:700>with</span> <span style=color:#000>driver</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>context</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>driver</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>CONTEXT_CHROME</span><span style=color:#000;font-weight:700>):</span>
20772079
</span></span><span style=display:flex><span> <span style=color:#000>driver</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>execute_script</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>&#34;console.log(&#39;Inside Chrome context&#39;);&#34;</span><span style=color:#000;font-weight:700>)</span></span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk//examples/python/tests/browsers/test_firefox.py#L149-L150 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
20782080
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-18-02 role=tabpanel aria-labelled-by=tabs-18-02-tab tabindex=18><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-18-03 role=tabpanel aria-labelled-by=tabs-18-03-tab tabindex=18><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-rb data-lang=rb><span style=display:flex><span> <span style=color:#000>driver</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>context</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#4e9a06>&#39;content&#39;</span></span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk//examples/ruby/spec/browsers/firefox_spec.rb#L132 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
20792081
<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-18-04 role=tabpanel aria-labelled-by=tabs-18-04-tab tabindex=18><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div><div class="tab-body tab-pane fade" id=tabs-18-05 role=tabpanel aria-labelled-by=tabs-18-05-tab tabindex=18><p><a href=/documentation/about/contributing/#creating-examples><span class=selenium-badge-code data-bs-toggle=tooltip data-bs-placement=right title="This code example is missing. Examples are added to the examples directory; click for details in the contribution guide">Add Example</span></a></p></div></div></div><div class=td-content style=page-break-before:always><h1 id=pg-3b3d03aa5e50219cec5d2a9563860996>2.3.4 - IE specific functionality</h1><div class=lead>These are capabilities and features specific to Microsoft Internet Explorer browsers.</div><p>As of June 2022, Selenium officially no longer supports standalone Internet Explorer.
@@ -14004,7 +14006,7 @@
1400414006
<label><a href=https://github.com/jimevans>@jimevans</a></label>
1400514007
<span class=contributions>2478 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/777185?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1400614008
<label><a href=https://github.com/titusfortner>@titusfortner</a></label>
14007-
<span class=contributions>1594 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/254985?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14009+
<span class=contributions>1595 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/254985?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1400814010
<label><a href=https://github.com/jleyba>@jleyba</a></label>
1400914011
<span class=contributions>1464 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/572?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1401014012
<label><a href=https://github.com/jarib>@jarib</a></label>
@@ -14022,7 +14024,7 @@
1402214024
<label><a href=https://github.com/lukeis>@lukeis</a></label>
1402314025
<span class=contributions>599 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/10705590?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1402414026
<label><a href=https://github.com/pujagani>@pujagani</a></label>
14025-
<span class=contributions>528 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/1072163?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14027+
<span class=contributions>529 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/1072163?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1402614028
<label><a href=https://github.com/eranmes>@eranmes</a></label>
1402714029
<span class=contributions>473 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/610?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1402814030
<label><a href=https://github.com/mdub>@mdub</a></label>
@@ -14084,7 +14086,7 @@
1408414086
<label><a href=https://github.com/tebeka>@tebeka</a></label>
1408514087
<span class=contributions>44 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/26169602?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1408614088
<label><a href=https://github.com/sandeepsuryaprasad>@sandeepsuryaprasad</a></label>
14087-
<span class=contributions>43 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/8307266?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14089+
<span class=contributions>44 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/8307266?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1408814090
<label><a href=https://github.com/raju249>@raju249</a></label>
1408914091
<span class=contributions>42 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/20105237?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1409014092
<label><a href=https://github.com/luke-hill>@luke-hill</a></label>
@@ -14094,7 +14096,7 @@
1409414096
<label><a href=https://github.com/valfirst>@valfirst</a></label>
1409514097
<span class=contributions>40 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/23253546?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1409614098
<label><a href=https://github.com/VietND96>@VietND96</a></label>
14097-
<span class=contributions>38 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/3238999?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14099+
<span class=contributions>39 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/3238999?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1409814100
<label><a href=https://github.com/mach6>@mach6</a></label>
1409914101
<span class=contributions>36 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/2972876?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1410014102
<label><a href=https://github.com/ddavison>@ddavison</a></label>
@@ -14542,14 +14544,14 @@
1454214544
<label><a href=https://github.com/sindhudiddi>@sindhudiddi</a></label>
1454314545
<span class=contributions>12 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/4995276?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1454414546
<label><a href=https://github.com/hiroksarker>@hiroksarker</a></label>
14545-
<span class=contributions>10 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/50069278?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14547+
<span class=contributions>10 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/98466550?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14548+
<label><a href=https://github.com/navin772>@navin772</a></label>
14549+
<span class=contributions>8 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/50069278?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1454614550
<label><a href=https://github.com/nwintop>@nwintop</a></label>
1454714551
<span class=contributions>8 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/25596787?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1454814552
<label><a href=https://github.com/testbot206>@testbot206</a></label>
1454914553
<span class=contributions>7 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/909773?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1455014554
<label><a href=https://github.com/krmahadevan>@krmahadevan</a></label>
14551-
<span class=contributions>7 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/98466550?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14552-
<label><a href=https://github.com/navin772>@navin772</a></label>
1455314555
<span class=contributions>7 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/2152854?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1455414556
<label><a href=https://github.com/tetration>@tetration</a></label>
1455514557
<span class=contributions>7 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/117716?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>

0 commit comments

Comments
 (0)