45304530</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>switchTo</span><span style=color:#000;font-weight:700>().</span><span style=color:#c4a000>frame</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>iframe</span><span style=color:#000;font-weight:700>);</span><span style=color:#f8f8f8;text-decoration:underline>
45314531</span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#000>assertEquals</span><span style=color:#000;font-weight:700>(</span><span style=color:#204a87;font-weight:700>true</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>getPageSource</span><span style=color:#000;font-weight:700>().</span><span style=color:#c4a000>contains</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>"We Leave From Here"</span><span style=color:#000;font-weight:700>));</span><span style=color:#f8f8f8;text-decoration:underline>
45324532</span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#8f5902;font-style:italic>//Now we can type text into email field</span><span style=color:#f8f8f8;text-decoration:underline>
4533- </span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#000>WebElement</span><span style=color:#f8f8f8;text-decoration:underline> </span><span style=color:#000>emailE</span><span style=color:#ce5c00;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>findElement</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>By</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>id</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>"email"</span><span style=color:#000;font-weight:700>));</span><span style=color:#f8f8f8;text-decoration:underline>
4533+ </span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#000>WebElement</span><span style=color:#f8f8f8;text-decoration:underline> </span><span style=color:#000>emailE</span><span style=color:#f8f8f8;text-decoration:underline> </span><span style=color:# ce5c00;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>findElement</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>By</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>id</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>"email"</span><span style=color:#000;font-weight:700>));</span><span style=color:#f8f8f8;text-decoration:underline>
45344534</span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#000>emailE</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>sendKeys</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>"
[email protected] "</span><span style=color:#000;font-weight:700>);</span><span style=color:#f8f8f8;text-decoration:underline>
45354535</span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#000>emailE</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>clear</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/interactions/FramesTest.java#L38-L46 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
45364536<strong>View full example on GitHub</strong></a></div></div><div class="tab-pane fade" id=tabs-01-02 role=tabpanel aria-labelled-by=tabs-01-02-tab tabindex=1><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-Python data-lang=Python><span style=display:flex><span>    <span style=color:#8f5902;font-style:italic># Store iframe web element</span>
45884588</span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#8f5902;font-style:italic>//Switch to the frame</span><span style=color:#f8f8f8;text-decoration:underline>
45894589</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>switchTo</span><span style=color:#000;font-weight:700>().</span><span style=color:#c4a000>frame</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>iframe</span><span style=color:#000;font-weight:700>);</span><span style=color:#f8f8f8;text-decoration:underline>
45904590</span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#000>assertEquals</span><span style=color:#000;font-weight:700>(</span><span style=color:#204a87;font-weight:700>true</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>getPageSource</span><span style=color:#000;font-weight:700>().</span><span style=color:#c4a000>contains</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>"We Leave From Here"</span><span style=color:#000;font-weight:700>));</span><span style=color:#f8f8f8;text-decoration:underline>
4591- </span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#000>WebElement</span><span style=color:#f8f8f8;text-decoration:underline> </span><span style=color:#000>email</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#000>driver</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>findElement</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>By</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>id</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>"email"</span><span style=color:#000;font-weight:700>));</span><span style=color:#f8f8f8;text-decoration:underline>
4591+ </span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#000>WebElement</span><span style=color:#f8f8f8;text-decoration:underline> </span><span style=color:#000>email</span><span style=color:#f8f8f8;text-decoration:underline> </span><span style=color:# ce5c00;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>findElement</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>By</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>id</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>"email"</span><span style=color:#000;font-weight:700>));</span><span style=color:#f8f8f8;text-decoration:underline>
45924592</span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#8f5902;font-style:italic>//Now we can type text into email field</span><span style=color:#f8f8f8;text-decoration:underline>
45934593</span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#000>email</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>sendKeys</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>"
[email protected] "</span><span style=color:#000;font-weight:700>);</span><span style=color:#f8f8f8;text-decoration:underline>
45944594</span></span></span><span style=display:flex><span><span style=color:#f8f8f8;text-decoration:underline>         </span><span style=color:#000>email</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>clear</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/interactions/FramesTest.java#L50-L58 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
1446214462<label><a href=https://github.com/titusfortner>@titusfortner</a></label>
1446314463<span class=contributions>232 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/in/2740?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1446414464<label><a href=https://github.com/apps/renovate>@renovate[bot]</a></label>
14465- <span class=contributions>189  commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/3264250?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
14465+ <span class=contributions>190  commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/3264250?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1446614466<label><a href=https://github.com/alaahong>@alaahong</a></label>
1446714467<span class=contributions>116 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>
1446814468<label><a href=https://github.com/pujagani>@pujagani</a></label>
@@ -14484,10 +14484,10 @@
1448414484<label><a href=https://github.com/aguspe>@aguspe</a></label>
1448514485<span class=contributions>26 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/6996743?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1448614486<label><a href=https://github.com/AlexAndradeNet>@AlexAndradeNet</a></label>
14487+ <span class=contributions>25 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>
14488+ <label><a href=https://github.com/VietND96>@VietND96</a></label>
1448714489<span class=contributions>25 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/in/29110?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1448814490<label><a href=https://github.com/apps/dependabot>@dependabot[bot]</a></label>
14489- <span class=contributions>24 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>
14490- <label><a href=https://github.com/VietND96>@VietND96</a></label>
1449114491<span class=contributions>24 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/1823178?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
1449214492<label><a href=https://github.com/manoj9788>@manoj9788</a></label>
1449314493<span class=contributions>21 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/28479139?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
0 commit comments