You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<summary> ▶️ How is SeleniumBase different from raw Selenium? (<b><u>click to expand</u></b>)</summary>
64
+
<summary> ▶️ How is SeleniumBase different from raw Selenium? (<b>click to expand</b>)</summary>
58
65
<div>
59
66
60
67
<p>💡 SeleniumBase is a Python test framework for the <ahref="https://www.w3.org/TR/webdriver2/#endpoints"target="_blank">Selenium/WebDriver</a> browser automation library. This framework incorporates test-runners such as <code>pytest</code>, <code>nosetests</code>, and <code>behave</code> to provide organized structure, test discovery, test execution, test state (<i>eg. passed, failed, or skipped</i>), and command-line options for changing default settings (<i>such as choosing the browser to use</i>). With raw Selenium, you would need to set up your own options-parser for configuring tests from the command-line.</p>
<summary> ▶️ Here are some things you can do to set up a production environment for your testing. (<b><u>click to expand</u></b>)</summary>
779
+
<summary> ▶️ Here are some things you can do to set up a production environment for your testing. (<b>click to expand</b>)</summary>
772
780
773
781
<ul>
774
782
<li>You can set up a <a href="https://jenkins.io/" target="_blank">Jenkins</a> build server for running tests at regular intervals. For a real-world Jenkins example of headless browser automation in action, check out the <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/azure/jenkins/ReadMe.md">SeleniumBase Jenkins example on Azure</a> or the <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/google_cloud/ReadMe.md">SeleniumBase Jenkins example on Google Cloud</a>.</li>
| 2 | Use ``self.assert_elements_present("head", "style", "script")`` to verify that multiple elements are present in the HTML. | The assertion is successful. |
7
+
| 3 | Use ``self.assert_elements("h1", "h2", "h3")`` to verify that multiple elements are visible. | The assertion is successful. |
8
+
| 4 | Use ``self.assert_elements(["#myDropdown", "#myButton", "#svgRect"])`` to verify that multiple elements are visible. | The assertion is successful. |
| 1 | Log in to https://www.saucedemo.com with ``standard_user``. | Login was successful. |
6
+
| 2 | Click on the ``Backpack````ADD TO CART`` button. | The button text changed to ``REMOVE``. |
7
+
| 3 | Click on the cart icon. | The ``Backpack`` is seen in the cart. |
8
+
| 4 | Click on the ``CHECKOUT`` button. <br /> Enter user details and click ``CONTINUE``. | The ``Backpack`` is seen in the cart on the ``CHECKOUT: OVERVIEW`` page. |
9
+
| 5 | Click on the ``FINISH`` button. | There is a ``Thank You`` message and a ``Pony Express`` delivery logo. |
10
+
| 6 | Log out from the website. | Logout was successful. |
| 1 | Open https://seleniumbase.io/apps/calculator. <br /> Perform the following calculation: ``6 × 7 + 12``| The output is ``54`` after pressing ``=``|
| 2 | Assert the title of the current web page. <br /> Assert that a given element is visible on the page. <br /> Assert that a text substring appears in an element's text. | The assertions were successful. |
7
+
| 3 | Type text into various text fields and then verify. | The assertions were successful. |
8
+
| 4 | Verify that a hover dropdown link changes page text. | The assertion was successful. |
9
+
| 5 | Verify that a button click changes text on the page. | The assertion was successful. |
10
+
| 6 | Verify that an SVG element is located on the page. | The assertion was successful. |
11
+
| 7 | Verify that a slider control updates a progress bar. | The assertion was successful. |
12
+
| 8 | Verify that a "select" option updates a meter bar. | The assertion was successful. |
13
+
| 9 | Assert an element located inside an iFrame. | The assertion was successful. |
14
+
| 10 | Assert text located inside an iFrame. | The assertion was successful. |
15
+
| 11 | Verify that clicking a radio button selects it. | The assertion was successful. |
16
+
| 12 | Verify that clicking an empty checkbox makes it selected. | The assertion was successful. |
17
+
| 13 | Verify clicking on multiple elements with one call. | The assertions were successful. |
18
+
| 14 | Verify that clicking an iFrame checkbox selects it. | The assertions were successful. |
19
+
| 15 | Verify that Drag and Drop works. | The assertion was successful. |
20
+
| 16 | Assert link text. | The assertion was successful. |
21
+
| 17 | Verify clicking on link text. | The action was successful. |
22
+
| 18 | Assert exact text in an element. | The assertion was successful. |
23
+
| 19 | Highlight a page element. | The action was successful. |
24
+
| 20 | Verify that Demo Mode works. | The assertion was successful. |
0 commit comments