{"id":4762,"date":"2024-01-02T16:22:45","date_gmt":"2024-01-02T16:22:45","guid":{"rendered":"https:\/\/www.softwaretestinghelp.com\/?p=4762"},"modified":"2025-05-09T10:49:43","modified_gmt":"2025-05-09T10:49:43","slug":"selenium-select-class-selenium-tutorial-13","status":"publish","type":"post","link":"https:\/\/www.softwaretestinghelp.com\/selenium-select-class-selenium-tutorial-13\/","title":{"rendered":"Selenium Select Class to Handle Web page Dropdown Elements"},"content":{"rendered":"\n<p>In the previous tutorial, we studied the various types of assert statements available in Java-based unit testing framework and their applications with specimens. Re-iterating the fact that being an \u201cAutomation Test Engineer\u201d, assertions play a very decisive and significant role in developing test scripts.<\/p>\n\n\n\n<p>Moving ahead with the few upcoming tutorials in the Selenium series, we will concentrate on <strong>handling the various types of web elements available on the web pages<\/strong>. Therefore, in this tutorial, we will consider <strong>\u201cdropdowns\u201d and exercise their handling strategies<\/strong>.<em><strong><\/strong><\/em><\/p>\n\n\n\n<p>Before moving towards the problem statement and its resolution, let us take a moment to introduce and create an understanding regarding the application under test. As a sample, we have created a <strong>dummy HTML page<\/strong> comprising multiple and assorted web elements.<\/p>\n\n\n  \n \n \n\n\n<h2 class=\"wp-block-heading\">Managing Dropdown Elements on a Webpage<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"700\" height=\"350\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Select-Class-for-Handling-Dropdown-Elements-on-a-Web-Page-1.png\" alt=\"Select Class for Handling Dropdown Elements on a Web Page\" class=\"wp-image-300910\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Select-Class-for-Handling-Dropdown-Elements-on-a-Web-Page-1.png 700w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Select-Class-for-Handling-Dropdown-Elements-on-a-Web-Page-1-300x150.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>The elementary web elements that constitute the web page are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Hyperlink<\/li>\n\n\n\n<li>Button<\/li>\n\n\n\n<li>Dropdown<\/li>\n<\/ul>\n\n\n\n<p><strong>Please take a reference to the following webpage afore-mentioned above:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-1.jpg\"><img decoding=\"async\" width=\"485\" height=\"325\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-1.jpg\" alt=\"elementary web elements\" class=\"wp-image-4764\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-1.jpg 485w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-1-300x201.jpg 300w\" sizes=\"(max-width: 485px) 100vw, 485px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Explanation of Application Under Test<\/h3>\n\n\n\n<p>We have designed the web page in a way to includes a few fundamental types of web elements.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Hyperlink: <\/strong>The two hyperlinks namely \u201cGoogle\u201d and \u201cabodeQA\u201d have been provided that re-direct the user to \u201chttps:\/\/www.google.co.in\/\u201d and \u201chttp:\/\/www.abodeqa.com\/\u201d respectively on the click event.<\/li>\n\n\n\n<li><strong>Dropdown:<\/strong> The three dropdowns have been created for selecting colors, fruits, and animals with a value already set to default.<\/li>\n\n\n\n<li><strong>Button:<\/strong> A \u201ctry it\u201d button has showed up the pop-up box having OK and Cancel buttons upon click the event.<\/li>\n<\/ul>\n\n\n\n<p><strong>Subsequent is the HTML code used to create the above-mentioned webpage:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;&lt;title&gt; Testing Select Class &lt;\/title&gt;\n&lt;body&gt;\n&lt;div id=&quot;header&quot;&gt;\n&lt;ul id=&quot;linkTabs&quot;&gt;\n&lt;li&gt;\n&lt;a href=&quot;https:\/\/www.google.co.in\/&quot;&gt;Google&lt;\/a&gt;\n&lt;\/li&gt;\n&lt;li&gt;\n&lt;a href=&quot;http:\/\/abodeqa.wordpress.com\/&quot;&gt;abodeQA&lt;\/a&gt;\n&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/div&gt;\n&lt;div class=&quot;header_spacer&quot;&gt;&lt;\/div&gt;\n&lt;div id=&quot;container&quot;&gt;\n&lt;div id=&quot;content&quot; style=&quot;padding-left: 185px;&quot;&gt;\n&lt;table id=&quot;selectTable&quot;&gt;\n&lt;tbody&gt;\n&lt;tr&gt;\n&lt;td&gt;\n&lt;div&gt;\n&lt;select id=&quot;SelectID_One&quot;&gt;\n&lt;option value=&quot;redvalue&quot;&gt;Red&lt;\/option&gt;\n&lt;option value=&quot;greenvalue&quot;&gt;Green&lt;\/option&gt;\n&lt;option value=&quot;yellowvalue&quot;&gt;Yellow&lt;\/option&gt;\n&lt;option value=&quot;greyvalue&quot;&gt;Grey&lt;\/option&gt;\n&lt;\/select&gt;\n&lt;\/div&gt;\n&lt;\/td&gt;\n&lt;td&gt;\n&lt;div&gt;\n&lt;select id=&quot;SelectID_Two&quot;&gt;\n&lt;option value=&quot;applevalue&quot;&gt;Apple&lt;\/option&gt;\n&lt;option value=&quot;orangevalue&quot;&gt;Orange&lt;\/option&gt;\n&lt;option value=&quot;mangovalue&quot;&gt;Mango&lt;\/option&gt;\n&lt;option value=&quot;limevalue&quot;&gt;Lime&lt;\/option&gt;\n&lt;\/select&gt;\n&lt;\/div&gt;\n&lt;\/td&gt;\n&lt;td&gt;\n&lt;div&gt;\n&lt;select id=&quot;SelectID_Three&quot;&gt;\n&lt;option value=&quot;selectValue&quot;&gt;Select&lt;\/option&gt;\n&lt;option value=&quot;elephantvalue&quot;&gt;Elephant&lt;\/option&gt;\n&lt;option value=&quot;mousevalue&quot;&gt;Mouse&lt;\/option&gt;\n&lt;option value=&quot;dogvalue&quot;&gt;Dog&lt;\/option&gt;\n&lt;\/select&gt;\n&lt;\/div&gt;\n&lt;\/td&gt;\n&lt;\/tr&gt;\n&lt;tr&gt;\n&lt;td&gt;\n&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;body&gt;\n&lt;p&gt;Click the button to display a confirm box.&lt;\/p&gt;\n&lt;button onclick=&quot;myFunction()&quot;&gt;Try it&lt;\/button&gt;\n&lt;script&gt;\nfunction myFunction()\n{\nconfirm(&quot;Press a button!&quot;);\n}\n&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n&lt;\/td&gt;\n&lt;\/tr&gt;\n&lt;\/tbody&gt;\n&lt;\/table&gt;\n&lt;\/div&gt;\n&lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">Scenario to be Automated<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Launch the web browser and open the webpage<\/li>\n\n\n\n<li>Click on the \u201cGoogle\u201d hyperlink<\/li>\n\n\n\n<li>Navigate back to the original web page<\/li>\n\n\n\n<li>Select \u201cGreen\u201d in color dropdown<\/li>\n\n\n\n<li>Select the \u201cOrange\u201d in the fruit dropdown<\/li>\n\n\n\n<li>Select the \u201cElephant\u201d in the animal dropdown<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">WebDriver Code Using Selenium Select Class<\/h3>\n\n\n\n<p>Please take note that, for script creation, we will be using the \u201cLearning_Selenium\u201d project created in the former tutorial.<\/p>\n\n\n\n<p><strong>Step #1:<\/strong> Create a new Java class named as \u201cHandlingDropDown\u201d under the \u201cLearning_Selenium\u201d project.<\/p>\n\n\n\n<p><strong>Step #2:<\/strong> Copy and paste the below code in the \u201cHandlingDropDown.java\u201d class.<\/p>\n\n\n\n<p><strong>Below is the test script that is equivalent to the above-mentioned scenario:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\nimport static org.junit.Assert.*;\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.WebDriver;\nimport org.openqa.selenium.firefox.FirefoxDriver;\nimport org.openqa.selenium.support.ui.Select;\n \n\/**\n * class description\n *\/\n \npublic class HandlingDropDown {\n       WebDriver driver;\n \n       \/**\n        * Set up browser settings and open the application\n        *\/\n \n       @Before\n       public void setUp() {\n              driver=new FirefoxDriver();\n              \n\/\/ Opened the application\n              driver.get(\"file:\/\/\/F:\/Work\/Blogs\/testingstuff\/DemoWebAlert.html\");\n              driver.manage().window().maximize();\n       }\n \n       \/**\n        * Test to select the dropdown values\n        * @throws InterruptedException\n        *\/\n \n       @Test\n       public void testSelectFunctionality() throws InterruptedException { \n              \n\/\/ Go to google\n              driver.findElement(By.linkText(\"Google\")).click();\n              \n\/\/ navigate back to previous webpage\n              driver.navigate().back();\n              Thread.sleep(5000);\n              \n\/\/ select the first operator using \"select by value\"\n              Select selectByValue = new Select(driver.findElement(By.id(\"SelectID_One\")));\n              selectByValue.selectByValue(\"greenvalue\");\n              Thread.sleep(5000);\n              \n\/\/ select the second dropdown using \"select by visible text\"\n              Select selectByVisibleText = new Select (driver.findElement(By.id(\"SelectID_Two\")));\n              selectByVisibleText.selectByVisibleText(\"Lime\");\n              Thread.sleep(5000);\n              \n\/\/ select the third dropdown using \"select by index\"\n              Select selectByIndex = new Select(driver.findElement(By.id(\"SelectID_Three\")));\n              selectByIndex.selectByIndex(2);\n              Thread.sleep(5000);       \n       }\n \n       \/**\n        * Tear down the setup after test completes\n        *\/\n \n       @After\n       public void tearDown() { \n              driver.quit();\n       }\n}\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">Code Walkthrough<\/h3>\n\n\n\n<p><strong>Import Statements<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>import <\/strong>org.openqa.selenium.support.ui.Select \u2013 Import this package before the script creation. The package references to the Select class which is required to handle the dropdown.<\/li>\n<\/ul>\n\n\n\n<p><strong>Object Instantiation for Select class<\/strong><\/p>\n\n\n\n<p>Select selectByValue = new Select(driver.findElement(By.id(&#8220;SelectID_One&#8221;)));<\/p>\n\n\n\n<p>We create a reference variable for the Select class and instantiate it using the Select class and the identifier for the dropdown.<\/p>\n\n\n\n<p>The identifier or the locator value for the drop down can be found using the techniques discussed in the initial tutorials (by using Selenium IDE and Firebug).<\/p>\n\n\n\n<p><strong>Take a notice that the identifier for a dropdown can be found as below:<\/strong><\/p>\n\n\n\n<p><strong>Step #1:<\/strong> Most or almost all the drop down elements are defined in the &lt;Select> tag having multiple values (values that can be set into the dropdown) that are defined under the &lt;option> tags.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-2.jpg\"><img decoding=\"async\" width=\"432\" height=\"240\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-2.jpg\" alt=\"Selenium select class 2\" class=\"wp-image-4765\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-2.jpg 432w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-2-300x166.jpg 300w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Setting the value in the dropdown using selectByValue() method<\/strong><\/p>\n\n\n\n<p>selectByValue.selectByValue(&#8220;greenvalue&#8221;);<\/p>\n\n\n\n<p>In the above Java command, we select the value \u201cgreen\u201d in the drop down using the selectByValue() method and parametrizing it with the text present in the value attribute.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-3.jpg\"><img decoding=\"async\" width=\"323\" height=\"64\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-3.jpg\" alt=\"Selenium select class 3\" class=\"wp-image-4766\" style=\"width:384px;height:auto\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-3.jpg 323w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-3-300x59.jpg 300w\" sizes=\"(max-width: 323px) 100vw, 323px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Setting the value in the dropdown using selectByVisibleText() method<\/strong><\/p>\n\n\n\n<p>selectByValue.selectByVisibleText(&#8220;Lime&#8221;);<\/p>\n\n\n\n<p>In the above Java command, we select the value \u201cLime\u201d in the drop down using the selectByVisibleText() method and parameterizing it with the text present on the user interface or the text present between the opening and closing &lt;option> tags.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-4.jpg\"><img decoding=\"async\" width=\"331\" height=\"82\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-4.jpg\" alt=\"Selenium select class 4\" class=\"wp-image-4767\" style=\"width:359px;height:auto\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-4.jpg 331w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2014\/10\/Selenium-select-class-4-300x74.jpg 300w\" sizes=\"(max-width: 331px) 100vw, 331px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Setting the value in the dropdown using selectByIndex() method<\/strong><\/p>\n\n\n\n<p>selectByValue.selectByIndex(&#8220;2&#8221;);<\/p>\n\n\n\n<p>In the above Java command, we select the third value in the drop down using the selectByIndex() method and parametrising it with the index value of the element which is desired to be selected in the dropdown.<\/p>\n\n\n\n<p>Take a note that the index value starts with \u201c0\u201d.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>In this tutorial, we tried to make you acquainted with the WebDriver\u2019s Select class that is used to handle dropdown elements present on the web page. We also briefed you about the methods that can populate the value in the dropdown.<\/p>\n\n\n\n<p><strong>Here is the article summary:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WebDriver\u2019s Select class is used to handle the dropdown elements present on a web page.<\/li>\n\n\n\n<li>Prior to the actual scripting, we need to import a package to create a WebDriver script for handling a dropdown and making the Select class accessible.\n<ul class=\"wp-block-list\">\n<li><strong>import <\/strong>org.openqa.selenium.support.ui.Select;<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>We create a reference variable for the Select class and instantiate it using the Select class and the identifier for the drop-down.\n<ul class=\"wp-block-list\">\n<li>Select selectByValue = new Select(driver.findElement(By.id(&#8220;SelectID_One&#8221;)))<em>;<\/em><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>The identifier or the locator value for the drop can be found using Selenium IDE and Firebug.<\/li>\n\n\n\n<li>Ideally, there are three ways to select the desired value in the dropdown among the listed ones.\n<ul class=\"wp-block-list\">\n<li>selectByValue()<\/li>\n\n\n\n<li>selectByVisibleText()<\/li>\n\n\n\n<li>selectByIndex()<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>The following Java command is used to select the \u201cgreen\u201d color in the dropdown. Take a notice the value in the dropdown is selected using the selectByValue()\n<ul class=\"wp-block-list\">\n<li>selectByValue(&#8220;green value&#8221;);<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>The following java command is used to select the \u201cLime\u201d fruit in the dropdown. Take a notice the value in the dropdown is selected using the selectByVisibleText()\n<ul class=\"wp-block-list\">\n<li>selectByVisibleText(&#8220;Lime&#8221;);<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>The following Java command is used to select the third value amongst all the options enlisted for the dropdown. Take notice the value in the dropdown is selected using the <em>selectByIndex()<\/em>\n<ul class=\"wp-block-list\">\n<li>selectByIndex(&#8220;2&#8221;);<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><a title=\"https:\/\/www.softwaretestinghelp.com\/webdriver-commands-selenium-tutorial-14\/\" href=\"https:\/\/www.softwaretestinghelp.com\/webdriver-commands-selenium-tutorial-14\/\"><span style=\"text-decoration: underline;\"><strong>Next Tutorial #14<\/strong><\/span><\/a>: In the forthcoming tutorial, we will discuss various types of commands in WebDriver like isSelected(), isEnabled() and isDispalyed() those return a Boolean value against the presence of a specified web element.<\/p>\n\n\n\n<p>Till then, stay tuned and automate the dropdown using WebDriver utility \u2013 \u201cSelect class\u201d.<\/p>\n\r\n\t\t\t<div id=\"daexthefup-container\"\r\n\t\t\t\tclass=\"daexthefup-container daexthefup-layout-stacked daexthefup-alignment-center\"\r\n\t\t\t\tdata-post-id=\"4762\">\r\n\r\n\t\t\t\t<div class=\"daexthefup-feedback\">\r\n\t\t\t\t\t<div class=\"daexthefup-text\">\r\n\t\t\t\t\t\t<h3 class=\"daexthefup-title\">Was this helpful?<\/h3>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"daexthefup-buttons-container\">\r\n\t\t\t\t\t\t<div class=\"daexthefup-buttons\">\r\n\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefup-yes daexthefup-button daexthefup-button-type-icon\" data-value=\"1\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-up-cls-1{fill:#c9c9c9;}.thumb-up-cls-2{fill:#e1e1e1;}.thumb-up-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_up\">\r\n                        <path class=\"thumb-up-cls-2 daexthefup-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-up-cls-3 daexthefup-icon-secondary-color\" x=\"10\" y=\"20\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefup-icon-primary-color\" d=\"m30.57,9.06l-.49-.1c-.81-.17-1.61.35-1.78,1.16l-5.3,11.74c-.17.81,3.16,1.61,3.97,1.78l1.96.41c.81.17,1.61-.35,1.78-1.16l2.18-10.27c.34-1.61-.7-3.21-2.31-3.56Z\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefup-icon-primary-color\" d=\"m38.17,20h-18.67c-.83,0-1.5.67-1.5,1.5v12c0,.83.67,1.5,1.5,1.5h16.27c.71,0,1.33-.5,1.47-1.21l2.4-12c.19-.93-.53-1.8-1.47-1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefup-no daexthefup-button daexthefup-button-type-icon\" data-value=\"0\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-down-cls-1{fill:#c9c9c9;}.thumb-down-cls-2{fill:#e1e1e1;}.thumb-down-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_down\">\r\n                        <path class=\"thumb-down-cls-2 daexthefup-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-down-cls-3 daexthefup-icon-secondary-color\" x=\"10\" y=\"13\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefup-icon-primary-color\" d=\"m30.57,38.94l-.49.1c-.81.17-1.61-.35-1.78-1.16l-5.3-11.74c-.17-.81,3.16-1.61,3.97-1.78l1.96-.41c.81-.17,1.61.35,1.78,1.16l2.18,10.27c.34,1.61-.7,3.21-2.31,3.56Z\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefup-icon-primary-color\" d=\"m38.17,28h-18.67c-.83,0-1.5-.67-1.5-1.5v-12c0-.83.67-1.5,1.5-1.5h16.27c.71,0,1.33.5,1.47,1.21l2.4,12c.19.93-.53,1.8-1.47,1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefup-comment\">\r\n\t\t\t\t\t<div class=\"daexthefup-comment-top-container\">\r\n\t\t\t\t\t\t<label id=\"daexthefup-comment-label\" class=\"daexthefup-comment-label\"><\/label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"daexthefup-comment-character-counter-container\">\r\n\t\t\t\t\t\t\t\t<div id=\"daexthefup-comment-character-counter-number\"\r\n\t\t\t\t\t\t\t\t\tclass=\"daexthefup-comment-character-counter-number\"><\/div>\r\n\t\t\t\t\t\t\t\t<div class=\"daexthefup-comment-character-counter-text\"><\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<textarea id=\"daexthefup-comment-textarea\" class=\"daexthefup-comment-textarea\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"Type your message\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"\r\n\t\t\t\t\t\t\t\t400\t\t\t\t\t\t\t\t\t\"><\/textarea>\r\n\t\t\t\t\t<div class=\"daexthefup-comment-buttons-container\">\r\n\t\t\t\t\t\t<button class=\"daexthefup-comment-submit daexthefup-button\">Submit<\/button>\r\n\t\t\t\t\t\t<button class=\"daexthefup-comment-cancel daexthefup-button\">Cancel<\/button>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefup-successful-submission-text\">Thanks for your feedback!<\/div>\r\n\r\n\t\t\t<\/div>\r\n\r\n\t\t\t","protected":false},"excerpt":{"rendered":"<p>In the previous tutorial, we studied the various types of assert statements available in Java-based unit testing framework and their applications with specimens. Re-iterating the fact that being an \u201cAutomation Test Engineer\u201d, assertions play a very decisive and significant role in developing test scripts. Moving ahead with the few upcoming &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Selenium Select Class to Handle Web page Dropdown Elements\" class=\"read-more button\" href=\"https:\/\/www.softwaretestinghelp.com\/selenium-select-class-selenium-tutorial-13\/#more-4762\" aria-label=\"Read more about Selenium Select Class to Handle Web page Dropdown Elements\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":300910,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_helpful_pro_status":1,"footnotes":""},"categories":[214],"tags":[],"class_list":["post-4762","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-selenium-tutorials"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/posts\/4762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/comments?post=4762"}],"version-history":[{"count":0,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/posts\/4762\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media\/300910"}],"wp:attachment":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media?parent=4762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/categories?post=4762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/tags?post=4762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}