<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-843246525208230414</id><updated>2024-12-19T08:42:52.902+05:30</updated><category term="SeleniumInterviewQuestions"/><category term="Javascript"/><category term="C Questions"/><category term="How-to-convert-int-to-char-in-C"/><category term="How-to-get-Ascii-value-of-char-in-c"/><category term="Programming"/><category term="RestAssured"/><category term="RestAssuredFramework"/><category term="Selenium Interview Questions XPath"/><category term="SeleniumInterviewQuestionsFAQs"/><category term="SeleniumInterviewQuestionsandAnswers"/><category term="SeleniumPOM"/><category term="TestingFramworks"/><category term="Uncheck-Other-Checkboxes-Javascript"/><category term="What is programming"/><category term="css-selectors-in-selenium"/><category term="mastering-css-selectors-in-selenium"/><category term="page-object-model"/><category term="print-a-to-z-in-javascript"/><category term="rest-assured"/><category term="rest-assured-framework-design"/><category term="selenium-4"/><category term="type-of-waits-in-selenium"/><category term="types-of-programming-languages"/><category term="waitsinselenium"/><title type='text'>ProgrammingDomain - All at one place</title><subtitle type='html'>The website will feature FAQs on google and also Interview Questions asked in IT interviews. Topics include programming questions on Java, Javascript, and questions on testing domains like Selenium Webdriver, Rest API.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-7250585865996673910</id><published>2020-06-16T19:02:00.006+05:30</published><updated>2020-07-08T11:52:33.567+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="css-selectors-in-selenium"/><category scheme="http://www.blogger.com/atom/ns#" term="mastering-css-selectors-in-selenium"/><category scheme="http://www.blogger.com/atom/ns#" term="SeleniumInterviewQuestions"/><title type='text'>Mastering CSS Selectors in Selenium Webdriver[Java]</title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;CSS Selectors in Selenium&lt;/font&gt;&lt;/h1&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-size: x-large; text-align: left;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/#&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;css selectors in selenium&quot; border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsvsSqX6HgFiRkHP1O2A9-y7Di2vVlguiF1xp_Z4hlnqPl7tLiea59OA5sqGMnCgDoKuChc3Aqo3KdahLE-_SDHVVSqQQXzV9eLRTkMeB5_TQ8Ylp1xWZx26pIHeYSNhhkClu8JFZOoq1-/w400-h225/css-selectors-in-selenium.png&quot; title=&quot;css selectors in selenium&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Hi All! Today we will look at how we can use CSS Selector in Selenium. CSS Selector is one of the 8 ways of locating elements on a web page.&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Since CSS is the language of the Web, it is faster and more convenient as compared to XPath(Another locator for locating web elements).&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;How to Test/Validate CSS Selector Query&lt;/font&gt;&lt;/h2&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;For validating CSS Selector Query:&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;font size=&quot;5&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Open Chrome Browser&lt;/div&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;5&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Open Developer Tools(Use Shortcut CTRL + SHIFT + I)&lt;/div&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;5&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Click anywhere in the Elements window and click CTRL + F.&lt;/div&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;5&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Write Your CSS Query and Click Enter.&lt;/div&gt;&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;See the image below for further understanding.&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/#&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHDw7YFVaUvgY84Wy1f_bqw8Lv94dUhndT86ZR6B-I_5wydHNGYTTd7WMB5L1qTAt5ZObwIOz4vEuyb9pNgJqTrW2_O8B0vtArtPwXHtlmbqNuz9JYlUNha7vNZt1AgeI9oQYek73VVmDI/w640-h360/validate-css-query.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Below are the ways of selecting elements using CSS Selector :&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector : ID&lt;/h3&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Hash&lt;b&gt;(#)&lt;/b&gt; is used for selecting a web element with&amp;nbsp;&lt;b&gt;ID&lt;/b&gt;.&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax: &lt;b&gt;&lt;i&gt;#&amp;lt;id_value&amp;gt;&lt;/i&gt;&lt;/b&gt; or &lt;b&gt;&lt;i&gt;tagname#&amp;lt;id_value&amp;gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Example: &lt;b&gt;&lt;i&gt;#username&lt;/i&gt;&lt;/b&gt; or &lt;b&gt;&lt;i&gt;input#username&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Consider the following HTML code:&amp;nbsp;&lt;/div&gt;
  &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; &amp;lt;div&amp;gt;   
    &amp;lt;input id=&quot;username&quot; type=&quot;text&quot; name=&quot;username&quot; /&amp;gt;   
  &amp;lt;/div&amp;gt;  &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;You can use &lt;b&gt;# &lt;/b&gt;for selecting the username input box;&amp;nbsp;&lt;/div&gt;
  &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; WebElement username = driver.findElement(By.cssSelector(&quot;#username&quot;));  &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector : Class&lt;/h3&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;A dot &lt;b&gt;(.)&lt;/b&gt; is used for selecting a web element with &lt;b&gt;Class&lt;/b&gt;.&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax: &lt;b&gt;&lt;i&gt;.&amp;lt;class_value&amp;gt;&lt;/i&gt;&lt;/b&gt;  or &lt;b&gt;&lt;i&gt;tagname.&amp;lt;class_value&amp;gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Example: &lt;b&gt;&lt;i&gt;.inputbox&lt;/i&gt;&lt;/b&gt; or &lt;b&gt;&lt;i&gt;input.inputbox&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Consider the following HTML code:&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; &amp;lt;div&amp;gt;   
    &amp;lt;input class=&quot;inputbox&quot; id=&quot;username&quot; type=&quot;text&quot; name=&quot;username&quot; /&amp;gt;   
  &amp;lt;/div&amp;gt;  &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;You can use . for selecting the username input box;&amp;nbsp;&lt;/div&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; WebElement username = driver.findElement(By.cssSelector(&quot;.inputbox&quot;));  &lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector: Multiple Classes&lt;/h3&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax: &lt;b&gt;&lt;i&gt;.class1.class2.class3...classn&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Example: &lt;b&gt;&lt;i&gt;.inputbox.active&lt;/i&gt;&lt;/b&gt; or &lt;b&gt;&lt;i&gt;input.inputbox.active&lt;/i&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Consider the following HTML code:&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; &amp;lt;div&amp;gt;   
    &amp;lt;input class=&quot;inputbox active&quot; id=&quot;username&quot; type=&quot;text&quot; name=&quot;username&quot; /&amp;gt;   
  &amp;lt;/div&amp;gt; &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt; 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;You can use a dot&lt;b&gt;(.)&lt;/b&gt; for selecting the username input box;&amp;nbsp;&lt;/div&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt; &lt;/span&gt;&lt;font size=&quot;5&quot;&gt;WebElement username = driver.findElement(By.cssSelector(&quot;.inputbox.active&quot;));  &lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector: Selecting element using attributes&lt;/h3&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax: &lt;b&gt;&lt;i&gt;tagname[attribute=&#39;value&#39;]&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Example: &lt;b&gt;&lt;i&gt;input[id=&#39;username&#39;]&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Consider the following HTML code:&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; &amp;lt;div&amp;gt;   
    &amp;lt;input class=&quot;inputbox&quot; id=&quot;username&quot; type=&quot;text&quot; name=&quot;username&quot; /&amp;gt;   
  &amp;lt;/div&amp;gt; &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt; 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;You can use . for selecting the username input box;&amp;nbsp;&lt;/div&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; WebElement username = driver.findElement(By.cssSelector(&quot;input[id=&#39;username&#39;]&quot;));  &lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector: Accessing Children&lt;/h3&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: x-large; text-align: justify;&quot;&gt;Navigating to children is done by an arrow&lt;b&gt;(&amp;gt;)&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax:&amp;nbsp;&lt;b&gt;&lt;i&gt;parent&amp;gt;child&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Example:&amp;nbsp;&lt;b&gt;&lt;i&gt;input[id=&#39;username&#39;]&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Consider the following HTML code:&amp;nbsp;&lt;/div&gt;
  &lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; &amp;lt;ul class=”list”&amp;gt;  
   &amp;lt;li&amp;gt;Child1&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child2&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child3&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child4&amp;lt;/li&amp;gt;   
  &amp;lt;/ul&amp;gt; &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt; 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Selenium Code : Selects all &lt;b&gt;&lt;i&gt;&amp;lt;li&amp;gt;&lt;/i&gt;&lt;/b&gt; inside &lt;b&gt;&lt;i&gt;&amp;lt;ul&amp;gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; List&amp;lt;WebElement&amp;gt; list = driver.findElement(By.cssSelector(&quot;.list&amp;gt;li&quot;));  &lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector: Selecting the First Child&lt;/h3&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;first-of-type&lt;/i&gt;&lt;/b&gt;&amp;nbsp;is used to select the first child from all the children tags.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax:&amp;nbsp;&lt;b&gt;&lt;i&gt;parent&amp;gt;child:first-of-type&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Example:&amp;nbsp;&lt;b&gt;&lt;i&gt;ul&amp;gt;li:first-of-type&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Consider the following HTML code:&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; &amp;lt;ul class=”list”&amp;gt;  
   &amp;lt;li&amp;gt;Child1&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child2&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child3&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child4&amp;lt;/li&amp;gt;   
  &amp;lt;/ul&amp;gt;  &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Selenium code that selects first-child, i.e., &lt;b&gt;&lt;i&gt;&amp;lt;li&amp;gt;Child1&amp;lt;/li&amp;gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; List&amp;lt;WebElement&amp;gt; list = driver.findElement(By.cssSelector(&quot;.list&amp;gt;li:first-of-type&quot;)); &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt; &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector: Selecting the Last Child&lt;/h3&gt;&lt;div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;last-of-type&lt;/i&gt;&lt;/b&gt;&amp;nbsp;is used to select the first child from all the children tags.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax:&amp;nbsp;&lt;b&gt;&lt;i&gt;parent&amp;gt;child:last-of-type&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Example:&amp;nbsp;&lt;b&gt;&lt;i&gt;ul&amp;gt;li:last-of-type&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Consider the following HTML code:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; &amp;lt;ul class=&quot;list&quot;&amp;gt;  
   &amp;lt;li&amp;gt;Child1&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child2&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child3&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child4&amp;lt;/li&amp;gt;   
  &amp;lt;/ul&amp;gt;  &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Selenium code that selects last-child, i.e.,&amp;nbsp;&lt;b&gt;&lt;i&gt;&amp;lt;li&amp;gt;Child4&amp;lt;/li&amp;gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; List&amp;lt;WebElement&amp;gt; list = driver.findElement(By.cssSelector(&quot;.list&amp;gt;li:last-of-type&quot;));  &lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector : Selecting nth-child&lt;/h3&gt;&lt;div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;nth-of-type&lt;/i&gt;&lt;/b&gt;&amp;nbsp;is used to select the child passed in the index.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax:&amp;nbsp;&lt;b&gt;&lt;i&gt;parent&amp;gt;child:nth-of-type(index)&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Example:&amp;nbsp;&lt;b&gt;&lt;i&gt;ul&amp;gt;li:nth-of-type(3)&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Consider the following HTML code:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; &amp;lt;ul class=&quot;list&quot;&amp;gt;  
   &amp;lt;li&amp;gt;Child1&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child2&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child3&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child4&amp;lt;/li&amp;gt;   
  &amp;lt;/ul&amp;gt;  &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Selenium code that selects third child, i.e.,&amp;nbsp;&lt;b&gt;&lt;i&gt;&amp;lt;li&amp;gt;Child3&amp;lt;/li&amp;gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; List&amp;lt;WebElement&amp;gt; list = driver.findElement(By.cssSelector(&quot;.list&amp;gt;li:nth-of-type(3)&quot;));  &lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector: Finding Next Sibling&lt;/h3&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: x-large; text-align: justify;&quot;&gt;Plus&lt;i style=&quot;font-weight: bold;&quot;&gt;(+)&lt;/i&gt;&amp;nbsp;is used to select the next sibling.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax:&amp;nbsp;&lt;b&gt;&lt;i&gt;parent&amp;gt;child:first-of-type+&amp;lt;tag&amp;gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Example:&amp;nbsp;&lt;b&gt;&lt;i&gt;ul&amp;gt;li:first-of-type+li&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Consider the following HTML code:&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; &amp;lt;ul class=&quot;list&quot;&amp;gt;  
   &amp;lt;li&amp;gt;Child1&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child2&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child3&amp;lt;/li&amp;gt;   
   &amp;lt;li&amp;gt; Child4&amp;lt;/li&amp;gt;   
  &amp;lt;/ul&amp;gt; &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt; 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Selenium code that selects second child, i.e.,&amp;nbsp;&lt;b&gt;&lt;i&gt;&amp;lt;li&amp;gt;Child2&amp;lt;/li&amp;gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; List&amp;lt;WebElement&amp;gt; list = driver.findElement(By.cssSelector(&quot;.list&amp;gt;li:first-of-type+li&quot;));  &lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector : Regular Expression(contains)&lt;/h3&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Below syntax will help you find a tag whose id contains text &lt;b&gt;&lt;i&gt;user.&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax:&lt;b style=&quot;font-style: italic;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt;&lt;i&gt;tag[id*=’user’]&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Selenium code to do the same:&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; WebElement username = driver.findElement(By.cssSelector(&quot;input[id*=&#39;user&#39;]&quot;));  &lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector : Regular Expression(starts with)&lt;/h3&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Below syntax will help you find a tag whose id contains text &lt;b&gt;&lt;i&gt;user&lt;/i&gt;&lt;/b&gt;.&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax: &lt;b&gt;&lt;i&gt;tag[id^=’user’]&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Selenium code to do the same:&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; WebElement username = driver.findElement(By.cssSelector(&quot;input[id^=&#39;user&#39;]&quot;));  &lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;font-size: x-large; text-align: left;&quot;&gt;CSS Selector : Regular Expression(ends with)&lt;/h3&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Below syntax will help you find a tag whose id contains text &lt;b&gt;&lt;i&gt;user&lt;/i&gt;&lt;/b&gt;.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Syntax: &lt;b&gt;&lt;i&gt;tag[id$=’user’]&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Selenium code to do the same:&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYyOYqHWZMLAPJ1q1WEkaZjfFr4I7u5Ef39-OKzKrRBdilr1xtYn0qpnh3KS_YaOt7o29h6zUWPRJ5PG88GAKfKBX9mTZi5SYjsxzygU4AK1wSv7SUGz2O-JD0ZGpdAOjnQxMYg1KdENw/s320/codebg.gif); background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal; word-wrap: normal;&quot;&gt;&lt;font size=&quot;5&quot;&gt; WebElement username = driver.findElement(By.cssSelector(&quot;input[id$=&#39;name&#39;]&quot;)); &lt;/font&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt; &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;That&#39;s it from my side for &lt;b&gt;CSS Selectors in Selenium&lt;/b&gt;. Feel free to try these and comment down below if any doubts.&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;Thank You!&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: x-large; text-align: left;&quot;&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;More on Selenium&lt;/h2&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/selenium-4-features-2020.html&quot; target=&quot;_blank&quot;&gt;Selenium 4 Features - 2020&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/selenium-interview-questions.html&quot; style=&quot;line-height: 1.5;&quot; target=&quot;_blank&quot;&gt;Selenium Interview Questions and Answers&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/selenium-interview-questions-faqs.html&quot; style=&quot;line-height: 1.5;&quot; target=&quot;_blank&quot;&gt;Selenium Interview Questions - FAQs&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/selenium-interview-questions-xpath.html&quot; style=&quot;line-height: 1.5;&quot; target=&quot;_blank&quot;&gt;What is XPath in Selenium?&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/waits-in-selenium.html&quot; style=&quot;line-height: 1.5;&quot; target=&quot;_blank&quot;&gt;Waits in Selenium&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/page-object-model-in-selenium.html&quot; style=&quot;line-height: 1.5;&quot; target=&quot;_blank&quot;&gt;Page Object Model in Selenium&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;br style=&quot;font-size: medium;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/7250585865996673910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/06/css-selectors in-selenium.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/7250585865996673910'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/7250585865996673910'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/06/css-selectors in-selenium.html' title='Mastering CSS Selectors in Selenium Webdriver[Java]'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsvsSqX6HgFiRkHP1O2A9-y7Di2vVlguiF1xp_Z4hlnqPl7tLiea59OA5sqGMnCgDoKuChc3Aqo3KdahLE-_SDHVVSqQQXzV9eLRTkMeB5_TQ8Ylp1xWZx26pIHeYSNhhkClu8JFZOoq1-/s72-w400-h225-c/css-selectors-in-selenium.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-1950253824360546530</id><published>2020-06-10T13:52:00.006+05:30</published><updated>2020-07-08T11:53:22.687+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="types-of-programming-languages"/><category scheme="http://www.blogger.com/atom/ns#" term="What is programming"/><title type='text'>What is Programming?[Basics]</title><content type='html'>&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5tZu4bnLoiRnjaqcKXC-Hcbj-KtnwAUS4uhbOfknQBWACbDjkGn8s4qV7ycMwx1CozCLdDHD8mly2ZDJA-AkMluh8RMuD1qOsrnUabDk2997swy5RETfCSE00YJbXXB4JlIF1RqJhbdDt/w255-h150/What-is-programming.jpg&quot; style=&quot;display: none;&quot; /&gt;
&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;6&quot;&gt;What is Programming?&lt;/font&gt;&lt;/h1&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5tZu4bnLoiRnjaqcKXC-Hcbj-KtnwAUS4uhbOfknQBWACbDjkGn8s4qV7ycMwx1CozCLdDHD8mly2ZDJA-AkMluh8RMuD1qOsrnUabDk2997swy5RETfCSE00YJbXXB4JlIF1RqJhbdDt/s560/What-is-programming.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;What is Programming?&quot; border=&quot;0&quot; data-original-height=&quot;315&quot; data-original-width=&quot;560&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5tZu4bnLoiRnjaqcKXC-Hcbj-KtnwAUS4uhbOfknQBWACbDjkGn8s4qV7ycMwx1CozCLdDHD8mly2ZDJA-AkMluh8RMuD1qOsrnUabDk2997swy5RETfCSE00YJbXXB4JlIF1RqJhbdDt/w400-h225/What-is-programming.jpg&quot; title=&quot;What is Programming?&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Just beginning your programming journey? No wonder a question
comes to your mind, &lt;b&gt;What is Programming?&lt;/b&gt; Well, You are in the right place then.
I will try and simplify things for you here which even a beginner can understand.&lt;/font&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;helvetica&quot;&gt;Agenda for today :&lt;/font&gt;&lt;/h4&gt;&lt;font face=&quot;helvetica&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;font face=&quot;helvetica&quot;&gt;Programming Definition &lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;helvetica&quot;&gt;What is a program? &lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;helvetica&quot;&gt;What is a Programming Language?&amp;nbsp;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;helvetica&quot;&gt;Types of Programming Languages?&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/font&gt;&lt;div style=&quot;line-height: 1.15;&quot;&gt;&lt;h2&gt;&lt;font face=&quot;helvetica&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/h2&gt;&lt;h2&gt;&lt;font face=&quot;helvetica&quot; size=&quot;6&quot;&gt;Programming Definition&lt;/font&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Programming or Computer Programming simply is a process or a method of writing
programs or code to build a software/product.&lt;/font&gt;&lt;span style=&quot;font-family: helvetica; font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: helvetica; font-size: large;&quot;&gt;In other words programming is used for building software.&lt;/span&gt;&lt;/blockquote&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Software Examples :&lt;span&gt;&amp;nbsp;
&lt;/span&gt;MS Word, Browser, Web Page you are using to access this site.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;6&quot;&gt;What is a Program?&lt;/font&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Program is a set of instructions that you give to your computer
to solve a specific problem.&lt;/font&gt;&lt;/blockquote&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;For example, let&#39;s say you want to &lt;b&gt;add two numbers, 5 + 2&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;You can &lt;b&gt;write a program to add two numbers&lt;/b&gt; and display its
result.&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Now you will say Adding two numbers? That’s easy! I can
calculate it in no time. I can do it on my own &lt;b&gt;why would I need a program/code
for that?&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;And I would say you to add &lt;b&gt;32432432 + 2343243432.&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;What do you think? How much time will you take?&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;You can run a program multiple times for multiple values.&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;b&gt;Write Once Run Forever(WORF)&lt;/b&gt; that’s my terminology BTW!&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Now you get it right?&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Programming is nothing but writing programs/code that
reduces manual efforts and can be used any number of times to solve similar
problems.&lt;/font&gt;&lt;/blockquote&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Now you know about Programming and Programs what next?&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;6&quot;&gt;What is a Programming Language?&lt;/font&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Now you know Program is a set of instructions&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Let&#39;s say You are instructing something to someone. How will
you do it?&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;With Language right? Whether it is English, Spanish, Hindi,
Russian or Chinese.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;And not everyone in the world would understand it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;In a similar way, there are different programming languages.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Some are designed to talk to your computer hardware while others are designed to&lt;/font&gt;&lt;span style=&quot;font-family: helvetica; font-size: large;&quot;&gt;&amp;nbsp;talk to computer software.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;A programming language is a medium of communication between
you and your computer.&lt;/font&gt;&lt;/blockquote&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;6&quot;&gt;Types of Programming Languages&lt;/font&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Low-Level Language :&lt;/font&gt;&lt;/h3&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;The language which the computer understands is &lt;b&gt;Low Level language&lt;/b&gt;. This is the language computer uses to perform internal
operations. &lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;It can be in binary form or it can be commands used for
instructing computer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Examples: &lt;b&gt;Machine Language, Assembly Language&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;High-Level Language :&lt;/font&gt;&lt;/h3&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;It is a human-readable language that gets converted to &lt;b&gt;Low
level language&lt;/b&gt;(the one that the computer understands). And we need language
translators like Compiler/Interpreter to convert a &lt;b&gt;High Level language&lt;/b&gt; to a &lt;b&gt;Low
Level language&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;Examples include all the modern languages like &lt;b&gt;C, C++, Java,
etc.&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;6&quot;&gt;Why Should one learn Programming?&lt;/font&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;In this modern era of digital world having a programming
skill is the icing on the cake. You can :&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;get a high paying job&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;do freelancing&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;develop applications for your business&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;





&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;So that’s it from my side on What is Programming. Hope you understood everything
from this since I have covered things in a way that will be helpful for a
beginner to understand.&lt;/font&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/h4&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;You can also tell me what next you want.&lt;/font&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/h4&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;helvetica&quot; size=&quot;4&quot;&gt;If you still have any doubts you can comment down below.&lt;/font&gt;&lt;/h4&gt;

&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/1950253824360546530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/06/what-is-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/1950253824360546530'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/1950253824360546530'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/06/what-is-programming.html' title='What is Programming?[Basics]'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5tZu4bnLoiRnjaqcKXC-Hcbj-KtnwAUS4uhbOfknQBWACbDjkGn8s4qV7ycMwx1CozCLdDHD8mly2ZDJA-AkMluh8RMuD1qOsrnUabDk2997swy5RETfCSE00YJbXXB4JlIF1RqJhbdDt/s72-w255-h150-c/What-is-programming.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-2456166556508905163</id><published>2020-06-08T18:10:00.076+05:30</published><updated>2020-07-08T11:53:51.294+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="rest-assured"/><category scheme="http://www.blogger.com/atom/ns#" term="rest-assured-framework-design"/><category scheme="http://www.blogger.com/atom/ns#" term="RestAssured"/><category scheme="http://www.blogger.com/atom/ns#" term="RestAssuredFramework"/><category scheme="http://www.blogger.com/atom/ns#" term="TestingFramworks"/><title type='text'>Rest Assured Framework(Java, TestNG, Maven) | Test Automation Framework</title><content type='html'>&lt;div style=&quot;line-height: 1.15;&quot;&gt;&lt;h1 style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;Rest Assured Framework&amp;nbsp;| Test Automation Framework&lt;/font&gt;&lt;/h1&gt;&lt;h1 style=&quot;line-height: 1.15;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiykuq2e1rXfmaZJeFw6INa1PdbSeQH4qK2kHB30E03dDKaTLbCHsfbXtVrHVwSNoykkGXg5tQFh1Egnef2B9maarPtAGTYraKcFMsjRfM-0M9Nn4cZmc9e0Q8pXVGYJeVvMr166WsBk8i_/s2240/Rest-Assured-Framework.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Rest Assured Framework&quot; border=&quot;0&quot; data-original-height=&quot;1260&quot; data-original-width=&quot;2240&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiykuq2e1rXfmaZJeFw6INa1PdbSeQH4qK2kHB30E03dDKaTLbCHsfbXtVrHVwSNoykkGXg5tQFh1Egnef2B9maarPtAGTYraKcFMsjRfM-0M9Nn4cZmc9e0Q8pXVGYJeVvMr166WsBk8i_/w400-h225/Rest-Assured-Framework.jpg&quot; title=&quot;Rest Assured Framework&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.15;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15; text-align: justify;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Hi All!
Today we will see a basic &lt;b style=&quot;line-height: 1.15;&quot;&gt;Rest Assured Framework&lt;/b&gt; that you can scale
further for big projects. The framework is developed using Java.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15; text-align: justify;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot;&gt;&lt;font size=&quot;4&quot;&gt;Before
starting with the Framework lets checkout the basics that we should know in
order to move further. Don’t worry it will be just a refresher, not a detailed one.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;What is
Rest API and how do we test it?&lt;/font&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b style=&quot;line-height: 1.15;&quot;&gt;REST&lt;/b&gt; stands
for &lt;b style=&quot;line-height: 1.15;&quot;&gt;RE&lt;/b&gt;presentational &lt;b style=&quot;line-height: 1.15;&quot;&gt;S&lt;/b&gt;tate &lt;b style=&quot;line-height: 1.15;&quot;&gt;T&lt;/b&gt;ransfer. It is an architectural style for designing
&lt;b style=&quot;line-height: 1.15;&quot;&gt;Web services(?)&lt;/b&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;Web services&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt; are pieces of code in a remote machine that is
platform-independent (can be executed from any machine). &lt;b&gt;Web Services&lt;/b&gt; are used to fetch data from the database and provide it to the client.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Look at the figure&amp;nbsp;below :&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;line-height: 1.15; margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody style=&quot;line-height: 1.15;&quot;&gt;&lt;tr style=&quot;line-height: 1.15;&quot;&gt;&lt;td style=&quot;line-height: 1.15; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsLCbOhchCpyOnfYDzGYigGBPArZ6oqelr3h0qcNhnzcE0VkKWXo7md79yW43EhYSHOQEBSd4Ge95iBJaoP4Qs2dBdPRuDMFkK4KJqsh8ato9pXhm9I9DSLIW0cjucbQwGDLt20AWtyu9t/s938/client-server-model.jpg&quot; style=&quot;line-height: 1.15; margin-left: auto; margin-right: auto;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;img alt=&quot;Client server-model&quot; border=&quot;0&quot; data-original-height=&quot;708&quot; data-original-width=&quot;938&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsLCbOhchCpyOnfYDzGYigGBPArZ6oqelr3h0qcNhnzcE0VkKWXo7md79yW43EhYSHOQEBSd4Ge95iBJaoP4Qs2dBdPRuDMFkK4KJqsh8ato9pXhm9I9DSLIW0cjucbQwGDLt20AWtyu9t/d/client-server-model.jpg&quot; style=&quot;height: auto; width: 100%;&quot; title=&quot;Client-server-model&quot; /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;line-height: 1.15;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;line-height: 1.15; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: &amp;quot;noto sans&amp;quot;; font-size: 13px; line-height: 1.15; text-align: right;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;Author: &lt;a href=&quot;https://www.seobility.net/en/wiki/REST_API&quot; style=&quot;line-height: 1.15;&quot; target=&quot;_blank&quot;&gt;Seobility&lt;/a&gt;&lt;/font&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;We have a &lt;b&gt;Server&lt;/b&gt; where we have our &lt;b&gt;Rest API services&lt;/b&gt; and &lt;b&gt;Database&lt;/b&gt;.&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot;&gt;W&lt;/font&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;e have a &lt;b&gt;Client&lt;/b&gt;.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot;&gt;&lt;b&gt;Client&lt;/b&gt;
request data from the &lt;b&gt;Server&lt;/b&gt; a&lt;/font&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;nd &lt;b&gt;Server&lt;/b&gt; fetches data from the &lt;b&gt;Database&lt;/b&gt; and responds with the data&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b style=&quot;line-height: 1.15;&quot;&gt;Remember:&lt;/b&gt; Client
can be anything from a mobile to a desktop.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;


&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;API
testing&lt;/b&gt; is nothing but validating the responses sent by the server.&lt;/font&gt;&lt;font size=&quot;6&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; line-height: 1.15; text-align: center;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;img alt=&quot;Rest Api Response Validation&quot; border=&quot;0&quot; data-original-height=&quot;1405&quot; data-original-width=&quot;795&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWteZMZpFuTMuMTBSm2SCsOBLyrNvYjz1_-3zzmjmtpRQrXWq84NEoJz2yweHcH73GWT5iZnVU2T6TPOz_knOstdI99-a5_WFknp_n991HGy0UKQcS3jg2QyvTqkQxc-B2LiHq2nsGBR3g/d/response-validation.png&quot; style=&quot;height: auto; margin-left: 0px; width: 90%;&quot; title=&quot;Rest Api Response Validation&quot; /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;font-family: calibri, sans-serif; font-size: 11pt; line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Don’t worry we will go through these with &lt;b style=&quot;line-height: 1.15;&quot;&gt;RestAssured example&lt;/b&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;font-family: calibri, sans-serif; font-size: 11pt; line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot;&gt;&lt;h2 style=&quot;font-size: xx-large; line-height: 1.15; text-align: left;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;font-size: xx-large; line-height: 1.15; text-align: left;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;Why Rest
Assured?&lt;/span&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;Rest
assured&lt;/b&gt; is a Java Library that is becoming very famous in the market for
performing Rest API Automation. It provides a rich set of powerful APIs, making
it way easier to work with Rest APIs.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;font-size: xx-large; line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;font-size: xx-large; line-height: 1.15; text-align: left;&quot;&gt;&lt;img alt=&quot;rest assured features&quot; border=&quot;0&quot; data-original-height=&quot;1385&quot; data-original-width=&quot;799&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit3TzEUwyRbKBw1IyDucsp344GR-oQ3M519rarLtr1jrB7GBWrwiaNYuoehzbgB6PBk0bcs79hjqv2wm-EBHJYMWUhgIwBTP_zoIMixqu_dEDcimXXbzt57HyvLEWJEAr1buS9cFsiw3Sk/d/rest-assured-features.png&quot; style=&quot;height: auto; width: 90%;&quot; title=&quot;rest assured features&quot; /&gt;&lt;/div&gt;&lt;font size=&quot;6&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;Finally,
Let&#39;s get started with our &lt;/span&gt;&lt;span style=&quot;color: black; line-height: 1.15;&quot;&gt;&lt;b&gt;Rest
Assured Framework Tutorial.&lt;/b&gt;&lt;/span&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;Following
setup should be done on your machine before we proceed. I am not going to go
through all of these since I will go old by then. I will provide links for
these steps&lt;/span&gt;&lt;span lang=&quot;&quot; style=&quot;font-size: 11pt; line-height: 1.15; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;font: 7pt / 1.15 &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;ol style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;li style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;font-family: calibri, sans-serif; font-size: 11pt; line-height: 1.15;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b&gt;&lt;span lang=&quot;&quot; style=&quot;font-size: 11pt; line-height: 1.15; text-indent: -18pt;&quot;&gt;Download &lt;a href=&quot;https://www.eclipse.org/downloads/packages/&quot; style=&quot;line-height: 1.15;&quot; target=&quot;_blank&quot;&gt;Eclipse&lt;/a&gt; EE&lt;/span&gt;&lt;span lang=&quot;&quot; style=&quot;font-size: 11pt; line-height: 1.15; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;font: 7pt / 1.15 &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;font-family: calibri, sans-serif; font-size: 11pt; line-height: 1.15;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b&gt;&lt;span lang=&quot;&quot; style=&quot;font-size: 11pt; line-height: 1.15; text-indent: -18pt;&quot;&gt;Install &lt;a href=&quot;https://www.oracle.com/java/technologies/javase-downloads.html&quot; style=&quot;line-height: 1.15;&quot; target=&quot;_blank&quot;&gt;Java&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;&quot; style=&quot;font-size: 11pt; line-height: 1.15; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;font: 7pt / 1.15 &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;font-family: calibri, sans-serif; font-size: 11pt; line-height: 1.15;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b&gt;&lt;span lang=&quot;&quot; style=&quot;font-size: 11pt; line-height: 1.15; text-indent: -18pt;&quot;&gt;Install &lt;a href=&quot;http://maven.apache.org/download.cgi&quot; style=&quot;line-height: 1.15;&quot; target=&quot;_blank&quot;&gt;Maven&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;&quot; style=&quot;font-size: 11pt; line-height: 1.15; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;font: 7pt / 1.15 &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;font-family: calibri, sans-serif; font-size: 11pt; line-height: 1.15;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;font-size: 11pt; line-height: 1.15; text-indent: -18pt;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b&gt;Setup TestNG&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;!--[endif]--&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;!--[endif]--&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;!--[endif]--&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 1.15; text-indent: -18pt;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 1.15; text-indent: -18pt;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 1.15; text-indent: -18pt;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 1.15; text-indent: -18pt;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;font-family: calibri, sans-serif; font-size: 11pt; line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font size=&quot;4&quot;&gt;Let&#39;s start
then,&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;font-size: 14.6667px; line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font size=&quot;4&quot;&gt;Create a new &lt;b&gt;Maven project&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;font-size: xx-large; line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;font-size: xx-large; line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;font-size: xx-large; line-height: 1.15; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihG2MX6WgmyCGq1rqo3vosizYHn4aN4sEOeFJNLuFUK-nl6Qtg8EognroB-Nyfi_MamnQGHnRpL9xTSSvVilgPRCrSD16pVMHqgyTLk643CO8-2i-j0h6BnoIpZleTJjFMkAnQzhDb-Mnc/s1366/new-maven-project.png&quot; style=&quot;clear: left; line-height: 1.15; margin-bottom: 1em;&quot;&gt;&lt;img alt=&quot;Create new maven project&quot; border=&quot;0&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihG2MX6WgmyCGq1rqo3vosizYHn4aN4sEOeFJNLuFUK-nl6Qtg8EognroB-Nyfi_MamnQGHnRpL9xTSSvVilgPRCrSD16pVMHqgyTLk643CO8-2i-j0h6BnoIpZleTJjFMkAnQzhDb-Mnc/w640-h360/new-maven-project.png&quot; title=&quot;Create new maven project&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;font size=&quot;6&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;font-size: 14.6667px; line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;We would
require the following dependencies to work with &lt;b&gt;Rest Assured&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Copy them inside your &lt;b style=&quot;line-height: 1.15;&quot;&gt;pom.xml&lt;/b&gt; file.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;b style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;h4 style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;b style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;RestAssured Dependency&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;
  
  &lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&lt;font face=&quot;verdana&quot;&gt; &amp;lt;!-- https://mvnrepository.com/artifact/io.rest-assured/rest-assured --&amp;gt;  
 &amp;lt;dependency&amp;gt;  
   &amp;lt;groupId&amp;gt;io.rest-assured&amp;lt;/groupId&amp;gt;  
   &amp;lt;artifactId&amp;gt;rest-assured&amp;lt;/artifactId&amp;gt;  
   &amp;lt;version&amp;gt;4.3.0&amp;lt;/version&amp;gt;  
   &amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;  
 &amp;lt;/dependency&amp;gt;  &lt;/font&gt;&lt;/code&gt;&amp;nbsp;&lt;/font&gt;&lt;/pre&gt;&lt;h3 style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/h3&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;TestNG Dependency&lt;/span&gt;&lt;/font&gt;&lt;/h4&gt;



  &lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;!--HTML generated using hilite.me--&gt;
  
  &lt;/font&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt; &amp;lt;!-- https://mvnrepository.com/artifact/org.testng/testng --&amp;gt;  
 &amp;lt;dependency&amp;gt;  
   &amp;lt;groupId&amp;gt;org.testng&amp;lt;/groupId&amp;gt;  
   &amp;lt;artifactId&amp;gt;testng&amp;lt;/artifactId&amp;gt;  
   &amp;lt;version&amp;gt;7.1.0&amp;lt;/version&amp;gt;  
   &amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;  
 &amp;lt;/dependency&amp;gt;&lt;/font&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;  
&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;

  
&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;

&lt;h4 style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;Java Hamcrest Library &lt;/font&gt;&lt;/span&gt;&lt;/h4&gt;

  &lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;!--HTML generated using hilite.me--&gt;
  &lt;/font&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt; &lt;/font&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&amp;lt;!-- https://mvnrepository.com/artifact/org.hamcrest/java-hamcrest --&amp;gt;  
 &amp;lt;dependency&amp;gt;  
   &amp;lt;groupId&amp;gt;org.hamcrest&amp;lt;/groupId&amp;gt;  
   &amp;lt;artifactId&amp;gt;java-hamcrest&amp;lt;/artifactId&amp;gt;  
   &amp;lt;version&amp;gt;2.0.0.0&amp;lt;/version&amp;gt;  
   &amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;  
 &amp;lt;/dependency&amp;gt;&lt;/font&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;  
&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;

  
&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 1.15;&quot;&gt;Now create three packages&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 1.15;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 14.6667px; line-height: 1.15;&quot;&gt;in &lt;b style=&quot;line-height: 1.15;&quot;&gt;src/test/java&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;div style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1eSFPF7wlPJbU9yvBRigH81ebLMXCXgE8m9ZamfPBKk97CZA09v7oYiTiaz-FKsEgwjE_YdCApoVghF6_RRJwN9Pg-9C91iUZl2gNgrV54FQoNmbfJgJS3WXVbQjdWKmiiaapVkFfEvGH/s179/packages.PNG&quot; style=&quot;clear: left; line-height: 1.15; margin-bottom: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;112&quot; data-original-width=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1eSFPF7wlPJbU9yvBRigH81ebLMXCXgE8m9ZamfPBKk97CZA09v7oYiTiaz-FKsEgwjE_YdCApoVghF6_RRJwN9Pg-9C91iUZl2gNgrV54FQoNmbfJgJS3WXVbQjdWKmiiaapVkFfEvGH/&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;We will return to this in a minute!&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;Methods used in Rest Assured&lt;/font&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;We will cover this framework in BDD(Behaviour Driven Development) style.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;And Rest
Assured makes it easy to work with BDD since it gives us built-in methods for
it. Let’s check out these methods :&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

  &lt;div style=&quot;background-color: #efefef; line-height: 1.15; padding: 5px;&quot;&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b style=&quot;line-height: 1.15;&quot;&gt;given()&lt;/b&gt;:&amp;nbsp; We set headers, cookies, parameters &amp;amp; authorization
headers for our requests here.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b style=&quot;line-height: 1.15;&quot;&gt;when()&lt;/b&gt;:&amp;nbsp; We use HTTP verbs POST, PUT, DELETE, GET to send requests here.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;b style=&quot;line-height: 1.15;&quot;&gt;then()&lt;/b&gt;:&amp;nbsp; &amp;nbsp; Validating the responses received from the server.&lt;/font&gt;&lt;font size=&quot;6&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

  &lt;/div&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h4 style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;Clear? Yes?&lt;/font&gt;&lt;/span&gt;&lt;/h4&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h2 style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;Setting Config files for different environments&lt;/font&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b&gt;Rest Assured Automation Framework&lt;/b&gt; will be useless if we run it on a single environment because in real-time APIs are deployed to different environments. Let me tell
you different test environments that we have in my company, so there are three
:&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 1; text-indent: -18pt;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot; style=&quot;line-height: 1;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1;&quot;&gt;&lt;span style=&quot;line-height: 1;&quot;&gt;1.&lt;span style=&quot;font: 7pt / 1 &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1;&quot;&gt;&lt;b&gt;DEV - Development Environment&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 1; text-indent: -18pt;&quot;&gt;&lt;b&gt;&lt;font size=&quot;4&quot;&gt;&lt;font face=&quot;verdana&quot; style=&quot;line-height: 1;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1;&quot;&gt;&lt;span style=&quot;line-height: 1;&quot;&gt;2.&lt;span style=&quot;font: 7pt / 1 &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1;&quot;&gt;INT&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;font-family: verdana; line-height: 1;&quot;&gt;- Integration Environment&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 1; text-indent: -18pt;&quot;&gt;&lt;b&gt;&lt;font size=&quot;4&quot;&gt;&lt;font face=&quot;verdana&quot; style=&quot;line-height: 1;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1;&quot;&gt;&lt;span style=&quot;line-height: 1;&quot;&gt;3.&lt;span style=&quot;font: 7pt / 1 &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1;&quot;&gt;STG&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;font-family: verdana; line-height: 1;&quot;&gt;- Staging Environment&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;We have
different URLs for these three environments and properties specific to the
environments like port, auth tokens, etc. And this will be the base for our Automation Framework.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;I will
create three different property/config files for these three environments.
That’s what you have to do in the root of your project.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6Ob8_-bJ8AfPESxnuzq8P84mvZMFJyJ3NxS_48jBoFsq34Rbztd_Mlen5uHAVt7F1T0hprn9Dm066c-Uw8Fmq3ZjImu6kjr0q-AK9F5xZUjOoceN176j-Z4mb2wWyDxMmL_HoVqGxnFLr/s385/environments.PNG&quot; style=&quot;clear: left; line-height: 1.15; margin-bottom: 1em;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;img alt=&quot;config file location&quot; border=&quot;0&quot; data-original-height=&quot;385&quot; data-original-width=&quot;287&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6Ob8_-bJ8AfPESxnuzq8P84mvZMFJyJ3NxS_48jBoFsq34Rbztd_Mlen5uHAVt7F1T0hprn9Dm066c-Uw8Fmq3ZjImu6kjr0q-AK9F5xZUjOoceN176j-Z4mb2wWyDxMmL_HoVqGxnFLr/w239-h320/environments.PNG&quot; title=&quot;config file location&quot; width=&quot;239&quot; /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;And define two properties inside each file:&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;span lang=&quot;&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;div style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtwsTmLEQd68KREuRTHZ604349Jn4eJ-vzQPIfYN-a88PgwqAjkSvKwa-A5g1a190Aa1_FUGcJzyTUoYUaGfA-ONFWqUSx1fGzyn3wIn1D9Kuq8s3pXhTibeF4bF2GArC2UcLwhB5VpcY4/s487/devenv.PNG&quot; style=&quot;clear: left; line-height: 1.15; margin-bottom: 1em;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;img alt=&quot;dev environment config file&quot; border=&quot;0&quot; data-original-height=&quot;224&quot; data-original-width=&quot;487&quot; height=&quot;147&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtwsTmLEQd68KREuRTHZ604349Jn4eJ-vzQPIfYN-a88PgwqAjkSvKwa-A5g1a190Aa1_FUGcJzyTUoYUaGfA-ONFWqUSx1fGzyn3wIn1D9Kuq8s3pXhTibeF4bF2GArC2UcLwhB5VpcY4/w320-h147/devenv.PNG&quot; title=&quot;dev environment config file&quot; width=&quot;320&quot; /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisTWQ-l92lLkaTp70tSLsW8FQJ_EUJ6iejLxbrOPpKfonoePZ63g2W51cimHLw0gWhFWl8_Y6WJx7y8VmhUp3lgjhE1yM_PNuzSA_UerGNdoQY3QjaVWB3slbq6G8Gnagudy6fxIPxCKNB/s440/intenv.PNG&quot; style=&quot;clear: left; line-height: 1.15; margin-bottom: 1em; text-align: center;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;img alt=&quot;integration environment config file&quot; border=&quot;0&quot; data-original-height=&quot;192&quot; data-original-width=&quot;440&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisTWQ-l92lLkaTp70tSLsW8FQJ_EUJ6iejLxbrOPpKfonoePZ63g2W51cimHLw0gWhFWl8_Y6WJx7y8VmhUp3lgjhE1yM_PNuzSA_UerGNdoQY3QjaVWB3slbq6G8Gnagudy6fxIPxCKNB/w320-h140/intenv.PNG&quot; title=&quot;integration environment config file&quot; width=&quot;320&quot; /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxOrLy7cUbC818flrucqcwS-DfiOFnaU5KRBngJodmBI1JITa3Hf7SSrJh5OUuFwkOcDnd-s-7QliCHZX3GUtDNeA-iYPsMbs72G3bU1UzVAgE3tDTrANxAmn4G_QmCyUsVZdEfTmyhOHZ/s433/stgenv.PNG&quot; style=&quot;clear: left; line-height: 1.15; margin-bottom: 1em; text-align: center;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;img alt=&quot;staging environment config file&quot; border=&quot;0&quot; data-original-height=&quot;189&quot; data-original-width=&quot;433&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxOrLy7cUbC818flrucqcwS-DfiOFnaU5KRBngJodmBI1JITa3Hf7SSrJh5OUuFwkOcDnd-s-7QliCHZX3GUtDNeA-iYPsMbs72G3bU1UzVAgE3tDTrANxAmn4G_QmCyUsVZdEfTmyhOHZ/w320-h140/stgenv.PNG&quot; title=&quot;staging environment config file&quot; width=&quot;320&quot; /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;We&#39;ll use a free &lt;a href=&quot;https://jsonplaceholder.typicode.com/&quot; style=&quot;line-height: 1.15;&quot; target=&quot;_blank&quot;&gt;jsonplaceholder&lt;/a&gt; API (Warning: API is not consistent, you might get errors sometimes.)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;And single we have only one URL we will add this in all the three files.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;But in a real scenario, we&#39;ll have different URLs for different environments.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;h2 style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;Starting up with our coding part&lt;/font&gt;&lt;/h2&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Now in our
&lt;b style=&quot;line-height: 1.15;&quot;&gt;com.utilities class,&lt;/b&gt; we will define a &lt;b style=&quot;line-height: 1.15;&quot;&gt;BaseClass.java&lt;/b&gt; file where we will set &lt;b&gt;baseURI&lt;/b&gt; for
&lt;b&gt;Rest Assured&lt;/b&gt; by fetching it from our above properties file with the help of parameter
passed from &lt;b&gt;Maven&lt;/b&gt; Command line(We will see it later).&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;The base URI will be set depending upon the environment we will pass from the command line.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;For Example : &lt;b&gt;mvn test -Denv=INT&lt;/b&gt; (will run the tests in INT environment)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;

  &lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;!--HTML generated using hilite.me--&gt;
  &lt;/font&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;1:  //BaseClass.java  
2:  package com.utilities;  
3:  import java.io.File;  
4:  import java.io.FileInputStream;  
5:  import java.io.FileNotFoundException;  
6:  import java.io.IOException;  
7:  import java.util.Properties;  
8:  import org.apache.log4j.Logger;  
9:  import org.apache.log4j.PropertyConfigurator;  
10:  import org.testng.annotations.BeforeSuite;  
11:  import org.testng.annotations.BeforeTest;  
12:  import org.testng.annotations.Optional;  
13:  import org.testng.annotations.Test;  
14:  import com.testcases.PostsTest;  
15:  import groovyjarjarpicocli.CommandLine.Parameters;  
16:  import io.restassured.RestAssured;  
17:  public class BaseClass {  
18:       public String url;  
19:       String info;  
20:       public Logger LOGGER;  
21:       public Properties prop = new Properties();  
22:       @org.testng.annotations.Parameters({&quot;env&quot;})  
23:       @BeforeTest()  
24:       public void initialize(String environment){  
25:            try {  
26:                 String rootPath = System.getProperty(&quot;user.dir&quot;);  
27:                 PropertyConfigurator.configure(rootPath + &quot;/log4j.properties&quot;);  
28:                 LOGGER = Logger.getLogger(BaseClass.class);       
29:                 if(environment.equals(&quot;DEV&quot;)) {  
30:                      prop.load(new FileInputStream(new File(rootPath + &quot;/DEVENV.properties&quot;)));  
31:                 }else if(environment.equals(&quot;INT&quot;)) {  
32:                      prop.load(new FileInputStream(new File(rootPath + &quot;/INTENV.properties&quot;)));  
33:                 }else if(environment.equals(&quot;STG&quot;)) {  
34:                      prop.load(new FileInputStream(new File(rootPath + &quot;/STGENV.properties&quot;)));  
35:                 }  
36:                 url = prop.getProperty(&quot;url&quot;);  
37:                 info = prop.getProperty(&quot;info&quot;);  
38:                 System.out.println(&quot;===================================&quot;);  
39:                 System.out.println(&quot;Info --- &quot;+info);  
40:                 System.out.println(&quot;===================================&quot;);  
41:                 RestAssured.baseURI = url;  
42:            }catch(FileNotFoundException f) {  
43:            }catch(IOException io) {  
44:            }  
45:       }  
46:  }&lt;/font&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;  
&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;

  
&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;The below line will receive parameter which we will pass from &lt;b&gt;Maven&lt;/b&gt; Command line/Jenkins(If you want to use
it for CI/CD)&lt;/span&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: #646464; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;org.testng.annotations.&lt;/span&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: #646464; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;Parameters&lt;/span&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;({&lt;/span&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: #2a00ff; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;&quot;env&quot;&lt;/span&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;})&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot;&gt;&lt;font size=&quot;4&quot;&gt;Below code checks the &lt;b&gt;&lt;i&gt;env&lt;/i&gt;&lt;/b&gt;
parameter that we passed from command line and loads a respective config file&lt;/font&gt;&lt;font size=&quot;6&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
  
  &lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;!--HTML generated using hilite.me--&gt;
  &lt;/font&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;font face=&quot;verdana&quot;&gt; &lt;/font&gt;&lt;font face=&quot;verdana&quot;&gt;if(environment.equals(&quot;DEV&quot;)) {  
      prop.load(new FileInputStream(new File(rootPath + &quot;/DEVENV.properties&quot;)));  
 }else if(environment.equals(&quot;INT&quot;)) {  
      prop.load(new FileInputStream(new File(rootPath + &quot;/INTENV.properties&quot;)));  
 }else if(environment.equals(&quot;STG&quot;)) {  
      prop.load(new FileInputStream(new File(rootPath + &quot;/STGENV.properties&quot;)));  
 }  
 url = prop.getProperty(&quot;url&quot;);  
 info = prop.getProperty(&quot;info&quot;);&lt;/font&gt;&lt;/font&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;  
&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;


&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;And this code sets up our base URI.&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;RestAssured.&lt;/span&gt;&lt;i style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: #0000c0; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;baseURI&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: #0000c0; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;url&lt;/span&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Now Create a &lt;b&gt;Post.java&lt;/b&gt; file in &lt;b&gt;com.models&lt;/b&gt;, I will tell you later why?&lt;/font&gt;&lt;/p&gt;
  &lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;!--HTML generated using hilite.me--&gt;
  &lt;/font&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;1:  //Post.java  
2:  package com.models;  
3:  public class Post {  
4:       public int userId;  
5:       public int id;  
6:       public String title;  
7:       public String body;  
8:       public int getUserId() {  
9:            return userId;  
10:       }  
11:       public void setUserId(int userId) {  
12:            this.userId = userId;  
13:       }  
14:       public int getId() {  
15:            return id;  
16:       }  
17:       public void setId(int id) {  
18:            this.id = id;  
19:       }  
20:       public String getTitle() {  
21:            return title;  
22:       }  
23:       public void setTitle(String title) {  
24:            this.title = title;  
25:       }  
26:       public String getBody() {  
27:            return body;  
28:       }  
29:       public void setBody(String body) {  
30:            this.body = body;  
31:       }  
32:  }&lt;/font&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;  
&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;

  &lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;There are a number of fake Rest APIs on &lt;a href=&quot;https://jsonplaceholder.typicode.com/&quot; style=&quot;line-height: 1.15;&quot; target=&quot;_blank&quot;&gt;jsonplaceholder &lt;/a&gt;website, but we will use &lt;b&gt;/posts&lt;/b&gt; API.&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;URL :&amp;nbsp;&lt;a href=&quot;https://jsonplaceholder.typicode.com/posts&quot; style=&quot;line-height: 1.15;&quot;&gt;https://jsonplaceholder.typicode.com/posts&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15; margin-bottom: 0cm;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15; margin-bottom: 0cm;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Now let&#39;s create our test cases in package &lt;b&gt;com.testcases&lt;/b&gt; defined earlier.&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15; margin-bottom: 0cm;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Create a &lt;b&gt;PostsTest.java&lt;/b&gt; file under package &lt;b&gt;com.testCases&lt;/b&gt;.&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15; margin-bottom: 0cm;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;!--HTML generated using hilite.me--&gt;
  &lt;/font&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;1:  //PostsTest.java  
2:  package com.testcases;  
3:  import java.io.FileInputStream;  
4:  import java.io.FileNotFoundException;  
5:  import java.io.IOException;  
6:  import java.util.Properties;  
7:  import static org.hamcrest.Matchers.*;  
8:  import org.apache.log4j.Logger;  
9:  import org.apache.log4j.PropertyConfigurator;  
10:  import org.testng.Assert;  
11:  import org.testng.annotations.BeforeClass;  
12:  import org.testng.annotations.Test;  
13:  import com.models.Post;  
14:  import com.utilities.BaseClass;  
15:  import static io.restassured.RestAssured.*;  
16:  import io.restassured.RestAssured;  
17:  import io.restassured.http.ContentType;  
18:  import io.restassured.path.json.JsonPath;  
19:  import io.restassured.response.Response;  
20:  public class PostsTest extends BaseClass {  
21:       int postId = 1;  
22:       @Test(priority = 1)  
23:       void createNewPost() {  
24:            Post newPost = new Post();  
25:            newPost.setUserId(1);  
26:            newPost.setTitle(&quot;new title&quot;);  
27:            newPost.setBody(&quot;new body&quot;);  
28:            Post postedPost =   
29:            given()  
30:                 .contentType(ContentType.JSON)  
31:                 .body(newPost)  
32:            .when()  
33:                 .post(&quot;/posts&quot;)  
34:            .then()  
35:                 .assertThat()  
36:                 .statusCode(201)  
37:                 .log().all()  
38:                 .extract()  
39:                 .as(Post.class);  
40:            System.out.println(&quot;Posted Post Title : &quot;+postedPost.title);  
41:            postId = postedPost.userId;  
42:            Assert.assertEquals(postedPost.title, &quot;new title&quot;);  
43:       }  
44:       @Test(priority = 2)  
45:       void getSinglePost() {  
46:            given()  
47:            .when()  
48:                 .get(&quot;/posts/&quot;+postId)  
49:            .then()  
50:                 .assertThat()  
51:                 .body(&quot;id&quot;, equalTo(postId))  
52:  //               .body(&quot;id&quot;, equalTo(postId), &quot;title&quot;, equalTo(&quot;new title&quot;)  
53:                 .log().all(true);  
54:       }  
55:  }&lt;/font&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;  
&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;We will be
having just one class and these two methods since this article will become way too
long. You can add more if you understand the basics.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Now look at
the code below. This is why we added Post.java class previously&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;
  &lt;/font&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt; &lt;/font&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;Post newPost = new Post();  
 newPost.setUserId(1);  
 newPost.setTitle(&quot;new title&quot;);  
 newPost.setBody(&quot;new body&quot;);&lt;/font&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;  
&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;

  
&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;This is how
we send our body in a post request&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Another alternative is to use Java&amp;nbsp;&lt;b style=&quot;line-height: 1.15;&quot;&gt;HashMap&lt;/b&gt; but I like this better.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot;&gt;&lt;font size=&quot;4&quot;&gt;Now you
will have to add a dependency in &lt;b&gt;pom.xml&lt;/b&gt;&lt;/font&gt;&lt;font size=&quot;6&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;
  &lt;/font&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt; &lt;/font&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&amp;lt;!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind --&amp;gt;  
 &amp;lt;dependency&amp;gt; &amp;lt;!-- Convert java onject to json --&amp;gt;  
       &amp;lt;groupId&amp;gt;com.fasterxml.jackson.core&amp;lt;/groupId&amp;gt;  
       &amp;lt;artifactId&amp;gt;jackson-databind&amp;lt;/artifactId&amp;gt;  
       &amp;lt;version&amp;gt;2.10.2&amp;lt;/version&amp;gt;  
  &amp;lt;/dependency&amp;gt;&lt;/font&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;  
&lt;/font&gt;&lt;/code&gt;&lt;/pre&gt;

  
&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15; margin-bottom: 0cm;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;span style=&quot;color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;&lt;span style=&quot;line-height: 1.15;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;This dependency will convert our &lt;b&gt;Java object&lt;/b&gt; to &lt;b&gt;JSON&lt;/b&gt; format.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;given()&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;line-height: 1.15;&quot;&gt;&amp;nbsp;&lt;/span&gt;.contentType(ContentType.JSON)&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;background: rgb(232, 242, 254); color: black; font-family: consolas; font-size: 10pt; line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&amp;nbsp;.body(newPost)&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;You see we are setting the body with our
&lt;b&gt;newPost&lt;/b&gt; object but how will this object be sent across to the server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Because the only format that is used for transferring data is &lt;b&gt;JSON/XML&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b&gt;Finally, convert your project to TestNG by:&lt;/b&gt;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Right-clicking on your project root folder -&amp;gt; TestNG -&amp;gt; Convert to TestNG.&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;b&gt;This is the final step of our framework.&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;Now for
running the tests open the command prompt from the folder where your project
is.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;And run
command&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;mvn test
–Denv=INT&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;span lang=&quot;&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;div style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRoJrJl_Rl9cRVUV9W0XrbzNJs8FeCOZDshRmNh45NRBjvq3WEed7ZJp4cJS0KNvvTsogBOrqhM9MMmSWMjedp8DU4SI-FGp-DAeIMr0XQShcoHb3wpsDkrKaL7_NAcGZeB4Lcz3P9Bt_M/s647/maven-command-line.PNG&quot; style=&quot;clear: left; line-height: 1.15; margin-bottom: 1em;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;img alt=&quot;maven command line&quot; border=&quot;0&quot; data-original-height=&quot;284&quot; data-original-width=&quot;647&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRoJrJl_Rl9cRVUV9W0XrbzNJs8FeCOZDshRmNh45NRBjvq3WEed7ZJp4cJS0KNvvTsogBOrqhM9MMmSWMjedp8DU4SI-FGp-DAeIMr0XQShcoHb3wpsDkrKaL7_NAcGZeB4Lcz3P9Bt_M/w400-h175/maven-command-line.PNG&quot; title=&quot;maven command line&quot; width=&quot;400&quot; /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/o:p&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;You can use
any environment (DEV, INT, STG).&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;line-height: 1.15; text-align: left;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;That is it! I want you
to try out this &lt;b&gt;Rest Assured Framework&lt;/b&gt; once.&lt;/font&gt;&lt;/span&gt;&lt;/h4&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;You can
further integrate it with Github, Jenkins, reports, or logging(Log4j).&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;If you want
the Git and Jenkins integration or the code of the framework, comment down
below&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;4&quot;&gt;If you need I will
write another article for it – maybe a &lt;b style=&quot;line-height: 1.15;&quot;&gt;Second
part of this framework&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;span lang=&quot;&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;o:p style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;verdana&quot; size=&quot;6&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/2456166556508905163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/06/rest-assured-framework.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/2456166556508905163'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/2456166556508905163'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/06/rest-assured-framework.html' title='Rest Assured Framework(Java, TestNG, Maven) | Test Automation Framework'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiykuq2e1rXfmaZJeFw6INa1PdbSeQH4qK2kHB30E03dDKaTLbCHsfbXtVrHVwSNoykkGXg5tQFh1Egnef2B9maarPtAGTYraKcFMsjRfM-0M9Nn4cZmc9e0Q8pXVGYJeVvMr166WsBk8i_/s72-w400-h225-c/Rest-Assured-Framework.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-4269778021754283510</id><published>2020-05-30T19:33:00.009+05:30</published><updated>2020-07-08T11:54:17.662+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="selenium-4"/><category scheme="http://www.blogger.com/atom/ns#" term="SeleniumInterviewQuestions"/><title type='text'>Selenium 4 Features - 2020</title><content type='html'>&lt;h1&gt;Selenium 4 Features&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2YNFykgH6WalObSzZkiH26PFH7Yc9UGjZlZWh8RaQXhoV6-AAfyT4cbzv8QVguM3JjKRyh-gqTgVZc8CiX-c5p-kB-2DP33o0o8-E7pxV-BoDA4F3BiM-jbbJiRFchqmlxwa1yXacGpxu/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Hi All, In today&#39;s article we will look into some of the Selenium 4 features. Although, still in its Alpha release, Selenium 4&#39;s stable release is expected to hit the market soon.&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2YNFykgH6WalObSzZkiH26PFH7Yc9UGjZlZWh8RaQXhoV6-AAfyT4cbzv8QVguM3JjKRyh-gqTgVZc8CiX-c5p-kB-2DP33o0o8-E7pxV-BoDA4F3BiM-jbbJiRFchqmlxwa1yXacGpxu/w400-h225/Selenium-4-features-min.png&quot; title=&quot;Selenium 4 Features&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Hi All, In today&#39;s article we will look into some of the &lt;b&gt;Selenium 4 features&lt;/b&gt;. Although, still in its Alpha release, &lt;b&gt;Selenium 4&#39;s&lt;/b&gt; stable release is expected to hit the market soon.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As of the date of this article, the latest &lt;b&gt;Selenium Alpha&lt;/b&gt; release is&amp;nbsp;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;&lt;b&gt;v4.0.0-alpha-6&lt;/b&gt; - &lt;a href=&quot;https://raw.githubusercontent.com/SeleniumHQ/selenium/master/java/CHANGELOG&quot; target=&quot;_blank&quot;&gt;Check Official ChangeLog File&lt;/a&gt; for the latest updates.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There are changes in many areas in &lt;b&gt;Selenium 4&lt;/b&gt; like Selenium Grid, Selenium IDE and Selenium Webdriver, but we will be mainly focusing on changes in &lt;b&gt;Selenium Webdriver&lt;/b&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;font size=&quot;4&quot;&gt;Also, try:&amp;nbsp;&lt;a href=&quot;https://www.programmingdomain.com/p/selenium-quiz-with-answers.html&quot;&gt;Selenium Quiz with Answers&lt;/a&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;img alt=&quot;selenium 4 versus selenium 3&quot; border=&quot;0&quot; data-original-height=&quot;2000&quot; data-original-width=&quot;800&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5VvPTOnpAhIeB-tDFXE5_Jg1d_UbRzdRTvagOUgn-NqfWZatSe7AEzzRSHPsf1sFiXfpJ40bcdfimt3DDMd0Rn7F0ZEp3QRgynTQb9_RdoSWYS2PPLleGHiaKl5e2C0IX9aRTlRtfT85r/d/Difference-between-selenium-4-and-selenium-3.jpg&quot; style=&quot;height: auto; width: 100%;&quot; title=&quot;selenium 4 versus selenium 3&quot; /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The list of&amp;nbsp;&lt;b&gt;Selenium 4 features&lt;/b&gt;&amp;nbsp;we will be looking in today are :&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Take Screenshot of Web Elements&lt;/li&gt;&lt;li&gt;Capturing Screenshot of a section in a web page.&lt;/li&gt;&lt;li&gt;Opening a new tab on the browser.&lt;/li&gt;&lt;li&gt;Opening a new window on the browser.&lt;/li&gt;&lt;li&gt;Relative/Friendly locators&lt;/li&gt;&lt;li&gt;getRect() for finding dimensions and position.&lt;/li&gt;&lt;li&gt;Chrome Devtools API.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;h4&gt;&lt;br /&gt;&lt;/h4&gt;&lt;h4&gt;If you want to download Selenium 4, you can directly go to the &lt;a href=&quot;https://www.selenium.dev/downloads/&quot; target=&quot;_blank&quot;&gt;Selenium Website&lt;/a&gt;.&amp;nbsp;&lt;/h4&gt;&lt;h4&gt;Or, download it from the &lt;a href=&quot;https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java&quot; target=&quot;_blank&quot;&gt;Maven Repository&lt;/a&gt;.&lt;/h4&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2&gt;Take Screenshot of Web Elements&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;I assume you all know how we used to take screenshots in &lt;b&gt;Selenium 3&lt;/b&gt;? If not, let us refresh ourselves.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In &lt;b&gt;Selenium 3&lt;/b&gt; we used to take a screenshot of the entire page and not a specific element. The below code will refresh your memories.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; File src = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);  
 FileUtils.copyFile(src,new File(&quot;file where you want to save the screenshot&quot;));  
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;But with &lt;b&gt;Selenium 4&lt;/b&gt;, we can take a screenshot of &lt;b&gt;web elements&lt;/b&gt; on a web page. Just grab the element by &lt;b&gt;findElement()&lt;/b&gt; method and use &lt;b&gt;getScreenshotAs()&lt;/b&gt; method.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Suppose you want to take a screenshot of an email field on a webpage. Then the below code does it for you :&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; WebElement email = driver.findElement(By.id(&quot;email&quot;));  
 File src = email.getScreenshotAs(OutputType.FILE);  
 FileUtils.copyFile(src,new File(&quot;file where you want to save the screenshot&quot;));  
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The screenshot will look like this :&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJORV3jCpgFCLfmHXr0N5bIBRT6Xv4tbkfrvGqBTCMgX9fwbqfszTDcLVrqfZsWraLd7pYUbbT7ElcUzQHjw4M1MDKvaPu5_os_rCZAYrZ9Qxn5zllti4kphwuHeXNaYJFgAqCgNLcMD4A/&quot; style=&quot;clear: left; margin-bottom: 1em;&quot;&gt;&lt;img alt=&quot;Take Screenshot of Web Elements&quot; border=&quot;0&quot; data-original-height=&quot;65&quot; data-original-width=&quot;374&quot; height=&quot;56&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJORV3jCpgFCLfmHXr0N5bIBRT6Xv4tbkfrvGqBTCMgX9fwbqfszTDcLVrqfZsWraLd7pYUbbT7ElcUzQHjw4M1MDKvaPu5_os_rCZAYrZ9Qxn5zllti4kphwuHeXNaYJFgAqCgNLcMD4A/w320-h56/element_screenshot.PNG&quot; title=&quot;Take Screenshot of Web Elements&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can also take screenshots the &lt;b&gt;Selenium 3&lt;/b&gt; style if you are in love with the previous version.&lt;/div&gt;&lt;div&gt;Then the below code will help you :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; WebElement email = driver.findElement(By.id(&quot;email&quot;));  
 File src = ((TakesScreenshot)element).getScreenshotAs(OutputType.FILE);  
 FileUtils.copyFile(src,new File(&quot;file where you want to save the screenshot&quot;));  
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 id=&quot;number2&quot;&gt;Capturing Screenshot of a section in a web page&lt;/h2&gt;&lt;div&gt;When it comes to capturing a screenshot of a section of a web page and by section, &lt;b&gt;I mean a table or a form&amp;nbsp;on a web page&lt;/b&gt;, we can locate the web element(&lt;b&gt;again a table or a form or a div&lt;/b&gt;) and use &lt;b&gt;getScreenshotAs()&lt;/b&gt; method on it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For example, the below code :&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; WebElement followByEmail = driver.findElement(By.id(&quot;FollowByEmaill&quot;)); //a div on my page programmingdomain.com  
 File src = ((TakesScreenshot)followByEmail).getScreenshotAs(OutputType.FILE);  
 FileUtils.copyFile(src,new File(&quot;file where you want to save the screenshot&quot;));  
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;will give you this screenshot :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyduJlT9URrCHS1cZG2rOI-Av6wZ3EaGJnLzmQ9anb4MtpYsfbPkeLvvALux1g_gUTw2b0KB60c90BmpVwsOi4g6RCy-7gZARACaIFgiaWEV6g-fwg__UY1AWkNxRE4dDY0xD_azACdsRA/&quot; style=&quot;clear: left; margin-bottom: 1em;&quot;&gt;&lt;img alt=&quot;Capturing Screenshot of a section in a web page&quot; border=&quot;0&quot; data-original-height=&quot;213&quot; data-original-width=&quot;305&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyduJlT9URrCHS1cZG2rOI-Av6wZ3EaGJnLzmQ9anb4MtpYsfbPkeLvvALux1g_gUTw2b0KB60c90BmpVwsOi4g6RCy-7gZARACaIFgiaWEV6g-fwg__UY1AWkNxRE4dDY0xD_azACdsRA/d/section_screenshot.PNG&quot; title=&quot;Capturing Screenshot of a section in a web page&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h2&gt;&lt;br /&gt;&lt;/h2&gt;&lt;h2&gt;Opening a new tab on the browser.&lt;/h2&gt;&lt;div&gt;&lt;b&gt;Selenium 4&lt;/b&gt; has come up with many features and one being, opening a new tab on the browser(bank tab).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For opening a new blank window &lt;b&gt;newWindow()&lt;/b&gt; method is used in &lt;b&gt;Selenium&lt;/b&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Consider the following code that opens a google page, then opens a new tab and navigates to a specific URL(programmingdomain.com).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; driver.get(&quot;https://www.google.com&quot;);  
 driver.switchTo().newWindow(WindowType.TAB);  
 driver.navidate().to(&quot;https://www.programmingdomain.com&quot;);  &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;&lt;br /&gt;&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2&gt;Opening a new window on the browser.&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;Very similar to the previous section, this section used &lt;b&gt;&lt;i&gt;WindowType.WINDOW&lt;/i&gt;&lt;/b&gt; instead of &lt;b&gt;&lt;i&gt;WindowType.TAB&lt;/i&gt;&lt;/b&gt; for opening a new window.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Consider the following code that opens a google page, then opens a new window and navigates to a specific URL(programmingdomain.com).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 660.328px;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; driver.get(&quot;https://www.google.com&quot;);  
 driver.switchTo().newWindow(WindowType.WINDOW);  
 driver.navidate().to(&quot;https://www.programmingdomain.com&quot;);  &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;&lt;br /&gt;&lt;/h2&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Relative/Friendly Locators&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;Locators play an important role in finding/locating elements on a web page. &lt;b&gt;Selenium 3&lt;/b&gt; had 8 locators namely, ID, Name, TagName, ClassName, CssSelecor, XPath,LinkText, PartialLinkText and with &lt;b&gt;Selenium 4&lt;/b&gt; this number is increasing even more.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Below are the methods that are used for relatively locating elements in &lt;b&gt;Selenium 4&lt;/b&gt; :&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;below(): finds element which is below the already located/searched element.&lt;/li&gt;&lt;li&gt;toLeftOf() : finds element which is in the left of the already located/searched element.&lt;/li&gt;&lt;li&gt;toRightOf() : finds element which is in the right of the already located/searched element.&lt;/li&gt;&lt;li&gt;above(): finds element which is above the already located/searched element.&lt;/li&gt;&lt;li&gt;near(): finds element which is at most 50px away from located/searched element.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;The below example will make it clear for you :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; //import static org.openqa.selenium.support.locators.RelativeLocator.withTagName;  
 WebElement nextButton = driver.findElement(By.id(&quot;nextButton&quot;));  
 WebElement previousButton = driver.findElement(withTagName(&quot;button&quot;).toLeftOf(nextButton));  
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This code locates previousButton when you have already located nextButton and want to locate previousButton which is present at the left of nextButton.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The &lt;b&gt;withTageName()&lt;/b&gt; method return &lt;b&gt;RelativeLocator&lt;/b&gt; which is similar to &lt;b&gt;By&lt;/b&gt; class.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Also, &lt;b&gt;Selenium&lt;/b&gt; uses a Javascript function &lt;b&gt;getBoundingClientRect()&lt;/b&gt; internally to find the relative element.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2&gt;getRect() for finding dimensions and position.&lt;/h2&gt;&lt;div&gt;In &lt;b&gt;Selenium 4&lt;/b&gt;, &lt;b&gt;getRect()&lt;/b&gt; method is used to get the dimensions of a web element like height, width, X-Coordinate, Y-Coordinate.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As told in the previous section, &lt;b&gt;getRect()&lt;/b&gt; also uses &lt;b&gt;getBoundingClientRect()&lt;/b&gt; function of Javascript to get the dimensions of web elements.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let&#39;s see how we use to get the dimensions in Selenium 3.x vs now with Selenium 4.x.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4&gt;Selenium 3.x&lt;/h4&gt;&lt;div&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; WebElement loginbtn = driver.findElement(By.id(&quot;login&quot;));  
 Dimension btnDim = loginbtn.getSize();  
 System.out.println(btnDim.getHeight());  
 System.out.println(btnDim.getWidth());  
 Point p = loginbtn.getLocation();   
 System.out.println(p.getX());  
 System.out.println(p.getY());  &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4&gt;Selenium 4.x&lt;/h4&gt;&lt;div&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; WebElement loginbtn = driver.findElement(By.id(&quot;login&quot;));  
 Rectangle rect = loginBtn.getRect();  
 System.out.println(rect.getHeight());  
 System.out.println(rect.getWidth());  
 System.out.println(rect.getX());  
 System.out.println(rect.getY())  
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2&gt;Chrome Devtools API&lt;/h2&gt;&lt;div&gt;Let&#39;s conclude this article with this topic. Selenium 4 features also include Chrome Devtools API which gives us the following facilities which could be only done manually previously :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Enable Network Offline&lt;/li&gt;&lt;li&gt;Enable Network Online&lt;/li&gt;&lt;li&gt;Get Console log&lt;/li&gt;&lt;li&gt;Load Insecure website&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There are some internal changes done in order to make the &lt;b&gt;Chrome Devtools API&lt;/b&gt; available to us.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The &lt;b&gt;ChromeDriver&lt;/b&gt; which previously extended from &lt;b&gt;RemoteWebDriver&lt;/b&gt; now has a bridge, &lt;b&gt;ChromiumDriver&lt;/b&gt; between them which includes &lt;b&gt;getDevTools()&lt;/b&gt; method.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4&gt;Selenium 3.x&lt;/h4&gt;&lt;div&gt;ChromeDriver&amp;nbsp; &lt;b&gt;&amp;lt;--&lt;/b&gt; RemoteWebDriver&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4&gt;Selenium 4.x&lt;/h4&gt;&lt;div&gt;ChromeDriver &lt;b&gt;&amp;lt;--&lt;/b&gt; ChromiumDriver &lt;b&gt;&amp;lt;--&lt;/b&gt; RemoteWebDriver&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And &lt;b&gt;ChromiumDriver&lt;/b&gt; includes the following method :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; public DevTools getDevTools(){  
      return devTools.orElseThrow(() -&amp;gt; new WebDriverException(&quot;Unable to create Devtools Connection&quot;));  
 }  
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you want the coding implementation of the above Devtools features, you can contact us. We&#39;ll be happy to provide you with that.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: center;&quot;&gt;**End of Selenium 4 Features**&lt;/h4&gt;&lt;h3&gt;If you like this article please comment down below and show your support. If you want information on any other topic, comment down and let us know. Thank You!&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;More on Selenium&lt;/h2&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/selenium-interview-questions.html&quot; style=&quot;line-height: 1.5;&quot; target=&quot;_blank&quot;&gt;Selenium Interview Questions and Answers&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/selenium-interview-questions-faqs.html&quot; style=&quot;line-height: 1.5;&quot; target=&quot;_blank&quot;&gt;Selenium Interview Questions - FAQs&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/selenium-interview-questions-xpath.html&quot; style=&quot;line-height: 1.5;&quot; target=&quot;_blank&quot;&gt;What is XPath in Selenium?&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/waits-in-selenium.html&quot; style=&quot;line-height: 1.5;&quot; target=&quot;_blank&quot;&gt;Waits in Selenium&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/page-object-model-in-selenium.html&quot; style=&quot;line-height: 1.5;&quot; target=&quot;_blank&quot;&gt;Page Object Model in Selenium&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.5;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/4269778021754283510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-4-features-2020.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/4269778021754283510'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/4269778021754283510'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-4-features-2020.html' title='Selenium 4 Features - 2020'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2YNFykgH6WalObSzZkiH26PFH7Yc9UGjZlZWh8RaQXhoV6-AAfyT4cbzv8QVguM3JjKRyh-gqTgVZc8CiX-c5p-kB-2DP33o0o8-E7pxV-BoDA4F3BiM-jbbJiRFchqmlxwa1yXacGpxu/s72-w400-h225-c/Selenium-4-features-min.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-8200915548820746645</id><published>2020-05-28T13:31:00.003+05:30</published><updated>2020-07-08T11:55:12.346+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="print-a-to-z-in-javascript"/><title type='text'>Print A to Z in Javascript</title><content type='html'>&lt;h1&gt;Print A to Z in Javascript&lt;/h1&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicxi1-57YUBzJnXvbKkuc8SzJirWd1nTBR6ArwzF8c1UK6__LFe8tgQTkWGdJESr5Rq1JbVb2cH_KKoqPDptTwF4koPH1zPHpTxiA6p8ZSY6azRZIlW3nVrjePGzxXzRBQWIOhx4R74u6B/&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Print A to Z in Javascript&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicxi1-57YUBzJnXvbKkuc8SzJirWd1nTBR6ArwzF8c1UK6__LFe8tgQTkWGdJESr5Rq1JbVb2cH_KKoqPDptTwF4koPH1zPHpTxiA6p8ZSY6azRZIlW3nVrjePGzxXzRBQWIOhx4R74u6B/w400-h225/print_a_to_z_javascript.png&quot; title=&quot;Print A to Z in Javascript&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Hi All! Today we&#39;ll be covering &lt;b&gt;How to print A to Z in Javascript? &lt;/b&gt;i.e., print all the characters of the English alphabet(A-Z).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;  &lt;br /&gt;Javascript&#39;s String object has an inbuilt method fromCharCode() that takes an ASCII code as input and returns the corresponding character.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We are looping through ASCII codes from 65(A) to 90(Z) by converting A to its ASCII equivalent with the help of&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: #f0f0f0; font-family: arial; font-size: 12px;&quot;&gt;&quot;A&quot;.charCodeAt(0)&lt;/span&gt;&amp;nbsp;inside a for() loop.&lt;/div&gt;&lt;div&gt;And then printing the characters from A-Z using&amp;nbsp;&lt;span style=&quot;background-color: #f0f0f0; font-family: arial; font-size: 12px;&quot;&gt;String.fromCharCode(i)&lt;/span&gt;.&amp;nbsp;&amp;nbsp;&lt;/div&gt;

&lt;div&gt;
  
  &lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; &amp;lt;!DOCTYPE html&amp;gt;  
 &amp;lt;html&amp;gt;  
   &amp;lt;head&amp;gt;  
     &amp;lt;script&amp;gt;  
       function print() {  
         for(var i = &quot;A&quot;.charCodeAt(0); i &amp;lt;= &quot;Z&quot;.charCodeAt(0); i++) {  
         document.getElementById(&quot;list&quot;).insertAdjacentHTML(&#39;beforeend&#39;,&#39;&amp;lt;li&amp;gt;&#39;+String.fromCharCode(i)+&#39;&amp;lt;/li&amp;gt;&#39;)  
         }  
       }  
     &amp;lt;/script&amp;gt;  
   &amp;lt;/head&amp;gt;  
 &amp;lt;body&amp;gt;  
   &amp;lt;button onclick=&quot;print()&quot;&amp;gt;Print A to Z&amp;lt;/button&amp;gt;  
   &amp;lt;ul id=&quot;list&quot;&amp;gt;  
     &amp;lt;!-- here we will insert &amp;lt;li&amp;gt; dynamically --&amp;gt;  
   &amp;lt;/ul&amp;gt;  
 &amp;lt;/body&amp;gt;  
 &amp;lt;/html&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Output :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVC2_vGJPLeNwrGk70ebocbZI8Lp13rzgYWR4x6yLGbyKzME0huxl64q7Bj3fdx-oBFRZU3RmkQCQnftYuJjrDYtcD75fz4K9XZB5GRaei9AozFChqYMeAya7Mvtd9wUug7NlI76PopTKK/&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;512&quot; data-original-width=&quot;448&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVC2_vGJPLeNwrGk70ebocbZI8Lp13rzgYWR4x6yLGbyKzME0huxl64q7Bj3fdx-oBFRZU3RmkQCQnftYuJjrDYtcD75fz4K9XZB5GRaei9AozFChqYMeAya7Mvtd9wUug7NlI76PopTKK/s320/output_a_z.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/8200915548820746645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/print-to-z-in-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/8200915548820746645'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/8200915548820746645'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/print-to-z-in-javascript.html' title='Print A to Z in Javascript'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicxi1-57YUBzJnXvbKkuc8SzJirWd1nTBR6ArwzF8c1UK6__LFe8tgQTkWGdJESr5Rq1JbVb2cH_KKoqPDptTwF4koPH1zPHpTxiA6p8ZSY6azRZIlW3nVrjePGzxXzRBQWIOhx4R74u6B/s72-w400-h225-c/print_a_to_z_javascript.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-2135363422716951730</id><published>2020-05-22T10:45:00.007+05:30</published><updated>2020-07-08T11:55:30.434+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="How-to-convert-int-to-char-in-C"/><title type='text'>How to convert int to char in C?</title><content type='html'>&lt;src src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCqr5pHGRIFC2zCcVE7hQTnb0q96_EKDVJW9ydKXt4GFCvORiV1S8DGN8jT0CtoDVKZ40LSgM1CDNdLsVYdKs0_UO6m7IuiLZv4FQgWGXDqc2WLn9P8WkqXMNSVPFgUPWE2lVy52fyj3Qz/s255/int-to-char-c.webp&quot; style=&quot;display:none;&quot; /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 style=&quot;text-align: left;&quot;&gt;
How to convert int to char in C?&lt;/h1&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCqr5pHGRIFC2zCcVE7hQTnb0q96_EKDVJW9ydKXt4GFCvORiV1S8DGN8jT0CtoDVKZ40LSgM1CDNdLsVYdKs0_UO6m7IuiLZv4FQgWGXDqc2WLn9P8WkqXMNSVPFgUPWE2lVy52fyj3Qz/s1600/int-to-char-c.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;How to convert int to char in C&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCqr5pHGRIFC2zCcVE7hQTnb0q96_EKDVJW9ydKXt4GFCvORiV1S8DGN8jT0CtoDVKZ40LSgM1CDNdLsVYdKs0_UO6m7IuiLZv4FQgWGXDqc2WLn9P8WkqXMNSVPFgUPWE2lVy52fyj3Qz/s400/int-to-char-c.webp&quot; title=&quot;How to convert int to char in C&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi, this article will talk about&amp;nbsp;&lt;b&gt;How to convert int to char in C?&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;One simple way for converting &lt;b&gt;int to char in C&lt;/b&gt; is to add the integer to character zero(&#39;0&#39;). The idea behind this is that &#39;0&#39; will be converted to its ASCII, which is 48.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;So internally it works something like:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;char ch = (char)(1 + 48);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;char ch = (char)49;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;char ch = &#39;1&#39;;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;b&gt;Also Check : &lt;/b&gt;&lt;a href=&quot;https://www.programmingdomain.com/2020/05/how-to-get-ascii-value-of-char-in-c.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;How to get Ascii value of char in C?&lt;/b&gt;&lt;/a&gt;&lt;/i&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Checkout the below code :&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;/h4&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; #include &amp;lt;stdio.h&amp;gt;  
 int main()  
 {  
   int i = 1;  
   char ch = i + &#39;0&#39;;  
   printf(&quot;Integer - %d is converted to Character - %c \n&quot;,i,ch);  
   return 0;  
 }  
&lt;/code&gt;&lt;/pre&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Output :&lt;/h4&gt;
&lt;pre style=&quot;margin: 5px;&quot;&gt;&lt;pre&gt;Integer - 1 is converted to Character 1 &lt;/pre&gt;
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/2135363422716951730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/how-to-convert-int-to-char-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/2135363422716951730'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/2135363422716951730'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/how-to-convert-int-to-char-in-c.html' title='How to convert int to char in C?'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCqr5pHGRIFC2zCcVE7hQTnb0q96_EKDVJW9ydKXt4GFCvORiV1S8DGN8jT0CtoDVKZ40LSgM1CDNdLsVYdKs0_UO6m7IuiLZv4FQgWGXDqc2WLn9P8WkqXMNSVPFgUPWE2lVy52fyj3Qz/s72-c/int-to-char-c.webp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-673956286770434857</id><published>2020-05-22T10:06:00.003+05:30</published><updated>2020-07-08T11:55:51.659+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="How-to-get-Ascii-value-of-char-in-c"/><title type='text'>How to get Ascii value of char in C?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 style=&quot;text-align: left;&quot;&gt;
How to get Ascii value of char in C?&lt;/h1&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHjw02Embdk0HUg_CqDy6Dsrn_T1zHiPvznPxG337vm0m2bUOenSMPdwkCOynvUd40sTSsnXrJbNJkstltkpPowAiJ2FVEBXya77Vl53pZP5FlMtJ1ZrEll7vaC5XHWpfm01U2wGCRZj_h/s1600/char-to-ascii-c.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;How to get Ascii value of char in C&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHjw02Embdk0HUg_CqDy6Dsrn_T1zHiPvznPxG337vm0m2bUOenSMPdwkCOynvUd40sTSsnXrJbNJkstltkpPowAiJ2FVEBXya77Vl53pZP5FlMtJ1ZrEll7vaC5XHWpfm01U2wGCRZj_h/s400/char-to-ascii-c.webp&quot; title=&quot;How to get Ascii value of char in C&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi, without wasting your time I will tell you &lt;b&gt;How to get Ascii value of char in C.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;I assume you know when we assign lower sized data type to a higher sized data type it will automatically convert it to higher sized data type.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;So, when we assign &lt;b&gt;char to int&lt;/b&gt;. It will &lt;b&gt;convert char to its ASCII&lt;/b&gt;, which is an int. Hence we get &lt;b&gt;ASCII&lt;/b&gt; value of &lt;b&gt;char&lt;/b&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h4&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Checkout the below code :&lt;/h4&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; #include &amp;lt;stdio.h&amp;gt;  
 int main()  
 {  
   char ch = &#39;A&#39;;  
   int i = ch;  
   printf(&quot;Ascii value of %c is %d \n&quot;,ch,i);  
   return 0;  
 }  
&lt;/code&gt;&lt;/pre&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;Internally,&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;int i = ch;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Will be converted to :&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;int i = (int)ch&lt;/b&gt;&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Output :&lt;/b&gt;&lt;/h4&gt;
&lt;pre style=&quot;margin: 5px;&quot;&gt;&lt;pre&gt;Ascii value of A is 65&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/673956286770434857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/how-to-get-ascii-value-of-char-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/673956286770434857'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/673956286770434857'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/how-to-get-ascii-value-of-char-in-c.html' title='How to get Ascii value of char in C?'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHjw02Embdk0HUg_CqDy6Dsrn_T1zHiPvznPxG337vm0m2bUOenSMPdwkCOynvUd40sTSsnXrJbNJkstltkpPowAiJ2FVEBXya77Vl53pZP5FlMtJ1ZrEll7vaC5XHWpfm01U2wGCRZj_h/s72-c/char-to-ascii-c.webp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-7618252579077676509</id><published>2020-05-21T19:36:00.010+05:30</published><updated>2020-07-08T11:56:10.147+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Uncheck-Other-Checkboxes-Javascript"/><title type='text'>Uncheck other Checkboxes on selection of one Checkbox in Javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;Javascript Disable Checkbox when another Checkbox is checked&amp;nbsp;&lt;/h1&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-lwiIGNX72jkQ7uQsrlUELE0Dnn6Ptm9gID2FpQgi6w_deKI2MfeXXXb-JFN6oVtaUe65moRmqLKUa913_f9Z1JeQ3qhADSWm3RAXV_R4nAZ9c3mKnRrdKzuc-WP370uIqD_2jO6FeBru/s1600/checkbox_js.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Uncheck other Checkboxes on selection of one Checkbox in Javascript&quot; border=&quot;0&quot; data-original-height=&quot;337&quot; data-original-width=&quot;600&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-lwiIGNX72jkQ7uQsrlUELE0Dnn6Ptm9gID2FpQgi6w_deKI2MfeXXXb-JFN6oVtaUe65moRmqLKUa913_f9Z1JeQ3qhADSWm3RAXV_R4nAZ9c3mKnRrdKzuc-WP370uIqD_2jO6FeBru/s400/checkbox_js.png&quot; title=&quot;Uncheck other Checkboxes on selection of one Checkbox in Javascript&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Hi All! In this article, we will be seeing how to&amp;nbsp;&lt;b&gt;Disable Checkbox when another Checkbox is checked in Javascript&amp;nbsp;&lt;/b&gt;i.e., how to make checkboxes behave like radio buttons.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Also Check&lt;/b&gt;: &lt;a href=&quot;https://www.programmingdomain.com/2020/05/how-to-add-tooltip-to-textbox-in.html&quot; target=&quot;_blank&quot;&gt;How to add tooltip to textbox in Javascript?&lt;/a&gt;&lt;/h4&gt;
&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The simplest approach is by using vanilla &lt;b&gt;Javascript&lt;/b&gt;. Get all the checkboxes in the form of an array and then looping over each item and checking each item in the array matches with the source checkbox which is clicked and if not, uncheck the checkboxes which are not clicked/selected. &lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;/div&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; &amp;lt;!DOCTYPE html&amp;gt;  
 &amp;lt;html&amp;gt;  
     &amp;lt;head&amp;gt;  
        &amp;lt;script&amp;gt;  
             function check(el){  
                 var cities = document.getElementsByName(&quot;city&quot;);  
                 cities.forEach(function(item){  
                     if(item!=el)  
                         item.checked = false;  
                 });  
             }  
         &amp;lt;/script&amp;gt;  
      &amp;lt;/head&amp;gt;  
      &amp;lt;body&amp;gt;  
          &amp;lt;h1&amp;gt;Radio button like Checkboxes&amp;lt;/h1&amp;gt;  
          &amp;lt;input type=&quot;checkbox&quot; onchange=check(this) id=&quot;city1&quot; name=&quot;city&quot; value=&quot;Hyderabad&quot;&amp;gt;Hyderabad&amp;lt;br&amp;gt;  
          &amp;lt;input type=&quot;checkbox&quot; onchange=check(this) id=&quot;city2&quot; name=&quot;city&quot; value=&quot;Mumbai&quot;&amp;gt;Mumbai&amp;lt;br&amp;gt;  
          &amp;lt;input type=&quot;checkbox&quot; onchange=check(this) id=&quot;city3&quot; name=&quot;city&quot; value=&quot;Delhi&quot;&amp;gt;Delhi  
      &amp;lt;/body&amp;gt;  
 &amp;lt;/html&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Output&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://media.giphy.com/media/L2HjaKCt4Q5eAZ1X62/giphy.gif&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Uncheck other Checkboxes on selection of one Checkbox in Javascript&quot; border=&quot;0&quot; data-original-height=&quot;126&quot; data-original-width=&quot;480&quot; src=&quot;https://media.giphy.com/media/L2HjaKCt4Q5eAZ1X62/giphy.gif&quot; title=&quot;Uncheck other Checkboxes on selection of one Checkbox in Javascript&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/7618252579077676509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/uncheck-other-checkboxes-on-selection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/7618252579077676509'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/7618252579077676509'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/uncheck-other-checkboxes-on-selection.html' title='Uncheck other Checkboxes on selection of one Checkbox in Javascript'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-lwiIGNX72jkQ7uQsrlUELE0Dnn6Ptm9gID2FpQgi6w_deKI2MfeXXXb-JFN6oVtaUe65moRmqLKUa913_f9Z1JeQ3qhADSWm3RAXV_R4nAZ9c3mKnRrdKzuc-WP370uIqD_2jO6FeBru/s72-c/checkbox_js.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-2577908855197788730</id><published>2020-05-20T08:34:00.012+05:30</published><updated>2020-07-08T11:54:46.998+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="page-object-model"/><category scheme="http://www.blogger.com/atom/ns#" term="SeleniumInterviewQuestions"/><category scheme="http://www.blogger.com/atom/ns#" term="SeleniumPOM"/><title type='text'>Page Object Model in Selenium</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 style=&quot;text-align: left;&quot;&gt;
Page Object Model in Selenium&lt;/h1&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4w1N3MZmt0urtALOUonhyphenhyphenrVKKFGtKBFAY4V1_v9FUa4ydKtyA3hkG6rRpbsj_x3fv4PJSkHYU3V2PsiI-wQPs0tmSyOnOZWPj9Jy2Ziwhx9LkSXAeWmcqNelVVTMxfWCp7qNw8_ZJJCB8/s1600/page-object-model.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Page-Object-Model-in-Selenium&quot; border=&quot;0&quot; data-original-height=&quot;337&quot; data-original-width=&quot;600&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4w1N3MZmt0urtALOUonhyphenhyphenrVKKFGtKBFAY4V1_v9FUa4ydKtyA3hkG6rRpbsj_x3fv4PJSkHYU3V2PsiI-wQPs0tmSyOnOZWPj9Jy2Ziwhx9LkSXAeWmcqNelVVTMxfWCp7qNw8_ZJJCB8/w400-h223/page-object-model.webp&quot; title=&quot;Page-Object-Model-in-Selenium&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi All, in this article, we&#39;ll be understanding&lt;b&gt; Page Object Model in Selenium&lt;/b&gt;, famously known as &lt;b&gt;POM&lt;/b&gt;. This is one of the most famous questions asked in &lt;b&gt;automation testing &lt;/b&gt;interviews, mostly for 3+ years experienced candidates, who are expected to have sound knowledge on the &lt;b&gt;Selenium framework&lt;/b&gt; as well.&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;font size=&quot;4&quot;&gt;Also, try:&amp;nbsp;&lt;a href=&quot;https://www.programmingdomain.com/p/selenium-quiz-with-answers.html&quot;&gt;Selenium Quiz with Answers&lt;/a&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;What is Page Object Model in Selenium?&lt;/h2&gt;&lt;br /&gt;
&lt;b&gt;Page Object Model&lt;/b&gt; is a design pattern in &lt;b&gt;Selenium&lt;/b&gt; in which we create &lt;b&gt;Classes&lt;/b&gt; for &lt;b&gt;Pages&lt;/b&gt; and &lt;b&gt;Member Variables&lt;/b&gt; for &lt;b&gt;Web Elements&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
So for every page on the website, we create a Class which is also called&lt;b&gt; Object Repository&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;To summarize,&lt;/b&gt;&lt;br /&gt;
Class -&amp;gt; Page&lt;br /&gt;
Member Variable -&amp;gt; Web Element&lt;br /&gt;
Methods -&amp;gt; perform actions on Web Elements.&lt;br /&gt;
&lt;br /&gt;
Also, the &lt;b&gt;Page Object Model&lt;/b&gt; classes are defined independently of the test scripts which make them &lt;b&gt;reusable&lt;/b&gt; and &lt;b&gt;reduces code duplicacy&lt;/b&gt;. &lt;br /&gt;
&lt;br /&gt;
Suppose we were to test Login Page of a website named&lt;b&gt; FB&lt;/b&gt; then we would define the pages and test scripts in the following way: &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Consider the following folder structure :&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;src -&amp;gt; pages -&amp;gt; FBLoginPage.java //POM Class&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;src -&amp;gt; tests -&amp;gt; FBLoginTest.java //Test Class&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In the below code, &lt;br /&gt;
&lt;b&gt;FBLoginPage.java&lt;/b&gt; defines the Login page, its web elements, and operations that can be performed on the web elements.&lt;br /&gt;
&lt;br /&gt;
And &lt;b&gt;FBLoginTest.java&lt;/b&gt; defines the test script that will be executed for testing the login page.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;FBLoginPage.java&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
class FBLoginPage{  
      By email = By.id(&quot;email&quot;);  
      By password = By.id(&quot;password&quot;);  
      By loginBtn = By.id(&quot;btn-login&quot;);  
      Webdriver driver;  
      public FBLoginPage(WebDriver driver){  
           this.driver = driver;  
      }  
      public WebElement getEmail(){  
           return driver.find(email);  
      }  
      public WebElement getPassword(){  
           return driver.find(password);  
      }   
      public WebElement getLoginBtn(){  
           return driver.find(loginBtn);  
      }  
      public void setEmail(String email){  
           getEmail().sendKeys(email);  
      }  
      public void setPassword(String passwprd){  
           getPassword().sendKeys(password);  
      }  
      public void clickLoginButton(){  
           getLoginBtn().click();  
      }  
 }  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;FBLoginTest.java&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
import org.openqa.selenium.WebDriver;
import org.testng.annotations.*;
class FBLoginTest{  
      WebDriver driver;  
      @BeforeClass  
      public void setup(){  
           System.setProperty(&quot;webdriver.chrome.driver&quot;,&quot;c://drivers/chrome.exe&quot;);  
           driver = new ChromeDriver();            
      }  
      @Test  
      public void runLoginTest(){  
           FBLoginPage loginPage = new FBLoginPage(driver);  
           loginPage.setEmail(&quot;&quot;);  
           loginPage.setPassword(&quot;&quot;);  
           loginPage.clickLoginButton();  
      }  
 }  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Page Factory&lt;/b&gt;&lt;/h2&gt;Page Factory is an inbuilt mechanism of the &lt;b&gt;Selenium Webdriver&lt;/b&gt; which is used to define classes in &lt;b&gt;Page Object Model&lt;/b&gt;. It uses &lt;b&gt;&lt;i&gt;@FindBy&lt;/i&gt; annotation&lt;/b&gt; to find Web Elements inside the web page. You can replace this with the traditional approach of defining &lt;b&gt;Page Object Model &lt;/b&gt;classes.&lt;br /&gt;
&lt;br /&gt;
Consider the following code which can be &lt;b&gt;replaced&lt;/b&gt; with the above &lt;b&gt;FBLoginPage.java&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

class FBLoginPage{  
      @FindBy(id=&quot;email&quot;)  //finds web element
      WebElement email;  
      @FindBy(id=&quot;password&quot;)  
      WebElement password;  
      @FindBy(id=&quot;btn-login&quot;)  
      WebElement loginBtn;       
      Webdriver driver;  
      public FBLoginPage(WebDriver driver){  
           this.driver = driver; 
           PageFactory.initElements(driver,this); //initializing web elements 
      }  
      public WebElement getEmail(){  
           return email;  
      }  
      public WebElement getPassword(){  
           return password;  
      }   
      public WebElement getLoginBtn(){  
           return loginBtn;  
      }  
      public void setEmail(String email){  
           this.getEmail().sendKeys(email);  
      }  
      public void setPassword(String passwprd){  
           this.getPassword().sendKeys(password);  
      }  
      public void clickLoginButton(){  
           this.getLoginBtn().click();  
      }  
 }  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/2577908855197788730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/page-object-model-in-selenium.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/2577908855197788730'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/2577908855197788730'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/page-object-model-in-selenium.html' title='Page Object Model in Selenium'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4w1N3MZmt0urtALOUonhyphenhyphenrVKKFGtKBFAY4V1_v9FUa4ydKtyA3hkG6rRpbsj_x3fv4PJSkHYU3V2PsiI-wQPs0tmSyOnOZWPj9Jy2Ziwhx9LkSXAeWmcqNelVVTMxfWCp7qNw8_ZJJCB8/s72-w400-h223-c/page-object-model.webp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-3480997669608620375</id><published>2020-05-16T07:46:00.006+05:30</published><updated>2020-07-08T11:56:28.896+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SeleniumInterviewQuestions"/><category scheme="http://www.blogger.com/atom/ns#" term="type-of-waits-in-selenium"/><category scheme="http://www.blogger.com/atom/ns#" term="waitsinselenium"/><title type='text'>Waits in Selenium</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Waits in Selenium&lt;/b&gt;&lt;/h1&gt;
&lt;h1 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU7pUb-EZf7EEqbfYO_QVB3UAm6QY6F3D0PTw0JAYIcsMqcCtqBrL8LcLcnRFR8a8OJ5THzChFuOaa63sycKpGZJ2_zvoDjjScI2bxmz985Nf9yGcHK9oaI93UU97bZH3iXOmBiJ5ifDx7/s1600/Waits-in-selenium.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Waits in Selenium&quot; border=&quot;0&quot; data-original-height=&quot;337&quot; data-original-width=&quot;600&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU7pUb-EZf7EEqbfYO_QVB3UAm6QY6F3D0PTw0JAYIcsMqcCtqBrL8LcLcnRFR8a8OJ5THzChFuOaa63sycKpGZJ2_zvoDjjScI2bxmz985Nf9yGcHK9oaI93UU97bZH3iXOmBiJ5ifDx7/s400/Waits-in-selenium.webp&quot; title=&quot;Waits in Selenium&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/h1&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
Hi All! in this article will walk you through to &lt;b&gt;Waits in Selenium&lt;/b&gt;, different &lt;b&gt;types of waits in Selenium Webdriver,&lt;/b&gt; and how to implement them.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Waits in Selenium&lt;/b&gt; are used to handle sync issues on a webpage. Whenever you open a webpage, the elements of the webpage doesn&#39;t load immediately, they take some time to load due to Ajax call. And while running&amp;nbsp;&lt;b&gt;Selenium &lt;/b&gt;scripts you have to keep that in mind and pause your code until the element which you are looking for is loaded.&lt;br /&gt;
&lt;br /&gt;
So the amount of time in which you are pausing your code or waiting for the element to appear is &lt;b&gt;Waits in Selenium&lt;/b&gt;. &lt;b&gt;Waits&lt;/b&gt; are the most commonly asked &lt;b&gt;Selenium Interview Questions&lt;/b&gt;&amp;nbsp;if you are preparing for one.&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;font size=&quot;4&quot;&gt;Also, try:&amp;nbsp;&lt;a href=&quot;https://www.programmingdomain.com/p/selenium-quiz-with-answers.html&quot;&gt;Selenium Quiz with Answers&lt;/a&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;
Types of Waits in Selenium&lt;/h2&gt;&lt;b&gt;
Waits in Selenium&lt;/b&gt; is mainly of 2 types.&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Implicit Wait&lt;/li&gt;
&lt;li&gt;Explicit Wait &lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;1) Implicit Wait :&lt;/b&gt;&lt;/h4&gt;&lt;b&gt;
Implicit wait&lt;/b&gt; is applied to all the elements within a webpage(in other words to all the elements of current &lt;b&gt;Webdriver &lt;/b&gt;instance). It tells the &lt;b&gt;Webdriver &lt;/b&gt;to poll the DOM for a certain amount of time if the element is not available immediately. Below code can be used to define &lt;b&gt;implicit wait&lt;/b&gt; :&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; driver.manage().timeouts().implicitlyWait(5,TimeUnit.SECONDS);  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
The above code while finding an element waits for 5 seconds before throwing &lt;b&gt;NoSuchElementException&lt;/b&gt; in case the element is not found.&lt;br /&gt;
&lt;br /&gt;
The default value of &lt;b&gt;implicit wait&lt;/b&gt; is 0, meaning disabled.&lt;br /&gt;
&lt;br /&gt;
One thing to remember is 5 seconds is the maximum wait time. The &lt;b&gt;webdriver &lt;/b&gt;will not wait for the entire 5 seconds, if the element is available at the 3rd second it won&#39;t check for it further. It will give results in 3 seconds saving your 2 seconds.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;2)&lt;/b&gt; &lt;b&gt;Explicit Wait :&lt;/b&gt;&lt;/h4&gt;&lt;b&gt;
Explicit wait&lt;/b&gt; is applied to a specific web element until some expected condition is met. This means it keeps on waiting until the expected condition becomes true.&lt;br /&gt;
&lt;br /&gt;
Explicit wait in selenium is of &lt;b&gt;two&lt;/b&gt; types &lt;b&gt;WebDriver Wait&lt;/b&gt; and &lt;b&gt;Fluent Wait&lt;/b&gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;a)&lt;/b&gt; &lt;b&gt;Webdriver Wait :&lt;/b&gt;&lt;/h4&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; WebDriver driver = new ChromeDriver();  
 WebDriverWait wait = new WebDriverWait(driver,10); //10 Seconds  
 wait.until(ExpectedConditions.elementToBeClickable(By locator));  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Commonly used Expected Conditions&lt;/b&gt;&lt;/h4&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;elementToBeClickable(WebElement)&lt;/li&gt;
&lt;li&gt;visibilityOf(WebElement)&lt;/li&gt;
&lt;li&gt;visibilityOfElementLocated(By locator)&amp;nbsp; &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;b) Fluent Wait :&lt;/b&gt;&lt;/h4&gt;&lt;b&gt;
Fluent wait&lt;/b&gt; is a type of &lt;b&gt;explicit wait&lt;/b&gt; and unlike &lt;b&gt;Webdriver wait,&lt;/b&gt; we can have polling time which continuously monitors for the availability of the web element. The ExpectedConditions function is also to be provided by the user.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; WebDriver driver = new ChromeDriver();  
 Wait wait = new FluentWait&amp;lt;WebDriver&amp;gt;(driver)  
              .withTimeout(Duration.ofSeconds(10))  
              .pollingEvery(Duration.ofSeconds(2)) //checks availability every 2 secs 
              .ignoring(NoSuchElementException.class);  
 
WebElement element = wait.until(  
     new Function&amp;lt;WebDriver, WebElement&amp;gt;(){  
        public WebElement apply(WebDriver driver){  
            if(driver.find(By.id(&quot;new&quot;)).isDisplayed()){  
                return driver.find(By.id(&quot;new&quot;));  
            }  
         }  
     }  
 )  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;I will be posting more advanced
questions in the upcoming posts. Stay Tuned. Thanks.&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;Do send your comment if any
doubts!&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/3480997669608620375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/waits-in-selenium.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/3480997669608620375'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/3480997669608620375'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/waits-in-selenium.html' title='Waits in Selenium'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU7pUb-EZf7EEqbfYO_QVB3UAm6QY6F3D0PTw0JAYIcsMqcCtqBrL8LcLcnRFR8a8OJ5THzChFuOaa63sycKpGZJ2_zvoDjjScI2bxmz985Nf9yGcHK9oaI93UU97bZH3iXOmBiJ5ifDx7/s72-c/Waits-in-selenium.webp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-884989640920995344</id><published>2020-05-14T09:20:00.002+05:30</published><updated>2020-07-08T11:56:52.525+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>How to add tooltip to textbox in Javascript?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 style=&quot;text-align: left;&quot;&gt;
How to add tooltip to textbox in Javascript?&lt;/h1&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; height=&quot;295&quot; loading=&quot;lazy&quot; src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAe4AAADkCAYAAABe+8eEAAAWQElEQVR4nO3dLZDqyhaG4bhIJDISM1VIJBKZcUgkklF75JG4QSKRiBFIJJLtkEjMVCEjkesICCTdHdL8bMga3qeq6959GJKQdPrLT3cS/Pfff0KhUCgUCkVHCZ69ABQKhUKhUPwLwU2hUCgUiqKSC24AAFBdBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIpUNriX/boE9b4s7zbFtQyiQILAUaKBrP/hdFbDltSDQIKgLq3h6m6/CKbibRMN/LewbSXDVn0/rXpL2IR6rQeRe9+9uV3AzZKZdKNQgiCQMOrKLHn2AlVXRYN7JnEYSBCEEs/uPOntTOL6HXZQ3+ks+4fQTktd+vc7GoFlJ5txW8I7BveyX89v57seUOIZdpu59JwHeaG0RyshMx4tkXHb2BbtMduhQCWDOxm3/+nGm3buc2TtNZ1px2ocOtM7/IinW8sg6kg1f8pUOhcGdzLtSLPgb6ztHFTkdydT6TSrfVZ4br0+3aRtB3d9IFxQeQbH1bIHXfGodB0tUMHg3siwkd2ADRlu7juHhwb3Lz3jXn9G1Qkwy4XBneyv8BT9TTXPuBOZxWG1L+eWrNencxxUV3p9/mpPOuOueh0tUL3gtoIukPqdk+6hwS2/8B73aiBRlc48LZcEdyLTTljyN9W7x51MO/vbAZUNGp/1+mQEd7U8/B63gjpaoHLBPYtDe2cKY7nnre5HB/evsp1IJ6zYJWOLb3DvZJnprKRl590t0wOnqtY5JeuV4H5hSupogWoFdzKWttVZZF/a4/sdfhHcV9qMpR1mf7Pm4E5k0YtK/qZ6kkXvFNqVrHOK1ivB/aIU1dEClQruzbAhQWMoi2HD3qEaQ9lcMrHtUkbdptSPQRNKI57IRi4M3KunY4dHWk6d04qGL0UyWIvIdi7DTuPUQzpsSDxZy+7c796tZTqIpRk5rlycXZaS1TnvS6NkWnbl38py1JVmVMv08g6l1ujIYOrTc/fa75cE924to3atZN10ZOpq2M0DlqK/iQayThYyaEXGsscyWl5zELqT9agttYu3Z7oOM/UhbEhnOJdt7u/ODHM8rD+7k56xbn3X6xW//p+4IriT1VQGcVOiWnb/CiVqdmW0zK9RWQ/yB1nn5uX6W8fOedH8c7YyH7QkyrZjnaHMtyLJuFUcXLuNzIdme7LfB4dzc35FdSjd5luZDzvSOCxD2PyUlZwZopdZP4V/05mKbCYSN/JtRNTqy2zj+j3K6miBCgX3Uvr1w5m188zbv1NXMutm7pNHMljuRGQn60ksUWMgA7MTRMHOevt0Eln27QqX3x8TmfeMzk9BJL1ht3Cnbxb01tstB7lwjXr7xjl3abW0obdtR62Sim404CIi24nEtTQo2jJa7cNqtx6dztprbRm7f8qN3z8X3Avp1cp/y3HnTZbStxqj/I6920ztoYH1tnQKgzCU5oU3yhe9ssbGsT23M+mmyxUNZF99l6fGNerJIncMkchqZA+ly+97pzodxRNZJelh5IXrtQouCu6NjA8NftSby2YnIruNTDr5A+TGZ3677jbZW0unErYn9oHnLq1rriFp181/b3Xc5mFnsj9gS1Yy7Z1OkJzBvRpKq5b/3nbSydWPeneWX87dRsZt86ShI9PdUgYNez00h9vD18yrefa2SFaf0jS3V6vjXL9pve3mbpQrrKMFKhPcybQjYeZetuted+gzqHv9mQsps2PbZtj021nvNh07NK2wdJ611aU73chOtjIxd4SwK3NzPpthvlIbf5Nr+MOOTK846bOPegsqeDLN7UwN40AjN9zPtSy3ft/rUrl/Bzaf3+08G80ccGznxiXuIJSutRHLeV8tyq1D46B3Fp8a35bdc3flOrs5/l0ik3Zd2oVHXJcPxXsa7+BOMu1RKO1JZo1Z+3dThuaJ6LxrHww5e0wnMm7t27nE+O+3zH87OrVV7Un+s3RbW9soV3+y9X0u3VxQhtJd5L9q7y+RRFFN2qO17Ix2Kjvf8rpdcEYf9WS+OZxUWQeeTceoJEV1tEBFgns/BCwXjoue47JgW87f6jaHFNSktzD/ZiG90gen3Gs6cnVwR5/rM5/bO+e8a4S7uYca0/A6CLJ+il9w55fFse6Mg6KwM801VLd+vxrBHcnAOPmxDkYvvf3jmk9B0EyzZ2Lm2ORkLK0zDW8aIPnfE0o8SySZdqRh7wzZJdTTKPoG99Y8KM4cLPrs366hTuntsKzNUBpBy27jbpx/rs6ETRkuszfbNjJsmtvI2P65gzu7bpjzc17WzhyoZPeDZqYhuyq4w7ZMcuvLHE7sausU1dEC1QjuZV/q1njt/aVzswKYZ185ZgV37QTiUUHuNR2RK4Pb2KnLPndVaHvvzX9e68mieE06eQW3dZvD0UBZO07mQOTW7zs/f0Jwu+rCLDam4zg7K+E1H7P+2hUu99tD16m/cXC0byRrUm+UPaBEUaN4bXAHkRyPq72CW5zDXM1AWfTq7m1x4/xdV4OieCLrNL9ncf4BJOaymhNcDaV1aJvT+9RZruBuZRvQ9Gy+kf/uVcHtWNn7Z0xk6615hVJRHS1QieCexaHz0tHG1Unt3MMvrB3RfUZYWkHuNR2R1wtu62lUrnVn7zjHCwS3fr/g80oEt28jf8ZVT+srCe4g+nRebl9YfS8CaXyWNXCKGsUL7nGfnsUQSrO/2LdVyUom3ci6DO7epvaZYO6EIBlL+8zDpm6Zf/ZSudmOxBN7hlbwXVhJXZfKfarAvYK7vL1UVEcLPD+4k7G0i55J7uykVvz8ct9LuWUV5F7TOUzsAcHtuFReFtxXPJXIZ734rbviHefW7/t97vs3/r/pqjPhwLgl4sFnPhe9SCMIig/ijL4GQRB49I+4T6NY1IP90jAomYk9XZ/hYNu5DDuRBGFbxrMLDsayfQsOJb09uBk2HLd87jX/lXw6OoalpdYe527ZWOv+5uBuy8Tje3cLbkefgnxmENw32wwbZ8+inQ9kKQidVw5uq3Oa0Rjnf5N9/9UHwV28TH73nu15Ni+8Vn5VcDs6oPlydcKsP+Ae9/2CO/vUu05+FMKlwb1byyQ+rNuwLZOtXHgVxXH7L4xltptLN/QYNXPT/Lcy6xYf0GUPGqx1f+Hz2707sRruFtzWOjE7ghLcN3Lfxy4v7ktKW6uRydwLyiirIPeajog8LrhFZLc8Dd/YV8al7EcAZZYhbMpgcV0zzqXy4mXyqgu5TmFljbybz3ySsTF8zzUKwdd2ZA/BcfbUPS5hpRpFa19uDk/j113BXXSQs8rvW8d7thfe/rC2TRBIFEXlV8DuNP/tfJCbjivc7KGHl70v4unBbXVs5lL5fc1iCUt7irvuDRU8v9zaYO4hN6UV5F7TEXlocO9tracCBUEgYdSU7mgpl53fmT/FY4e0Lgc7LpNZHZ8ynbRu/b6IVDa4fYYOlfCaj6P+Xvd63ETGrZq0Y8fY7sKz+Go1imfXlyO4nZ3DkvQ1w446eXG/BXNagQRB3TFq5X7zn8Zm59qtzPt2/6HjbRvHejl/lSXv6cFtLj+d0+5p/1AA545iyI3bPW4M1702+wzeHgqw8nh93L2mIw8O7o1M4kjC9GEbd+a3QxpDkVzLuhrke62288NNbvu+SGWD27z39s+GgzmuZNVj90sbkql0e+a44b3VIDo02MXDwxxLWKlG0Tzjzi2LI6Bcj1a2r8Bltv8VHQ6tTrcl9eDW+U877nb2+KKaQzk1ceZY7cN+6LpevlvKZGrE65OD21xfDAe7o/3Af9/7VK6K5Bq/K5JYHUBC6Uz2pzW7zVx6rgH8YVvGm90/mc7jgvsUeOYQ7nuxL/PVpbfYiSRLGbZiGR+HdOU7NbWMxjA3HY8HsFz8fa8d0/EUpdZItrKTzbQrrcwVnauCO70HmZF/Peh1D2CxL2O2ZLTdP72t2zr1FbHr7z68R4vN4ZG5iWzmA2lG7s5mq2FTalHm3qZzeJjru/7r9SGyZ6vGy4qs3tOR+16uvf1DaU+2sr9v7Oh5X3ZdOdfptvxqyK3z39fNU/uV+eS0nxhnpc76E0QST9Inuu1kMx9Iq96wAt1eXvdwWtNVwR31jZMUc8y867ZOxeroFR4e3LtkdepgEYTSGq1kW7ZRd4lMu+5HPtbjiayM768+HcPI0ga8t5BRUccXI1Fvn477kadheyynfHc98jSQqL88NLBb67GGQRBIa7jJP7M8czaXn/4dWZfsssFo7L3Ze3JhU4aH53Mnq+wjS8+8IvPq7+9kM3Zc2o36Yj4i3Gq4XYHkfORpKO1xfv3bHXpi6cUdGcw3dj+DoOjRlB5cAXpYpo6Roqth09H4ZorjkbHZ/bPWnWd+4/5BHdY0osF16/WRjnUpkt5he8h2ln9Mbf3MayRdTz471L/BfOR+J0HDHt+cdRxq59OL/cb5Z+tmdGwvs08ZMx8NurcZlz0bvyF9q7+M40mPQSDNz/PvJnA+8jSIpJ+rXI7gbvWk34llkj6hMPdI1prEBRWucnX0Qo8N7nMP3ffshVtUrLGL86F0sg+eDxvHMYvTTiBhLZJmO5buYCST+Uq228T58o7rp1O27JEM1udf7BB0BiWfn3607xCgsFaTqBnLYFryspIiyUIGrfrpIKHelK5jLOhh7blfEuJ9v/3S75esT0c92Uzi40sP0hcvHNuiwpeM2HXWfbaQyCLzUoUgCKXe7F75kpHcQkvcODWOYaMjw4IOh7v1VAadhtTCbB3Yv2TEPLhz9+SOZLD2qcsXrNdnKHxZRkv6k/IX3qyGreOLhsJ6U+LMS1qSWTfzW+vS7M/K6/ZmKI3A/62Ht8x/2olksNodX1ByfGFSWDu+aKSIs/5ETYkH09MDXI7K9j/3JfPStuu40xZdKt/IxHwRVGfgfslIRuXq6AWePhwM9+HsB1BSarHnuFGUerlXvAIP59k57QUQ3L+Go7NcafF/4xrOI7iBf43gThHcv0mykmHL7z3cRZeOcR2CG/jXCO4Uwf1LnDqS7DvgFNzxlGS7kkmcdoZzvfUM1yC4gX+N4E4R3L9CpkL7PJ4wfUBH8/JxxHC79TGRAMo4gvtfjX2tOIL7l1iPTkN/6vFIFuutcda9P9ueD+N9z/5GX00Pyqrbbab5oUWHKx/9W3uPAzhKVp/243ddz854AQT3L7LbLGQy6EqrUcsN3zgOfYma0u4PZW4OfMf1yoaMeT41CkCx0iFjL3ZriuAGAEARghsAAEUIbgAAFCG4AQBQhOAGAEARghsAAEUIbgAAFCG4AQBQhOAGAEARghsAAEUIbgAAFCG4AQBQhOAGAEARghsAAEUIbgAAFCG4AQBQhOAGAEARghsAAEUIbgAAFCG4AQBQhOAGAEARghsAAEUeHtz1ep1CuUsBgFf0lOAGbkU9AvCqCG6oRD0C8KoIbqhEPQLwqghuqEQ9AvCqCG6oRD0C8KoIbqhEPQLwqghuqEQ9AvCqCG6oRD0C8KoIbqhEPQLwqghuqEQ9AvCqCG6oRD0C8KoIbqhEPQLwqghuqEQ9AvCqCG6oRD0C8KoIbqhEPQLwqghuqEQ9AvCqCG6oRD0C8KoIbqhEPQLwqghuqEQ9AvCqCG6oRD0C8KqeEtwUyj0KALyihwc3AAC4HsENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBPcT/fnzh0KpVAFQfQT3E9FQokqoj4AOBPcT0VCiSqiPgA4E9xPRUKJKqI+ADgT3E9FQokqoj4AOBPcT0VCiSqiPgA4E9xPRUKJKqI+ADgT3Ez2qoQyCQH5+fqz//vPzU/gZXg/BDehAcD9RWUN5r1DNTueeQX3LtH77AYPP73vkOvCZF8EN6EBwPxHBTXAT3AAuRXA/0bmGMgiCY/n4+BCR06XttHx/fx///txnaaPtmqYZ6t/f38e/+fr6unr53t7eRETk7e3tOJ3stM3vmt7e3nK/4e/fv8dp+vzWon9nvb+/W9/9+/fvcX7v7+/Hv3Mtb9H68vl9l27fouU3/9a1DXyWR4TgBrQguJ/o0jPubJiZ96fPfXbujNv8LA0rn/vfruVL//39/Z07ODA/L5v29/f3cVlERD4+Po6/z/e3ls0nu4zf39+5g4yvry9ncBatr79//x5/p8/vc/3Nud91btmzzm0DzriB34HgfqJLgtsMBpHTGeO5z8zplAV39jPzjNRn+bIlDbX0rPTcmbFLesaY/f+X/Nay+fz8/Byn+/HxYZ1lZwMw+7vSs/JL1qWL7/YtWnbzqsi5bUBwA78Hwf1Evy24s0GbdW1wp2e939/fx4C6Z3Cn380G+Pv7ey7A04BMvb29VSK4U19fX8eDiXPbgOAGfg+C+4l8gjsNifTf5y4R+14qN6eZ/cwMyLJL5UXLZ/5d9n9d33X5+fmR9/f33Nlv2W/NXm5ODxjO/Yavry95f3/PXSLP/jsb4uk68Q3ust93yfY95+vrK3d/vWgblC0PwQ3oQHA/UVlD+fHxcbbzUrYhPvdZNgDMaZphk37u0znKnJZ5qTb9PBuK2UvTZZ2lRPZnnebfnPut2cva6TzOhV86rXQarsB8e3s7Xnb2PeP2+X2XbF+Tefk+5doGvstDcAM6ENxPVLWG0vcM75HSS9f496pWHwG4EdxPVLWGsii4zQ5P5r3Ye8zXNf1z92zvNY9HuHXej1r2qtVHAG4E9xNVraGs0hl3Oka5KsvzCqpWHwG4EdxPREOJKqE+AjoQ3E9EQ4kqoT4COhDcT/Tnzx8KpVIFQPUR3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKEJwAwCgCMENAIAiBDcAAIoQ3AAAKGIFN4VCoVAolGoXgptCoVAoFEWF4KZQKBQKRVEhuCkUCoVCUVQIbgqFQqFQFJXg2T3kAACAv/8BozZnfTuo8vsAAAAASUVORK5CYII=&quot; width=&quot;640&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Hi All,&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
In this article, I&#39;ll be talking about &lt;b&gt;adding tooltip in Javascript&lt;/b&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Adding a tooltip to a textbox in Javascript is easy. You just have to set the attribute &lt;b&gt;title&lt;/b&gt; for the HTML input tag.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;setAttribute()&lt;/b&gt; method can be used to set &lt;b&gt;title &lt;/b&gt;for the input.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Also Check&lt;/b&gt;: &lt;a href=&quot;https://www.programmingdomain.com/2020/05/uncheck-other-checkboxes-on-selection.html&quot; target=&quot;_blank&quot;&gt;Disable other Checkboxes on selection of one Checkbox&lt;/a&gt;&lt;/h4&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Example :
&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; &amp;lt;html&amp;gt;  
  &amp;lt;body&amp;gt;  
   &amp;lt;input type=&quot;text&quot; id=&quot;inp&quot;/&amp;gt;  
   &amp;lt;script&amp;gt;  
       var el = document.getElementById(&quot;inp&quot;); //getting input tag by id inp
       el.setAttribute(&quot;title&quot;,&quot;&lt;/code&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;tooltip_text_you_want_to_set&lt;/code&gt;&quot;); //setting attribute title
   &amp;lt;/script&amp;gt;  
  &amp;lt;/body&amp;gt;  
 &amp;lt;/html&amp;gt;&amp;nbsp; &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;But I would suggest adding tooltip directly in the HTML input tag using &lt;i&gt;title&lt;/i&gt; attribute.
&lt;/b&gt;&lt;/h4&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; &amp;lt;input type=&quot;text&quot; id=&quot;inp&quot; title=&quot;tooltip_text_you_want_to_set&quot; /&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/884989640920995344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/how-to-add-tooltip-to-textbox-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/884989640920995344'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/884989640920995344'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/how-to-add-tooltip-to-textbox-in.html' title='How to add tooltip to textbox in Javascript?'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-8429248973207794413</id><published>2020-05-11T09:14:00.007+05:30</published><updated>2020-07-08T11:57:23.974+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SeleniumInterviewQuestions"/><category scheme="http://www.blogger.com/atom/ns#" term="SeleniumInterviewQuestionsFAQs"/><title type='text'>Selenium Interview Questions - FAQs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;br /&gt;
&lt;h1&gt;
&lt;b&gt;Frequently asked Selenium Interview Questions&lt;/b&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 23pt; line-height: 115%;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL4hDSDLP-fzQ263_Z8MYjTPDHGTECVYtbcV3qcGWJm7oZupyhSwXg_ozWNWh1vUiJuODB-m0zb83QIiIUxHmjfsAjj7KRnPhP2gHbPovYMICdc1xMZPqQmRpdE1hxJeW3TVaNHQSOy7Gu/s1600/Selenium-Interview-Questions-FAQs.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Selenium-Interview-Questions-FAQs&quot; border=&quot;0&quot; data-original-height=&quot;382&quot; data-original-width=&quot;680&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL4hDSDLP-fzQ263_Z8MYjTPDHGTECVYtbcV3qcGWJm7oZupyhSwXg_ozWNWh1vUiJuODB-m0zb83QIiIUxHmjfsAjj7KRnPhP2gHbPovYMICdc1xMZPqQmRpdE1hxJeW3TVaNHQSOy7Gu/s400/Selenium-Interview-Questions-FAQs.webp&quot; title=&quot;Selenium-Interview-Questions-FAQs&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif;&quot;&gt;Hi All, Welcome! This article will feature the most commonly asked questions in a Selenium interview. These questions are related to Selenium Webdriver, not the whole suite.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;font size=&quot;4&quot;&gt;Also, try:&amp;nbsp;&lt;a href=&quot;https://www.programmingdomain.com/p/selenium-quiz-with-answers.html&quot;&gt;Selenium Quiz with Answers&lt;/a&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;1) Maximize
a window - Selenium?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 driver.manage().window().maximize();   
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 8.5pt; line-height: 115%;&quot;&gt;Also Check
this :&amp;nbsp;&lt;a href=&quot;https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-interview-questions-xpath.html&quot;&gt;&lt;span style=&quot;color: blue; line-height: 115%;&quot;&gt;SeleniumInterview Questions -&amp;nbsp;XPath&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 19pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;2) Refresh a
page - Selenium?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-align: justify; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;There
are three ways of refreshing a page in the browser :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 //First  
 driver.navigate().refresh();  
 //Second  
 driver.sendKeys(Keys.F5);  
 //Third  
 driver.get(driver.getCurrentURL());  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 8.5pt; line-height: 115%;&quot;&gt;Also, Check
this :&amp;nbsp;&lt;a href=&quot;https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-interview-questions.html&quot;&gt;&lt;span style=&quot;color: blue; line-height: 115%;&quot;&gt;SeleniumInterview Questions - 10 Basic Questions&lt;/span&gt;&lt;/a&gt;&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;3) Navigating
forward and backward - Selenium?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;navigate() function can be used
to navigate between pages.&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 driver.navigate().forward() : //Navigates forward one page  
 driver.navigate().back() : //Navigates backward one page  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;4) Taking
Screenshot of a Web Page?&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 File src =( (TakeScreenShot)driver).getScreenshotAs(OutputType.File);  
 FileHandler.copy(src, new File(“filepath”));  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Note – FileUtils.copy() was used with
previous Selenium versions.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 36pt;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;5) Handling
Alerts – Selenium?&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 driver.switchTo().alert().accept(); //Equivalent to pressing Yes/Ok in alert  
 driver.switchTo().alert().dismiss(); //Equivalent to pressing No in alert  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0cm 54pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;6) Find all
links in a Web Page?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;driver.findElements(By.tagName(“a”)); &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;can be used to find all
the links in a web page. It returns a list of anchor(&amp;lt;a&amp;gt;) tags present on
the web page.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 List&amp;lt;WebElement&amp;gt; links = driver.findElements(By.tagName(“a”));  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0cm 36pt; text-indent: 36pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;7) Difference
between findElement() and findElements()?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;findElement()&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt; - Finds a single
element in a web page and returns NoSuchElementException when element is not
found.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0cm 36pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;findElements()&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt; – Finds a list of
element in a web page and returns empty list when elements are not found.&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;8) Find all
links of a particular section in a web page.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-align: justify; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;If you want to find links
in a particular section of a web page, suppose the footer section with id &lt;i&gt;‘footer’&lt;/i&gt;. &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 WebElement footer = driver.findElement(By.id(“footer”));  
 List&amp;lt;WebElement&amp;gt; links = footer.findElements(By.tagName(“a”));  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;9) Moving to
a frame - Selenium?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-align: justify; text-indent: 0cm;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;driver.switchTo().frame(&amp;lt;frameId/frameName/frameIndex&amp;gt;); - &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;can be used to switch to a particular frame.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-align: justify; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;frame() takes either the frameId, frameName, or
frameIndex as a parameter.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-align: justify; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;And to move focus back to the window
the following code is used:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 driver.switchTo().defaultContent();  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;10) Actions
Class - Selenium?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-align: justify; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Actions class in selenium can be used to perform
user actions on a web page which the user performs manually. This class can be used
to execute compound user actions simultaneously. For example, if you want to
move to an element and then click it or if you want to move to an element then
click it and drag it to another container.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Below code drags and
drops an element : &lt;/span&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 Actions action = new Action(driver);  
 action.clickAndHold(sourceWebElement)  
       .moveToElement(targetWebElement)  
       .release(targetWebElement)  
       .build().perform();  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;I will be posting more advanced
questions in the upcoming posts. Stay Tuned. Thanks.&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;Do send your comment if any
doubts!&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/8429248973207794413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-interview-questions-faqs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/8429248973207794413'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/8429248973207794413'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-interview-questions-faqs.html' title='Selenium Interview Questions - FAQs'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL4hDSDLP-fzQ263_Z8MYjTPDHGTECVYtbcV3qcGWJm7oZupyhSwXg_ozWNWh1vUiJuODB-m0zb83QIiIUxHmjfsAjj7KRnPhP2gHbPovYMICdc1xMZPqQmRpdE1hxJeW3TVaNHQSOy7Gu/s72-c/Selenium-Interview-Questions-FAQs.webp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-5707798237235199657</id><published>2020-05-10T09:01:00.009+05:30</published><updated>2020-05-30T15:41:50.301+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Interview Questions XPath"/><category scheme="http://www.blogger.com/atom/ns#" term="SeleniumInterviewQuestions"/><title type='text'>What is XPath in Selenium?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-GB&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:DontVertAlignCellWithSp/&gt;
   &lt;w:DontBreakConstrainedForcedTables/&gt;
   &lt;w:DontVertAlignInTxbx/&gt;
   &lt;w:Word11KerningPairs/&gt;
   &lt;w:CachedColBalance/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;--&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;

&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;font face=&quot;verdana, sans-serif&quot;&gt;&lt;span style=&quot;font-size: 30.6667px;&quot;&gt;&lt;b&gt;What is XPath in Selenium?&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN7Ct4A88lclT-kG1tetUNSHioCQGDnyKZA1lX7In7H-1gAWYcSRyb4CQUbUMaHmwhzlSxVf0MK5sJdIDM76chdtBLyJy3ciKFX4auwVYY9VGJW9c20SpHpjAY1GSJVc5a2xYmx8XcaLSo/s1600/Selenium-Interview-Questions-XPath.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Selenium-Interview-Questions-XPATH&quot; border=&quot;0&quot; data-original-height=&quot;337&quot; data-original-width=&quot;600&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN7Ct4A88lclT-kG1tetUNSHioCQGDnyKZA1lX7In7H-1gAWYcSRyb4CQUbUMaHmwhzlSxVf0MK5sJdIDM76chdtBLyJy3ciKFX4auwVYY9VGJW9c20SpHpjAY1GSJVc5a2xYmx8XcaLSo/s400/Selenium-Interview-Questions-XPath.webp&quot; title=&quot;Selenium-Interview-Questions-XPATH&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;font size=&quot;4&quot;&gt;
Hi Folks! In this post, we will look at &lt;b&gt;What is XPath in Selenium?&lt;/b&gt; and &lt;b&gt;How to write XPath in Selenium?&lt;/b&gt;&amp;nbsp;This is one of the most frequently asked topics in &lt;b&gt;Selenium Interviews&lt;/b&gt;. I have tried to cover &lt;b&gt;XPath &lt;/b&gt;from the interview point of view. In case you want to know more about it, you can write to me.&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;font size=&quot;4&quot;&gt;Also, try:&amp;nbsp;&lt;a href=&quot;https://www.programmingdomain.com/p/selenium-quiz-with-answers.html&quot;&gt;Selenium Quiz with Answers&lt;/a&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;1) What is
XPath in Selenium?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;b&gt;XPath&lt;/b&gt; is a language used for querying XML
documents. It can be used to find web elements inside the webpages. There are
basically two ways by which you can find &lt;b&gt;XPaths&lt;/b&gt; and hence there are two &lt;b&gt;types of XPath in Selenium.&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;1.&lt;span style=&quot;font: 7pt &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Absolute XPath&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;2.&lt;span style=&quot;font: 7pt &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Relative Xpath&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0cm 72pt;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 8.5pt; line-height: 115%;&quot;&gt;&lt;b&gt;Also, Check
this:&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: blue; line-height: 115%;&quot;&gt;&lt;a href=&quot;https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-interview-questions.html?m=1&quot;&gt;Selenium
Interview Questions a&lt;/a&gt;&lt;u&gt;nd Answers&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;2) What is
Absolute XPath in Selenium?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;An &lt;b&gt;Absolute XPath&lt;/b&gt; is the complete path from the root
element to the element you want to travel. It begins with a single slash(/)
followed by the root element of the DOM(Document Object Model).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 36pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Example :&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Suppose you want to travel to a&amp;nbsp;&lt;b&gt;&lt;i&gt;&amp;lt;div&amp;gt;&lt;/i&gt;&lt;/b&gt;
tag inside the body tag&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;&lt;/span&gt;Then,&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; /html/body/div - would be your Absolute XPath.  
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;  
&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0cm 72pt;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;3) What is
Relative XPath in Selenium?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;A &lt;b&gt;Relative XPath&lt;/b&gt; is a path that finds the element
directly. It begins with a double slash(//) followed by the element you want to
find.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0cm 36pt; text-indent: 36pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Example&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt; :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 //input[type=&quot;submit&quot;] - finds a submit button directly.  
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;4) Locating
element partially in Selenium - XPath?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;contains() can be used to locate
elements partially.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Suppose you have the following
tag in HTML :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; &amp;lt;input type=&quot;text&quot; id=&quot;username&quot; /&amp;gt;  
&lt;/code&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Then,
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; //*[contains(@id,&quot;user&quot;)] - can be used to locate element partially.&lt;/code&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;
&lt;/code&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;5) Locating
element using text&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt; in Selenium&lt;/span&gt;&lt;/b&gt; - XPath?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;text() can be used to locate
elements using the value of a tag.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Suppose you have the following
tag in HTML :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; &amp;lt;p id=&quot;user&quot;&amp;gt;Dave&amp;lt;/p&amp;gt;  
&lt;/code&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Then,
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; //p[text()=&#39;Dave&#39;] - can be used to locate element using text.  
&lt;/code&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;6) Moving to
parent element&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt; in Selenium&lt;/span&gt;&lt;/b&gt; - XPath?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Consider the following HTML code
:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 &amp;lt;div&amp;gt;  
  &amp;lt;p id=&quot;child&quot;&amp;gt;Hello World!&amp;lt;/p&amp;gt;  
 &amp;lt;/div&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;&lt;/span&gt;Then,
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
//p[@id=&#39;child&#39;]/parent::div - can be used to move to parent(div).  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Alternatively :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 36pt;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
//p[@id=&#39;child&#39;]/.. - can also be used.  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0cm 36pt; text-indent: 36pt;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;7) Moving to
nth-child&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt; in Selenium&lt;/span&gt;&lt;/b&gt; - XPath?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Consider the following HTML code
:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 &amp;lt;ul&amp;gt;  
  &amp;lt;li&amp;gt;Item1&amp;lt;/li&amp;gt;  
  &amp;lt;li&amp;gt;Item2&amp;lt;/li&amp;gt;  
 &amp;lt;/ul&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Then, &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
//ul/li[2] - can be used to move to second child which is Item2.  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Alternatively :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
//ul/li[position()=2]/.. - can also be used.  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0cm 36pt; text-indent: 36pt;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;8) Moving to
Sibling&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt; in Selenium&lt;/span&gt;&lt;/b&gt; - XPath?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;You can use this scenario when only one sibling is
static or only one sibling can be identified uniquely.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Consider the following HTML code
:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;
 &amp;lt;ul&amp;gt;  
  &amp;lt;li&amp;gt;Item1&amp;lt;/li&amp;gt;  
  &amp;lt;li id=&quot;item&quot;&amp;gt;Item2&amp;lt;/li&amp;gt;  
  &amp;lt;li&amp;gt;Item3&amp;lt;/li&amp;gt;  
 &amp;lt;/ul&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Then,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
//ul/li[@id=&#39;item&#39;]/following-sibling::li[1] - selects the first &amp;lt;li&amp;gt; which is Item1.  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;--------------------------------------------------------------------------------------------------------------
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;I will be coming up with more
questions in the upcoming posts. Stay Tuned. Thanks.&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;Do send your comment if any
doubts!&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 mso-para-margin-top:0cm;
 mso-para-margin-right:0cm;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0cm;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-fareast-language:EN-US;}
&lt;/style&gt;
&lt;![endif]--&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/5707798237235199657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-interview-questions-xpath.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/5707798237235199657'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/5707798237235199657'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-interview-questions-xpath.html' title='What is XPath in Selenium?'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN7Ct4A88lclT-kG1tetUNSHioCQGDnyKZA1lX7In7H-1gAWYcSRyb4CQUbUMaHmwhzlSxVf0MK5sJdIDM76chdtBLyJy3ciKFX4auwVYY9VGJW9c20SpHpjAY1GSJVc5a2xYmx8XcaLSo/s72-c/Selenium-Interview-Questions-XPath.webp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-843246525208230414.post-7841656133877664378</id><published>2020-05-09T15:18:00.011+05:30</published><updated>2020-07-08T11:57:42.337+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SeleniumInterviewQuestions"/><category scheme="http://www.blogger.com/atom/ns#" term="SeleniumInterviewQuestionsandAnswers"/><title type='text'>Selenium Interview Questions and Answers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-GB&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:DontVertAlignCellWithSp/&gt;
   &lt;w:DontBreakConstrainedForcedTables/&gt;
   &lt;w:DontVertAlignInTxbx/&gt;
   &lt;w:Word11KerningPairs/&gt;
   &lt;w:CachedColBalance/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;--&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;

&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 23pt; line-height: 115%;&quot;&gt;Selenium Interview Questions and Answers&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIXXuuwRHhVs_Kv1DZYZtydHK9731lka_5ZEWsfc88J0DBPFHiZyDBfITmb5cbA_u5apeXsLWezboN_YdOM3d7jPzqq8zzTTUV3Av4250m1pWYAbXwSqy98GljAIcYXER0bgjk3IQeaM02/s1600/Selenium-Interview-Questions-10-Basic-Questions.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Selenium-Interview-Questions-10-Basic-Questions&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIXXuuwRHhVs_Kv1DZYZtydHK9731lka_5ZEWsfc88J0DBPFHiZyDBfITmb5cbA_u5apeXsLWezboN_YdOM3d7jPzqq8zzTTUV3Av4250m1pWYAbXwSqy98GljAIcYXER0bgjk3IQeaM02/s400/Selenium-Interview-Questions-10-Basic-Questions.webp&quot; title=&quot;Selenium-Interview-Questions-10-Basic-Questions&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif;&quot;&gt;Hello Friends! this post is related to the basic &lt;b&gt;Selenium Interview Questions&lt;/b&gt; that one should not forget to look before attending &lt;b&gt;automation testing interview questions&lt;/b&gt; for &lt;b&gt;Selenium&lt;/b&gt;. This article will list out 10 such basic &lt;b&gt;selenium interview questions and answers&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;i&gt;&lt;b&gt;Disclaimer : This post is related to Java Selenium Interview question and not any outher programming language.&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 23pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;1) What is
Selenium Webdriver?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;b&gt;Selenium Webdriver&lt;/b&gt; is a free and open source set of
APIs(Classes and Methods) used for the automation of browser&#39;s user
interface(UI). This is one of the basic &lt;b&gt;selenium interview question&lt;/b&gt; you will get and most of the people get it wrong by answering &lt;b&gt;Selenium&lt;/b&gt; as a tool. But it is not a tool it is an API(Application Programming Interface).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;font size=&quot;4&quot;&gt;Also, try:&amp;nbsp;&lt;a href=&quot;https://www.programmingdomain.com/p/selenium-quiz-with-answers.html&quot;&gt;Selenium Quiz with Answers&lt;/a&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;2) How do
you create objects of different web browsers in Selenium ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Different web browsers in the market implement the &lt;b&gt;WebDriver&lt;/b&gt; interface in their own way.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;For creating objects of these browsers you have to assign object of the browsers to &lt;b&gt;WebDriver&lt;/b&gt; interface.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;This also helps in achieving &lt;b&gt;Dynamic Polymorphism&lt;/b&gt;(a Java concept) i.e., you can pass the browser name at run time from some configuration files or from &lt;b&gt;Testng&lt;/b&gt; or &lt;b&gt;Jenkins&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Example&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt; :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 WebDriver driver = new ChromeDriver(); //For Chrome Browser  
 WebDriver driver = new FirefoxDriver(); //For Firefox Browser  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;3) Launch
specific browser for running you Selenium Scripts?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;The most important thing for running your scripts in
different browser is setting the system properties with driver executable.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;You can download driver executable from the respective browser&#39;s site.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;
 System.setProperty(&quot;driverName&quot;,&quot;executablePath&quot;); //Syntax  
 System.setProperty(&quot;webdriver.chrome.driver&quot;,&quot;C://drivers/chrome.exe&quot;); //Example   
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;4) Finding a
WebElement in Selenium?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;findElement() is used for finding
a web element in &lt;b&gt;Selenium Webdriver.&lt;/b&gt; This method is present in the &lt;b&gt;WebDriver&lt;/b&gt; interface and takes a locator as an argument.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;&lt;font face=&quot;verdana, sans-serif&quot; size=&quot;4&quot;&gt;Locator locates an Element with the help of By class.&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Suppose you have below textbox in
webpage : &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; &amp;lt;input type=&quot;text&quot; id=&quot;username&quot; /&amp;gt;  
&lt;/code&gt;&lt;/span&gt;&lt;/i&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Below code can be used to find
the above WebElement : &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; 
 driver.findElement(locator); //Syntax  
 driver.findElement(By.id(&quot;username&quot;)); //Example  
 //username is the id of webelement  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;5) Different
ways of locating an element in Selenium?&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;font size=&quot;4&quot;&gt;
Locators are basic building blocks for getting expert in &lt;b&gt;Selenium&lt;/b&gt;. You need to know all the locators listed below to be a good &lt;b&gt;Selenium Automation Tester&lt;/b&gt;.&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;There are 8 ways of locating an element
in Selenium :&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;1.&lt;span style=&quot;font: 7pt &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Id&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;2.&lt;span style=&quot;font: 7pt &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Name&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;3.&lt;span style=&quot;font: 7pt &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Class Name&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;4.&lt;span style=&quot;font: 7pt &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;CSS Selector&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;5.&lt;span style=&quot;font: 7pt &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;XPath&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;6.&lt;span style=&quot;font: 7pt &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Tag Name&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;7.&lt;span style=&quot;font: 7pt &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Link Text&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;span&gt;8.&lt;span style=&quot;font: 7pt &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Partial Link Text &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;font size=&quot;4&quot;&gt;The easiest technique for locating elements is by using Id. But most of the times developers generate IDs dynamically, making it of no use.&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;font size=&quot;4&quot;&gt;Apparently, &lt;b&gt;XPath&lt;/b&gt; is the best technique for locating elements. You can check questions on &lt;b&gt;XPath&lt;/b&gt; below:&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;h4&gt;&lt;i&gt;&lt;b&gt;Also Check this:&lt;/b&gt;&amp;nbsp;&lt;a href=&quot;https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-interview-questions-xpath.html&quot;&gt;Selenium Interview Questions -&amp;nbsp;XPath&lt;/a&gt;&lt;/i&gt;&lt;/h4&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;6)
Difference between close() and quit() in Selenium?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;&lt;font size=&quot;4&quot;&gt;
close and quit are basic &lt;b&gt;WebDriver&lt;/b&gt; commands for working with Windows in &lt;b&gt;Selenium&lt;/b&gt;.&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;close()&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;: closes the currently opened window.&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm; text-indent: 0cm;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;quit()&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;: closes all the opened windows.&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;7) Opening a
URL in Selenium?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Below code can be used for
opening a URL :&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;
 driver.get(&quot;url of page&quot;); //Syntax  
 driver.get(&quot;https://www.google.com&quot;); //Example  
 //OR   
 driver.navigate().to(&quot;url of page&quot;); //Syntax  
 driver.navigate().to(&quot;https://www.google.com&quot;); //Example  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;8)
Difference between driver.get() and driver.navigate().to()?&lt;/span&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;driver.get()&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt; navigates to a specified URL. It refreshes the page and doesn&#39;t allow
moving forward and backward in browser history.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;driver.navigate().to()&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt; navigates to a specified URL. In SPA(Single Page
Applications) it doesn&#39;t refresh the page and allows moving forward and
backward in browser history.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;9) Entering
text in a textbox - Selenium?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;In Selenium Webdriver, sendKeys() can be used for
entering text in a textbox. It is one of the methods of WebDriver interface which the other driver classes implement.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Suppose you have below textbox in
webpage : &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; &amp;lt;input type=&quot;text&quot; id=&quot;username&quot; /&amp;gt;  
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Then, you have to find the input tag and enter your text using sendkeys().&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt;
 driver.findElement(By.id(&quot;username&quot;)).sendKeys(&quot;Dave&quot;); //can be used to enter text.  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;10) How to
Check and Uncheck a Checkbox - Selenium?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;It can be done by just clicking
on the checkbox.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Suppose you have below checkbox
on the webpage : &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; &amp;lt;input type=&quot;checkbox&quot; id=&quot;city&quot; value=&quot;mumbai&quot; /&amp;gt;  
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;Then,&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm; text-indent: 36pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; overflow-wrap: normal;&quot;&gt; driver.findElement(By.id(&quot;city&quot;)).click(); //can be used to check/uncheck a checkbox.  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0cm 36pt;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;I will be posting more advanced
questions in the upcoming posts. Stay Tuned. Thanks.&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: verdana, sans-serif; font-size: 17pt; line-height: 115%;&quot;&gt;Do send your comment if any
doubts!&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: verdana, sans-serif; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 mso-para-margin-top:0cm;
 mso-para-margin-right:0cm;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0cm;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-fareast-language:EN-US;}
&lt;/style&gt;
&lt;![endif]--&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://top-selenium-interview-questions.blogspot.com/feeds/7841656133877664378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/7841656133877664378'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/843246525208230414/posts/default/7841656133877664378'/><link rel='alternate' type='text/html' href='https://top-selenium-interview-questions.blogspot.com/2020/05/selenium-interview-questions.html' title='Selenium Interview Questions and Answers'/><author><name>CP Tiwari</name><uri>http://www.blogger.com/profile/10987110374920574534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFmC-HMkQRe0SemP-TMO45Nrz_px5olZ9fyjiErOQrd6rNB0k8iyST8NJ-94l1YNUkhjrWlTntfxgV0DF3K-71xTuu7a6BvhF3VFTNSdqwCB0XutM8BqEcDf3qqXklg/s220/image.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIXXuuwRHhVs_Kv1DZYZtydHK9731lka_5ZEWsfc88J0DBPFHiZyDBfITmb5cbA_u5apeXsLWezboN_YdOM3d7jPzqq8zzTTUV3Av4250m1pWYAbXwSqy98GljAIcYXER0bgjk3IQeaM02/s72-c/Selenium-Interview-Questions-10-Basic-Questions.webp" height="72" width="72"/><thr:total>0</thr:total></entry></feed>