|
380 | 380 | Ruby</button></li><li class=nav-item><button class=nav-link id=tabs-14-04-tab data-bs-toggle=tab data-bs-target=#tabs-14-04 role=tab data-td-tp-persist=javascript aria-controls=tabs-14-04 aria-selected=false>
|
381 | 381 | JavaScript</button></li><li class=nav-item><button class=nav-link id=tabs-14-05-tab data-bs-toggle=tab data-bs-target=#tabs-14-05 role=tab data-td-tp-persist=kotlin aria-controls=tabs-14-05 aria-selected=false>
|
382 | 382 | Kotlin</button></li></ul><div class=tab-content id=tabs-14-content><div class="tab-body tab-pane fade show active" id=tabs-14-00 role=tabpanel aria-labelled-by=tabs-14-00-tab tabindex=14><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>message</span><span style=color:#000;font-weight:700>.</span><span style=color:#c4a000>getText</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/getting_started/FirstScript.java#L27 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
|
383 |
| -<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-14-01 role=tabpanel aria-labelled-by=tabs-14-01-tab tabindex=14><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:#000>text</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#000>message</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>text</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/getting_started/first_script.py#L19 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
| 383 | +<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-14-01 role=tabpanel aria-labelled-by=tabs-14-01-tab tabindex=14><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:#000>message</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#000>driver</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>find_element</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>by</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#000>By</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>ID</span><span style=color:#000;font-weight:700>,</span> <span style=color:#000>value</span><span style=color:#ce5c00;font-weight:700>=</span><span style=color:#4e9a06>"message"</span><span style=color:#000;font-weight:700>)</span> |
| 384 | +</span></span><span style=display:flex><span><span style=color:#000>text</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#000>message</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>text</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/getting_started/first_script.py#L18-19 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
384 | 385 | <strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-14-02 role=tabpanel aria-labelled-by=tabs-14-02-tab tabindex=14><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-cs data-lang=cs><span style=display:flex><span> <span style=color:#204a87;font-weight:700>var</span> <span style=color:#204a87;font-weight:700>value</span> <span style=color:#000;font-weight:700>=</span> <span style=color:#000>message</span><span style=color:#000;font-weight:700>.</span><span style=color:#000>Text</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/dotnet/SeleniumDocs/GettingStarted/FirstScript.cs#L26 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
|
385 | 386 | <strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-14-03 role=tabpanel aria-labelled-by=tabs-14-03-tab tabindex=14><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>message</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>text</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/getting_started/first_script.rb#L18 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
|
386 | 387 | <strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-14-04 role=tabpanel aria-labelled-by=tabs-14-04-tab tabindex=14><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-js data-lang=js><span style=display:flex><span> <span style=color:#204a87;font-weight:700>let</span> <span style=color:#000>value</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#204a87;font-weight:700>await</span> <span style=color:#000>message</span><span style=color:#000;font-weight:700>.</span><span style=color:#000>getText</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/javascript/test/getting_started/firstScript.spec.js#L23 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
|
|
405 | 406 | CSharp</button></li><li class=nav-item><button class=nav-link id=tabs-17-03-tab data-bs-toggle=tab data-bs-target=#tabs-17-03 role=tab data-td-tp-persist=ruby aria-controls=tabs-17-03 aria-selected=false>
|
406 | 407 | Ruby</button></li><li class=nav-item><button class=nav-link id=tabs-17-04-tab data-bs-toggle=tab data-bs-target=#tabs-17-04 role=tab data-td-tp-persist=javascript aria-controls=tabs-17-04 aria-selected=false>
|
407 | 408 | JavaScript</button></li><li class=nav-item><button class=nav-link id=tabs-17-05-tab data-bs-toggle=tab data-bs-target=#tabs-17-05 role=tab data-td-tp-persist=kotlin aria-controls=tabs-17-05 aria-selected=false>
|
408 |
| -Kotlin</button></li></ul><div class=tab-content id=tabs-17-content><div class="tab-body tab-pane fade show active" id=tabs-17-00 role=tabpanel aria-labelled-by=tabs-17-00-tab tabindex=17><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-17-01 role=tabpanel aria-labelled-by=tabs-17-01-tab tabindex=17><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-17-02 role=tabpanel aria-labelled-by=tabs-17-02-tab tabindex=17><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-17-03 role=tabpanel aria-labelled-by=tabs-17-03-tab tabindex=17><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-md data-lang=md><span style=display:flex><span>ruby example_script.rb</span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/ruby/README.md#L36 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
| 409 | +Kotlin</button></li></ul><div class=tab-content id=tabs-17-content><div class="tab-body tab-pane fade show active" id=tabs-17-00 role=tabpanel aria-labelled-by=tabs-17-00-tab tabindex=17><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-md data-lang=md><span style=display:flex><span>mvn exec:java -D"exec.mainClass"="dev.selenium.getting_started.FirstScript" -D"exec.classpathScope"=test</span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/java/README.md#L60 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
| 410 | +<strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-01 role=tabpanel aria-labelled-by=tabs-17-01-tab tabindex=17><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-17-02 role=tabpanel aria-labelled-by=tabs-17-02-tab tabindex=17><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-17-03 role=tabpanel aria-labelled-by=tabs-17-03-tab tabindex=17><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-md data-lang=md><span style=display:flex><span>ruby example_script.rb</span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/ruby/README.md#L36 target=_blank><i class="fas fa-external-link-alt pl-2"></i> |
409 | 411 | <strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-04 role=tabpanel aria-labelled-by=tabs-17-04-tab tabindex=17><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-md data-lang=md><span style=display:flex><span>node example_script.spec.js</span></span></code></pre></div><div class="text-end pb-2"><a href=https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/javascript/README.md#L36 target=_blank><i class="fas fa-external-link-alt pl-2"></i>
|
410 | 412 | <strong>View full example on GitHub</strong></a></div></div><div class="tab-body tab-pane fade" id=tabs-17-05 role=tabpanel aria-labelled-by=tabs-17-05-tab tabindex=17><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><h2 id=next-steps>Next Steps</h2><p>Most Selenium users execute many sessions and need to organize them to minimize duplication and keep the code
|
411 | 413 | more maintainable. Read on to learn about how to put this code into context for your use case with
|
|
14288 | 14290 | <label><a href=https://github.com/diemol>@diemol</a></label>
|
14289 | 14291 | <span class=contributions>743 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/12621691?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle>
|
14290 | 14292 | <label><a href=https://github.com/harsha509>@harsha509</a></label>
|
14291 |
| -<span class=contributions>730 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/3331063?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle> |
| 14293 | +<span class=contributions>732 commits</span></div><div style=padding:10px><img src="https://avatars.githubusercontent.com/u/3331063?v=4" class=inline width=100 height=100 style=height:100px;height:100px;margin-bottom:.25em;vertical-align:middle> |
14292 | 14294 | <label><a href=https://github.com/selenium-ci>@selenium-ci</a></label>
|
14293 | 14295 | <span class=contributions>323 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>
|
14294 | 14296 | <label><a href=https://github.com/titusfortner>@titusfortner</a></label>
|
|
0 commit comments