tag:blogger.com,1999:blog-82812556143625621682024-03-08T17:03:57.874+05:30My Automation LabThis blog is very helpfull for the beginers, those who are very new to selenium learning. This blog not only give knowledge about the topic covered but also boostup the confidance to write selenium script for web application.Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-8281255614362562168.post-89825525405209177892023-06-15T01:56:00.000+05:302023-06-15T01:56:39.768+05:30Handling Dynamic Web Elements: Techniques for dealing with dynamic web elements that change their attributes or locations during runtime.<p>Introduction:</p><p>In web application testing, dynamic web elements that change their attributes or locations during runtime can pose challenges. However, with the right techniques and strategies, we can effectively handle these dynamic elements using Selenium in Java. In this blog post, we will explore various techniques and provide code snippets to handle dynamic web elements successfully.</p><p>Understanding Dynamic Web Elements:</p><p>Dynamic web elements refer to elements on a webpage that change their attributes or locations dynamically. This can occur due to dynamic content loading, AJAX calls, page refreshes, or changes in the DOM structure. Examples of dynamic elements include dropdowns, menus, pop-ups, modals, or elements that load asynchronously.</p><p>Techniques for Handling Dynamic Web Elements:</p><p>1. Implicit and Explicit Waits:</p><p>Both implicit and explicit waits are essential for handling dynamic web elements. Implicit waits allow the driver to wait for a specified amount of time for an element to be present on the page. Explicit waits enable you to wait for specific conditions to be met before proceeding. Here's an example of using explicit wait with ExpectedConditions in Selenium:</p>
<pre><code class="java">
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
WebDriverWait wait = new WebDriverWait(driver, 10);
WebElement element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("[data-testid='dynamic-element']")));</code></pre><p>2. Dynamic XPath or CSS Selectors:</p><p>XPath and CSS selectors are powerful techniques for locating elements. When dealing with dynamic elements, you can utilize dynamic values within XPath or CSS selectors to locate the element. Here's an example using XPath with a dynamic attribute value:</p><pre><code class="java"><br class="Apple-interchange-newline" />
WebElement element = driver.findElement(By.xpath("//input[contains(@class, 'dynamic-input-')]"));</code></pre><p>3. Relational Locators:</p><p>Dynamic elements are often located relative to other stable elements on the page. By identifying the stable parent or sibling elements, you can navigate to the dynamic element using XPath or CSS selectors. Here's an example using XPath with a relational locator:</p><pre><code class="java"><br class="Apple-interchange-newline" />
WebElement parentElement = driver.findElement(By.id("parent-element"));
WebElement dynamicElement = parentElement.findElement(By.xpath(".//span[contains(@class, 'dynamic-span')]"));</code></pre><p>4. Refreshing the DOM:</p><p>In some cases, dynamic elements may not be immediately available in the DOM. You can try refreshing the DOM by reloading the page or waiting for a specific event to trigger the appearance of the dynamic element. Here's an example of refreshing the page to handle dynamic content:</p><pre><code class="java"><br class="Apple-interchange-newline" />
driver.navigate().refresh();
WebElement element = driver.findElement(By.id("dynamic-element"));</code></pre><p>5. JavaScript Execution:</p><p>JavaScript can be used to interact with dynamic elements directly. By executing JavaScript commands using Selenium, you can manipulate the DOM or trigger events on dynamic elements. Here's an example of executing JavaScript code to handle a dynamic element:</p><pre><code class="java"><br class="Apple-interchange-newline" />
JavascriptExecutor js = (JavascriptExecutor) driver;
WebElement element = (WebElement) js.executeScript("return document.getElementById('dynamic-element')");</code></pre><p>Conclusion:</p><p>Handling dynamic web elements is crucial for successful web application testing using Selenium in Java. By applying the techniques discussed above and utilizing the provided code snippets, you can effectively handle dynamic elements that change their attributes or locations during runtime. It is important to adapt these techniques to your specific application and regularly update your automation strategy as the dynamic elements evolve. With these approaches and a proactive approach, you can create robust and reliable automated tests, even in the presence of dynamic web elements.</p>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.com0tag:blogger.com,1999:blog-8281255614362562168.post-73411497507343968262021-03-29T11:48:00.004+05:302021-03-29T14:06:26.961+05:30Different Approaches For Maximizing Browser Window In Selenium Webdriver <div class="separator" style="clear: both; text-align: justify;">
<b style="box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; text-align: left;">Hello learners, </b>
</div>
<div class="separator" style="clear: both; text-align: justify;">
<b style="box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; text-align: left;"><br /></b>
</div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="color: #373b41; font-family: lusitana, serif; font-size: 16px; text-align: left;">Maximizing the browser </span><span style="color: #373b41; font-family: lusitana, serif; font-size: 16px; text-align: left;">window manually is a very simple task. But when we do it through Automation then there are number of ways we can do this. </span><span style="color: #373b41; font-family: lusitana, serif; font-size: 16px; text-align: left;">Generally</span><span style="color: #373b41; font-family: lusitana, serif; font-size: 16px; text-align: left;">, when the questions like <b>what are the different ways we can maximize a window in Selenium? or What are different </b></span><span style="color: #373b41; font-family: lusitana, serif; font-size: 16px; text-align: left;"><b>approaches</b></span><span style="color: #373b41; font-family: lusitana, serif; font-size: 16px; text-align: left;"><b> for maximizing window in Selenium?</b> asked during interviews, we ended up giving answers like by using maximize() method of the driver. But apart
from that below are the different </span><span style="color: #373b41; font-family: lusitana, serif; font-size: 16px; text-align: left;">approaches</span><span style="color: #373b41; font-family: lusitana, serif; font-size: 16px; text-align: left;"> that we can use for m</span><span style="color: #373b41; font-family: lusitana, serif; font-size: 16px; text-align: left;">aximizing browser window in Selenium WebDriver.</span></div><div class="separator" style="clear: both; text-align: center;"><span style="color: #373b41; font-family: lusitana, serif; font-size: 16px; font-weight: bold; text-align: left;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtsJTvAbgwr3w4Q6_UCRc4JnTWGSobM0HnxBk3BymPK7_G80AVN7p-4s7ZNExTp4xkxuopra0g47nyZDPqC0qZc3lUNeUZ1KQ1aA9eMFETLXlTa3LuTRJYwjIyaVFsyJ0zzYShWHkNLY3j/s899/A+New+Design+-+Made+with+PosterMyWall.jpg" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" data-original-height="695" data-original-width="899" height="390" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtsJTvAbgwr3w4Q6_UCRc4JnTWGSobM0HnxBk3BymPK7_G80AVN7p-4s7ZNExTp4xkxuopra0g47nyZDPqC0qZc3lUNeUZ1KQ1aA9eMFETLXlTa3LuTRJYwjIyaVFsyJ0zzYShWHkNLY3j/w640-h390/A+New+Design+-+Made+with+PosterMyWall.jpg" width="640" /></a></div><div style="text-align: justify;">
</div>
<div><br /></div>
<div>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
<span style="box-sizing: border-box; color: #ffa400; font-size: medium;"><b style="box-sizing: border-box;">Approch 1. Using maximize() Method:</b></span>
</p>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; margin: 1.5em 0px; text-align: left;"><span style="box-sizing: border-box;">We have different methods under driver.manage().window(). </span></p><p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; margin: 1.5em 0px; text-align: left;">So, here we will use<b> maximize()</b> method to maximize browser
window. </p>
<div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">UsingMaximizeFunction</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
WebDriverManager<span style="color: #333333;">.</span><span style="color: #0000cc;">chromedriver</span><span style="color: #333333;">().</span><span style="color: #0000cc;">setup</span><span style="color: #333333;">();</span>
WebDriver driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">();</span>
<span style="color: #888888;">// Maximize current window</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">manage</span><span style="color: #333333;">().</span><span style="color: #0000cc;">window</span><span style="color: #333333;">().</span><span style="color: #0000cc;">maximize</span><span style="color: #333333;">();</span>
<span style="color: #888888;">// Navigate to a website</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"https://www.myautomationlab.com/"</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Close the browser</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">quit</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
<span style="box-sizing: border-box; color: #ffa400; font-size: medium;"><b style="box-sizing: border-box;"><b style="box-sizing: border-box;">Approch </b>2. Using
</b></span><b style="box-sizing: border-box; color: #ffa400; font-size: medium;">fullscreen() Method:</b>
</p>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
<b style="box-sizing: border-box;"></b>
</p>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
<span style="box-sizing: border-box;">As mentioned in Approch 1, we have different methods under
driver.manage().window(). </span>
</p>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
<span style="box-sizing: border-box;">So, here we will use<b> fullscreen()</b> method to maximize browser
window. </span>
</p>
<div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">UsingFullScreenFunction</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #008800; font-weight: bold;">throws</span> InterruptedException <span style="color: #333333;">{</span>
WebDriverManager<span style="color: #333333;">.</span><span style="color: #0000cc;">chromedriver</span><span style="color: #333333;">().</span><span style="color: #0000cc;">setup</span><span style="color: #333333;">();</span>
WebDriver driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">();</span>
<span style="color: #888888;">// Navigate to a website</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"https://www.myautomationlab.com/"</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Maximize current window using "fullscreen" function</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">manage</span><span style="color: #333333;">().</span><span style="color: #0000cc;">window</span><span style="color: #333333;">().</span><span style="color: #0000cc;">fullscreen</span><span style="color: #333333;">();</span>
Thread<span style="color: #333333;">.</span><span style="color: #0000cc;">sleep</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">3000</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Close the browser</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">quit</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
<b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #ffa400; font-size: medium; font-weight: 400;"><b style="box-sizing: border-box;"><b style="box-sizing: border-box;">Approch </b>3.
Using </b></span><b style="box-sizing: border-box; color: #ffa400; font-size: medium;">setSize() Method:</b></b>
</p>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
Dimension class is used to<b> set height and width</b> of the object.
</p>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
So, here we can set the height and width of the browser as per our
requirement.
</p>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
To do browser window maximization one should know the height and width of the maximize window. This will differ based on the screen resolution of your
device.
</p>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
To use dimension class first create the object of <b>D<span style="color: #373b41; font-family: lusitana, serif;">imension</span></b> class.
</p>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
Then pass that <span style="background-color: transparent; box-sizing: border-box;">dimension </span>object to <b>setSize()</b> method as <span style="background-color: transparent; box-sizing: border-box;">driver.manage().window().setSize(dimension object) method.</span>
</p>
<!--HTML generated using hilite.me--><div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">UsingWindowSize</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
WebDriverManager<span style="color: #333333;">.</span><span style="color: #0000cc;">chromedriver</span><span style="color: #333333;">().</span><span style="color: #0000cc;">setup</span><span style="color: #333333;">();</span>
WebDriver driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">();</span>
<span style="color: #888888;">// Maximize current window by setting windows size</span>
Dimension dim <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> Dimension<span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">1280</span><span style="color: #333333;">,</span> <span style="color: #0000dd; font-weight: bold;">860</span><span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">manage</span><span style="color: #333333;">().</span><span style="color: #0000cc;">window</span><span style="color: #333333;">().</span><span style="color: #0000cc;">setSize</span><span style="color: #333333;">(</span>dim<span style="color: #333333;">);</span>
<span style="color: #888888;">// Navigate to a website</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"https://www.myautomationlab.com/"</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Close the browser</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">quit</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
<b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #ffa400; font-size: medium; font-weight: 400;"><b style="box-sizing: border-box;"><b style="box-sizing: border-box;">Approch </b>4. </b></span></b><b style="background-color: transparent; box-sizing: border-box;"><b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #ffa400; font-size: medium; font-weight: 400;"><b style="box-sizing: border-box;">Using ChromeOptions window-size</b></span><b style="box-sizing: border-box; color: #ffa400; font-size: medium;">:</b></b></b>
</p>
<p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px; text-align: justify;">
<span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;"><b>ChromeOptions </b>class is used for customizing the ChromeDriver
session. </span></span></span></span>
</p>
<p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px; text-align: justify;">
<span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">So, when we launch any browser using Selenium then it opens up
with given configurations. </span></span></span></span>
</p>
<p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px; text-align: justify;">
<span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">First, create the ChromeOptions class object. </span></span></span></span>
</p>
<p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px; text-align: justify;">
<span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">Then add arguments to that object as<b> </b></span></span></span></span><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;"><b>chromeOptions.addArguments("window-size=1280,860").</b> Here 1280 is the width and 860 is the height for maximizing a window. </span></span><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;">Y</span></span><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;">ou can pass width and height as per your requirement there. </span></span>
</p>
<p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px; text-align: justify;">
<span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;">Then while doing Webdriver initialization we need to pass the instance of </span></span><span style="color: #373b41; font-family: lusitana, serif;">ChromeOptions</span><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;"> class. </span></span>
</p>
<p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px; text-align: justify;">
<span style="background-color: transparent; color: #373b41; font-family: lusitana, serif;">After that, it will launch the browser with maximize browser
window. </span>
</p>
<!--HTML generated using hilite.me--><div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">UsingChromeOptionsWindowSize</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
<span style="color: #888888;">// Maximize current window using ChromeOptions "window-size"</span>
ChromeOptions chromeOptions <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeOptions<span style="color: #333333;">();</span>
chromeOptions<span style="color: #333333;">.</span><span style="color: #0000cc;">addArguments</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"window-size=1280,860"</span><span style="color: #333333;">);</span>
WebDriverManager<span style="color: #333333;">.</span><span style="color: #0000cc;">chromedriver</span><span style="color: #333333;">().</span><span style="color: #0000cc;">setup</span><span style="color: #333333;">();</span>
WebDriver driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">(</span>chromeOptions<span style="color: #333333;">);</span>
<span style="color: #888888;">// Navigate to a website</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"https://www.myautomationlab.com/"</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Close the browser</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">quit</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
<b style="background-color: transparent; box-sizing: border-box;"><b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #ffa400; font-size: medium; font-weight: 400;"><b style="box-sizing: border-box;"><b style="box-sizing: border-box;">Approch 5</b>. Using
ChromeOptions --start-fullscreen</b></span><b style="box-sizing: border-box; color: #ffa400; font-size: medium;">:</b></b></b>
</p>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;">
<span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #ffa400; font-size: medium;"><span style="background-color: transparent; box-sizing: border-box; color: black; font-family: "Times New Roman";"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">We can use<b> --start-fullscreen</b> method of ChromeOptions. </span></span></span></span></span></span></span></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">First, create the ChromeOptions class object. </span></span></span></span></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">Then add arguments to that object as<b> </b></span></span></span></span><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;"><b>chromeOptions.addArguments("--start-fullscreen").</b> Here "--start-fullscreen" is a keyword that you have to use as it is.</span></span></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;">Then while doing Webdriver initialization we need to pass the instance of </span></span><span style="color: #373b41; font-family: lusitana, serif;">ChromeOptions</span><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;"> class. </span></span></p><p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;"><span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #ffa400; font-size: medium;"><span style="background-color: transparent; box-sizing: border-box; color: black; font-family: "Times New Roman";"><span style="color: #373b41; font-family: lusitana, serif;"></span></span></span></span></span></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><span style="background-color: transparent; color: #373b41; font-family: lusitana, serif;">After that, it will launch the browser with maximized browser window. </span></p>
<!--HTML generated using hilite.me--><div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">UsingChromeOptionsStartFullscreen</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
<span style="color: #888888;">// Maximize current window using ChromeOptions "--start-fullscreen"</span>
ChromeOptions chromeOptions <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeOptions<span style="color: #333333;">();</span>
chromeOptions<span style="color: #333333;">.</span><span style="color: #0000cc;">addArguments</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"--start-fullscreen"</span><span style="color: #333333;">);</span>
WebDriverManager<span style="color: #333333;">.</span><span style="color: #0000cc;">chromedriver</span><span style="color: #333333;">().</span><span style="color: #0000cc;">setup</span><span style="color: #333333;">();</span>
WebDriver driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">(</span>chromeOptions<span style="color: #333333;">);</span>
<span style="color: #888888;">// Navigate to a website</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"https://www.myautomationlab.com/"</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Close the browser</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">quit</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div>
<p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;"><b style="background-color: transparent; box-sizing: border-box;"><b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #ffa400; font-size: medium; font-weight: 400;"><b style="box-sizing: border-box;"><b style="box-sizing: border-box;">Approch 6</b>. Using ChromeOptions --start-maximized/--kiosk</b></span><b style="box-sizing: border-box; color: #ffa400; font-size: medium;">:</b></b></b></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><b style="background-color: transparent; color: #373b41; font-family: lusitana, serif;"></b></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><span style="background-color: transparent; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #ffa400; font-size: medium;"><span style="background-color: transparent; box-sizing: border-box; color: black; font-family: "Times New Roman";"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">We can use<b> --start-maximized/</b></span></span></span></span></span></span></span><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;"><b>--kiosk</b></span></span><span style="background-color: transparent; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #ffa400; font-size: medium;"><span style="background-color: transparent; box-sizing: border-box; color: black; font-family: "Times New Roman";"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;"> method of ChromeOptions. </span></span></span></span></span></span></span></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">First, create the ChromeOptions class object. </span></span></span></span></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">Then based upon our<b> operating system</b> we need to </span></span></span></span><span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">add arguments to that object.</span></span></span></span></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">If the operating system is <b>windows </b>then </span></span></span></span><span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">add arguments to ChromeOption object as<b> </b></span></span></span></span><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;"><b>chromeOptions.addArguments("--start-maximized").</b> Here "<b>--start-maximized</b>" is a keyword that you have to use as it is.</span></span></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;"><span style="background-color: transparent; box-sizing: border-box; color: black; font-family: "Times New Roman";"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">If the operating system is <b>MAC/Linux</b> then </span></span></span></span><span style="background-color: transparent; box-sizing: border-box; color: black; font-family: "Times New Roman";"><span style="box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="color: #373b41; font-family: lusitana, serif;">add arguments to ChromeOption object as </span></span></span></span><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;"><b>chromeOptions.addArguments("--kiosk")</b><span style="color: black; font-family: "Times New Roman";">. Here <b>"</b></span><b>--kiosk</b><span style="color: black; font-family: "Times New Roman";"><b>"</b> is a keyword that you have to use as it is.</span></span></span></span></span></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;">Then while doing Webdriver initialization we need to pass the instance of </span></span><span style="color: #373b41; font-family: lusitana, serif;">ChromeOptions</span><span style="background-color: transparent;"><span style="color: #373b41; font-family: lusitana, serif;"> class. </span></span></p><p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;"><span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #ffa400; font-size: medium;"><span style="background-color: transparent; box-sizing: border-box; color: black; font-family: "Times New Roman";"><span style="color: #373b41; font-family: lusitana, serif;"></span></span></span></span></span></p><p style="background-color: white; box-sizing: border-box; color: #373b41; font-family: lusitana, serif; font-size: 16px; margin: 1.5em 0px;"><span style="background-color: transparent; box-sizing: border-box;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #ffa400; font-size: medium;"><span style="background-color: transparent; box-sizing: border-box; color: black; font-family: "Times New Roman";"><span style="color: #373b41; font-family: lusitana, serif;"></span></span></span></span></span></p><p style="background-color: white; box-sizing: border-box; margin: 1.5em 0px;"><span style="background-color: transparent; color: #373b41; font-family: lusitana, serif;">After that, it will launch the browser with maximized browser window.</span></p>
<!--HTML generated using hilite.me--><div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">UsingChromeOptionsStartMaximized</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
ChromeOptions chromeOptions <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeOptions<span style="color: #333333;">();</span>
<span style="color: #008800; font-weight: bold;">if</span> <span style="color: #333333;">(</span>System<span style="color: #333333;">.</span><span style="color: #0000cc;">getProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"os.name"</span><span style="color: #333333;">).</span><span style="color: #0000cc;">startsWith</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"Windows"</span><span style="color: #333333;">))</span> <span style="color: #333333;">{</span>
<span style="color: #888888;">// To maximize window in Windows system use "--start-maximized"</span>
chromeOptions<span style="color: #333333;">.</span><span style="color: #0000cc;">addArguments</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"--start-maximized"</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span> <span style="color: #008800; font-weight: bold;">else</span> <span style="color: #333333;">{</span>
<span style="color: #888888;">// To maximize window in Mac & linux system use "--kiosk"</span>
chromeOptions<span style="color: #333333;">.</span><span style="color: #0000cc;">addArguments</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"--kiosk"</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
WebDriverManager<span style="color: #333333;">.</span><span style="color: #0000cc;">chromedriver</span><span style="color: #333333;">().</span><span style="color: #0000cc;">setup</span><span style="color: #333333;">();</span>
WebDriver driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">(</span>chromeOptions<span style="color: #333333;">);</span>
<span style="color: #888888;">// Navigate to a website</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"https://www.myautomationlab.com/"</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Close the browser</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">quit</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span></pre></td></tr></tbody></table></div></div><h2 style="line-height: 1.4; padding: 0px;"><div style="color: #172b4d; font-family: monospace; letter-spacing: 0px; text-align: center; white-space: pre;"><span style="font-size: large;"><span face=""arial" , "tahoma" , "helvetica" , "freesans" , sans-serif" style="letter-spacing: 0px;">The Source Code for above topic is available on GitHub Repository, </span><span face=""arial" , "tahoma" , "helvetica" , "freesans" , sans-serif" style="letter-spacing: 0px;">You can get it from this URL:- </span></span></div><div style="text-align: center;"><div style="text-align: center;"><span style="color: #172b4d; font-family: monospace; font-size: 19.5px; white-space: pre;"><br /></span></div><span style="font-size: large;"><a href="https://github.com/patilshubham033/InterviewQuestions/tree/master/src/test/java/com/interviewquestions/maximizewindow" target="_blank" rel="noopener noreferrer">https://github.com/patilshubham033/InterviewQuestions/tree/master/src/test/java/com/interviewquestions/maximizewindow</a></span></div></h2>
Jiwali Patilhttp://www.blogger.com/profile/06598871989296857768noreply@blogger.com0tag:blogger.com,1999:blog-8281255614362562168.post-59137882009949759702021-03-27T16:04:00.004+05:302021-03-31T10:43:15.950+05:30Some Cool Facts About Main Method in Java<div style="display: none;"></div>
<p><b>Hello learners, </b></p>
<p>
<span style="background-color: white; color: #373b41; font-family: lusitana, serif; font-size: 16px;"><b>In this post, we'll learn about some basic concepts related to Main
method in Java. But before that lets understand what is main method, its
importance, how it interacts with JVM etc. </b></span>
</p>
<p>
<span style="background-color: white; color: #ffa400; font-family: lusitana, serif; font-size: medium;"><b>1. What is main method in Java?</b></span>
</p>
<p>
<span style="background-color: white; color: #373b41; font-family: lusitana, serif; font-size: 16px;"><b>Main method is the entry point for every Java program. When you execute
certain class that time Java compiler first search for main method for
that class, after finding the main method it starts it's execution. Below
is the figure for illustrating meaning of every word in declaration
of main method.</b></span>
</p>
<p><b> </b></p>
<p>
<b> <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg263Li3P4ROT6PN461_EhIe_HklkuiRH9Eo84Z-pYtWIpmjhHPuBmRphsTQuATczrsWKFn_usRz4dOs7yMEDQXym1iGmMEUIibUptAluf-CTCQlmgfVRbujEe5lUVCW9qH7Nwi_OtW74ed/" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img alt="" data-original-height="282" data-original-width="559" height="206" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg263Li3P4ROT6PN461_EhIe_HklkuiRH9Eo84Z-pYtWIpmjhHPuBmRphsTQuATczrsWKFn_usRz4dOs7yMEDQXym1iGmMEUIibUptAluf-CTCQlmgfVRbujEe5lUVCW9qH7Nwi_OtW74ed/w506-h206/image.png" width="506" /></a></b>
</p>
<p>
<b>In the above figure public is a Access Modifier that means the main
method is called by JVM from any class, package, subclass etc. static is a
Keyword that means we don't need to create objects of main method it can be
directly called with the help of class. Void is a return type that means
main method does not return any value. main is a method name. And lastly
main method can accept one argument of type String Array.</b>
</p>
<p>
<span style="background-color: white; font-family: lusitana, serif;"><span style="color: #ffa400; font-size: medium;"><b>2. What happens to Java program if main method is not present.</b></span></span>
</p>
<p>
<b><span style="color: #373b41; font-family: lusitana, serif;"><span style="background-color: white;">It will give byte code verification error as "</span>Main method not found in class</span><span style="background-color: white; color: #373b41; font-family: lusitana, serif;">". Now, this will be a error and not exception since the program
has not started its execution yet. Prior to JDK7 main method declaration
was not mandatory but after JDK7 it is mandatory to define method for
execution of program.</span></b>
</p>
<p>
<b style="background-color: white; color: #ffa400; font-family: lusitana, serif; font-size: large;">3. Can we overload main method in Java?</b>
</p>
<p>
<span style="background-color: white; color: #373b41; font-family: lusitana, serif;"><b>Yes, we can surely do this. We can declare multiple methods with the
name as main but the parameters will be different. Let's say we have
declare four different main method with different parameters as String
array, Single String, Single Integer and with two Integer. And calling the
other mains from first main method. Now, since the data type of parameters
are different in every case so the main method execution is happening
properly.</b></span>
</p>
<p>
<span style="color: #373b41; font-family: lusitana, serif;"><span style="background-color: white;"><b>Code: </b></span></span>
</p>
<!--HTML generated using hilite.me-->
<div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<table>
<tbody>
<tr>
<td>
<pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26</pre>
</td>
<td>
<pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> javaProgramsforInterview<span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">JavaPrograms</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">out</span><span style="color: #333333;">.</span><span style="color: #0000cc;">println</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"Main Method-1"</span><span style="color: #333333;">);</span>
main<span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"my automation lab"</span><span style="color: #333333;">);</span>
main<span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">50</span><span style="color: #333333;">);</span>
main<span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">20</span><span style="color: #333333;">,</span> <span style="color: #0000dd; font-weight: bold;">40</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">out</span><span style="color: #333333;">.</span><span style="color: #0000cc;">println</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"Main Method-2"</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span><span style="color: #333399; font-weight: bold;">int</span> a<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">out</span><span style="color: #333333;">.</span><span style="color: #0000cc;">println</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"Main Method-3"</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span><span style="color: #333399; font-weight: bold;">int</span> a<span style="color: #333333;">,</span> <span style="color: #333399; font-weight: bold;">int</span> b<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">out</span><span style="color: #333333;">.</span><span style="color: #0000cc;">println</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"Main Method-4"</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p><b>Output:</b></p>
<p></p>
<div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;">1
2
3
4</pre></td><td><pre style="line-height: 125%; margin: 0px;">Main Method<span style="color: #333333;">-</span><span style="color: #0000dd; font-weight: bold;">1</span>
Main Method<span style="color: #333333;">-</span><span style="color: #0000dd; font-weight: bold;">2</span>
Main Method<span style="color: #333333;">-</span><span style="color: #0000dd; font-weight: bold;">3</span>
Main Method<span style="color: #333333;">-</span><span style="color: #0000dd; font-weight: bold;">4</span>
</pre></td></tr></tbody></table></div>
<b><br /></b>
<div>
<b style="background-color: white; color: #ffa400; font-family: lusitana, serif;">4.
<span style="font-size: medium;">Can we call main method from another class?</span></b>
</div>
<div>
<b style="background-color: white; color: #ffa400; font-family: lusitana, serif;"><span style="font-size: medium;"><br /></span></b>
</div>
<div>
<span style="background-color: white; color: #373b41; font-family: lusitana, serif;"><b>Yes, we can surely do this. Since main method is static in nature and
static methods we can call by using ClassName.method() from another
classes. </b></span>
</div>
<div>
<span style="background-color: white; color: #373b41; font-family: lusitana, serif;"><b><br /></b></span>
</div>
<div><b>Code: </b></div>
<div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<table>
<tbody>
<tr>
<td>
<pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11</pre>
</td>
<td>
<pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> javaProgramsforInterview<span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">ClassA</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">out</span><span style="color: #333333;">.</span><span style="color: #0000cc;">println</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"This is Java Class A"</span><span style="color: #333333;">);</span>
ClassB<span style="color: #333333;">.</span><span style="color: #0000cc;">main</span><span style="color: #333333;">(</span>args<span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
<b><br />
<div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;">
<table>
<tbody>
<tr>
<td>
<pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11</pre>
</td>
<td>
<pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> javaProgramsforInterview<span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">ClassB</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">out</span><span style="color: #333333;">.</span><span style="color: #0000cc;">println</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"This is Java Class B"</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
<b><br />Output:</b>
<br />
<div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;">1
2</pre></td><td><pre style="line-height: 125%; margin: 0px;">This is Java Class A
This is Java Class B
</pre></td></tr></tbody></table><br /></div>
<span style="color: #ffa400; font-family: lusitana, serif;"><span style="background-color: white;"><b>5. What happens if we call main methods of two classes within each
other</b></span></span>
<div>
<span style="color: #ffa400; font-family: lusitana, serif;"><b><br /></b></span>
<div>
<b><span style="font-family: lusitana, serif;"><span style="color: #373b41;"><span style="background-color: white;">When we call main methods of two classes within each other then
the output will go in infinite loop. In the above
example let's say we are calling main method of ClassB in
ClassA and </span></span></span><span style="background-color: white;"><span style="color: #373b41; font-family: lusitana, serif;">main method of ClassA in ClassB then when we execute class A
first it will execute all the methods for A and then the
control will go to ClassB it will execute all methods of ClassB
but since in ClassB we have called main method of ClassA then the
control will again go to ClassA and it will continue till infinite
loop.</span></span></b>
</div>
<div>
<span style="background-color: white;"><span style="color: #373b41; font-family: lusitana, serif;"><b><br /></b></span></span>
</div>
<div>
<b style="color: #ffa400; font-family: lusitana, serif;">6. Can we Override the main method?</b>
</div>
<div>
<b><span style="color: #373b41; font-family: lusitana, serif;"><span style="background-color: white;">No, we can't do this. Since main method is static in nature
we can not override it. In method overriding we change the implementation part of methods having same name. Now, for changing the implementation part we need to create objects within that method but for static methods we don't need to create
its object it gets directly called by it's class name. Suppose, if
we have multiple main methods with
</span></span><span style="background-color: white; color: #373b41; font-family: lusitana, serif;">method name as "main" and same parameters then it will be very
confusing that which main method to be executed. Therefore, it is
not possible to override a main() method.</span></b>
</div>
<div>
<div><br /></div>
</div>
</div></b>
Jiwali Patilhttp://www.blogger.com/profile/06598871989296857768noreply@blogger.com1tag:blogger.com,1999:blog-8281255614362562168.post-82449632694429182402021-03-23T14:37:00.000+05:302021-03-23T14:37:41.323+05:30Removing duplicate characters from given string without using Java Built in functions.<p dir="ltr" style="background-color: white; line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span face="Roboto,sans-serif" style="-webkit-text-decoration-skip: none; background-color: transparent; color: #ffa400; font-size: medium; font-style: normal; font-variant: normal; font-weight: 700; text-decoration-skip-ink: none; text-decoration: underline; vertical-align: baseline; white-space: pre;">Approch 1</span></p><p dir="ltr" style="background-color: white; line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;">First will convert String to Characters by using toCharArray function. After that will store that CharArray to Set it will automatically remove all duplicates. And then will use StringBuilder function to reconstruct that String.</p><p dir="ltr" style="background-color: white; line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><br /></p><div style="background: rgb(255, 255, 255); border-color: gray; border-image: initial; border-style: solid; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;"><pre style="line-height: 125%; margin: 0px;"><span style="color: #997700; font-weight: bold;">Code:</span>
</pre></div>
<div style="background: rgb(255, 255, 255); border-color: gray; border-image: initial; border-style: solid; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> javaProgramsforInterview<span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">java.util.LinkedHashSet</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">java.util.Set</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">RemovingDuplicates1</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
String string <span style="color: #333333;">=</span> <span style="background-color: #fff0f0;">"samplestringfortest"</span><span style="color: #333333;">;</span>
<span style="color: #333399; font-weight: bold;">char</span><span style="color: #333333;">[]</span> chars <span style="color: #333333;">=</span> string<span style="color: #333333;">.</span><span style="color: #0000cc;">toCharArray</span><span style="color: #333333;">();</span>
Set<span style="color: #333333;"><</span>Character<span style="color: #333333;">></span> charSet <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> LinkedHashSet<span style="color: #333333;"><</span>Character<span style="color: #333333;">>();</span>
<span style="color: #008800; font-weight: bold;">for</span> <span style="color: #333333;">(</span><span style="color: #333399; font-weight: bold;">char</span> c <span style="color: #333333;">:</span> chars<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
charSet<span style="color: #333333;">.</span><span style="color: #0000cc;">add</span><span style="color: #333333;">(</span>c<span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
StringBuilder sb <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> StringBuilder<span style="color: #333333;">();</span>
<span style="color: #008800; font-weight: bold;">for</span> <span style="color: #333333;">(</span>Character character <span style="color: #333333;">:</span> charSet<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
sb<span style="color: #333333;">.</span><span style="color: #0000cc;">append</span><span style="color: #333333;">(</span>character<span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">out</span><span style="color: #333333;">.</span><span style="color: #0000cc;">println</span><span style="color: #333333;">(</span>sb<span style="color: #333333;">.</span><span style="color: #0000cc;">toString</span><span style="color: #333333;">());</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div><div style="background: rgb(255, 255, 255); border-color: gray; border-image: initial; border-style: solid; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;"><pre style="line-height: 125%; margin: 0px;"><span style="color: #997700; font-weight: bold;">Output:</span>
sampletringfo
</pre></div><p><br /></p><div><p dir="ltr" style="background-color: white; line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span face="Roboto,sans-serif" style="-webkit-text-decoration-skip: none; background-color: transparent; color: red; font-size: 10.5pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre;"><span style="color: #ffa400; font-size: large;">Approch 2</span></span></p><p dir="ltr" style="background-color: white; line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span id="docs-internal-guid-a44f1340-7fff-a9a3-1cc2-d2d045a0899f"><span style="background-color: transparent; font-family: Roboto, sans-serif; font-size: 10.5pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">First will convert String to Characters by using toCharArray function. After that we will compare n’th letter from zero to (n-1) index to all the letters of string. Then we will use a boolean flag to check the duplicate letter. If a duplicate letter is found then will turn off the flag and will not append the letter to the String. If there is no duplicate letter then we will keep the flag value as true and will append the letter to string. For string reconstruction we are using StringBuilder function.</span></span></p><p dir="ltr" style="background-color: white; line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span><span style="background-color: transparent; font-family: Roboto, sans-serif; font-size: 10.5pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><br /></span></span></p></div><div style="background: rgb(255, 255, 255); border-color: gray; border-image: initial; border-style: solid; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;"><pre style="line-height: 125%; margin: 0px;"><span style="color: #997700; font-weight: bold;">Code:</span>
</pre></div>
<div style="background: rgb(255, 255, 255); border-color: gray; border-image: initial; border-style: solid; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> javaProgramsforInterview<span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">RemovingDuplicates2</span> <span style="color: #333333;">{.</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
String string <span style="color: #333333;">=</span> <span style="background-color: #fff0f0;">"samplestringfortest"</span><span style="color: #333333;">;</span>
<span style="color: #333399; font-weight: bold;">char</span><span style="color: #333333;">[]</span> chars <span style="color: #333333;">=</span> string<span style="color: #333333;">.</span><span style="color: #0000cc;">toCharArray</span><span style="color: #333333;">();</span>
StringBuilder sb1 <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> StringBuilder<span style="color: #333333;">();</span>
<span style="color: #008800; font-weight: bold;">for</span> <span style="color: #333333;">(</span><span style="color: #333399; font-weight: bold;">int</span> i <span style="color: #333333;">=</span> <span style="color: #0000dd; font-weight: bold;">0</span><span style="color: #333333;">;</span> i <span style="color: #333333;"><</span> chars<span style="color: #333333;">.</span><span style="color: #0000cc;">length</span><span style="color: #333333;">;</span> i<span style="color: #333333;">++)</span> <span style="color: #333333;">{</span>
<span style="color: #333399; font-weight: bold;">boolean</span> flag <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">true</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">for</span> <span style="color: #333333;">(</span><span style="color: #333399; font-weight: bold;">int</span> j <span style="color: #333333;">=</span> <span style="color: #0000dd; font-weight: bold;">0</span><span style="color: #333333;">;</span> j <span style="color: #333333;"><</span> i<span style="color: #333333;">;</span> j<span style="color: #333333;">++)</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">if</span> <span style="color: #333333;">(</span>chars<span style="color: #333333;">[</span>j<span style="color: #333333;">]</span> <span style="color: #333333;">==</span> chars<span style="color: #333333;">[</span>i<span style="color: #333333;">])</span> <span style="color: #333333;">{</span>
flag <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">false</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">break</span><span style="color: #333333;">;</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
<span style="color: #008800; font-weight: bold;">if</span> <span style="color: #333333;">(</span>flag<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
sb1<span style="color: #333333;">.</span><span style="color: #0000cc;">append</span><span style="color: #333333;">(</span>chars<span style="color: #333333;">[</span>i<span style="color: #333333;">]);</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">out</span><span style="color: #333333;">.</span><span style="color: #0000cc;">println</span><span style="color: #333333;">(</span>sb1<span style="color: #333333;">.</span><span style="color: #0000cc;">toString</span><span style="color: #333333;">());</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div><div style="background: rgb(255, 255, 255); border-color: gray; border-image: initial; border-style: solid; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;"><pre style="line-height: 125%; margin: 0px;"><span style="color: #997700; font-weight: bold;">Output:</span>
sampletringfo
</pre></div>
Jiwali Patilhttp://www.blogger.com/profile/06598871989296857768noreply@blogger.com0tag:blogger.com,1999:blog-8281255614362562168.post-79735236694326065202018-03-13T00:15:00.003+05:302021-03-27T15:44:39.220+05:30Nth Even Fibonacci Number<div dir="ltr" style="text-align: left;" trbidi="on">
Nth Even Fibonacci Number<br />
<div>
<br /></div>
<div>
I this post, we'll learn about how to calculate Nth Even Fibonacci Number.</div>
<div>
<br /></div>
<div>
The <b>Fibonacci numbers</b> are the numbers in the following integer sequence, called the <b>Fibonacci sequence</b>, and characterized by the fact that every number after the first two is the sum of the two preceding ones.</div>
<div>
<br /></div>
<div style="text-align: center;">
<img alt="{\displaystyle 0,\;1,\;1,\;2,\;3,\;5,\;8,\;13,\;21,\;34,\;55,\;89,\;144,\;\ldots }" aria-hidden="true" class="mwe-math-fallback-image-inline" height="33" src="https://wikimedia.org/api/rest_v1/media/math/render/svg/d9941f4184ea7677a056402b98d8b741af937f80" style="background-color: white; border: 0px; color: #222222; display: inline-block; font-family: sans-serif; height: 2.509ex; vertical-align: -0.671ex; width: 47.801ex;" width="640" /></div>
<div>
<br /></div>
<div>
In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation,</div>
<div>
<br /></div>
<div>
<pre style="background-color: whitesmoke; font-family: Consolas, Monaco, "Liberation Mono", "Lucida Console", monospace; margin-bottom: 10px; overflow: auto; padding-left: 5px; padding-top: 5px; white-space: pre-wrap; width: 580px;"><code style="font-family: Consolas, Monaco, "Liberation Mono", "Lucida Console", monospace;"> Fn = Fn-1 + Fn-2 with seed values
F0 = 0 and F1 = 1.</code></pre>
</div>
<div>
<br /></div>
<div>
The even number Fibonacci sequence is : 0, 2, 8, 34, 144, 610, 2584…. We have to find nth number in this sequence.</div>
<div>
<br /></div>
<div>
<pre style="background-color: whitesmoke; font-family: Consolas, Monaco, "Liberation Mono", "Lucida Console", monospace; margin-bottom: 10px; overflow: auto; padding-left: 5px; padding-top: 5px; white-space: pre-wrap; width: 780px;"><code style="font-family: Consolas, Monaco, "Liberation Mono", "Lucida Console", monospace;">The formula of even Fibonacci number = ((4*evenFib(n-1)) + evenFib(n-2));</code></pre>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<span style="background-color: white; color: #262626; font-family: "georgia" , serif; font-size: 19px;">The Below Code shows how to calculate Nth Even Fibonacci Number in Java. </span></div>
<div>
<br />
<br />
<div style="background-color: white; background: white; border-color: gray; border-image: initial; border-style: solid; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">NthEvenFibonacciNumber</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
<span style="color: #888888;">// Here we are passing nth Number</span>
<span style="color: #333399; font-weight: bold;">int</span> nthNumber <span style="color: #333333;">=</span> <span style="color: #0000dd; font-weight: bold;">3</span><span style="color: #333333;">;</span>
<span style="color: #888888;">//Calling the getEvenNumber Method And Printing the Nth Even Fibonacci Number number</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">out</span><span style="color: #333333;">.</span><span style="color: #0000cc;">println</span><span style="color: #333333;">(</span>getEvenNumber<span style="color: #333333;">(</span>nthNumber<span style="color: #333333;">));</span>
<span style="color: #333333;">}</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">int</span> <span style="color: #0066bb; font-weight: bold;">getEvenNumber</span><span style="color: #333333;">(</span><span style="color: #333399; font-weight: bold;">int</span> nthNumber<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">if</span> <span style="color: #333333;">(</span>nthNumber <span style="color: #333333;"><</span> <span style="color: #0000dd; font-weight: bold;">1</span><span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">return</span> nthNumber<span style="color: #333333;">;</span>
<span style="color: #333333;">}</span> <span style="color: #008800; font-weight: bold;">else</span> <span style="color: #008800; font-weight: bold;">if</span> <span style="color: #333333;">(</span>nthNumber <span style="color: #333333;">==</span> <span style="color: #0000dd; font-weight: bold;">1</span><span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">return</span> <span style="color: #0000dd; font-weight: bold;">2</span><span style="color: #333333;">;</span>
<span style="color: #333333;">}</span> <span style="color: #008800; font-weight: bold;">else</span> <span style="color: #333333;">{</span>
<span style="color: #888888;">//Formula to calculate Nth Even Fibonacci Number Fn = 4*(Fn-1) + Fn-2</span>
<span style="color: #008800; font-weight: bold;">return</span> <span style="color: #333333;">((</span><span style="color: #0000dd; font-weight: bold;">4</span> <span style="color: #333333;">*</span> getEvenNumber<span style="color: #333333;">(</span>nthNumber <span style="color: #333333;">-</span> <span style="color: #0000dd; font-weight: bold;">1</span><span style="color: #333333;">))</span> <span style="color: #333333;">+</span> getEvenNumber<span style="color: #333333;">(</span>nthNumber <span style="color: #333333;">-</span> <span style="color: #0000dd; font-weight: bold;">2</span><span style="color: #333333;">));</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div>
</div><div><b>Output :- 34 </b><br />
<br />
<br /></div>
<div>
<pre style="border-radius: 0px; border: 0px solid rgb(204, 204, 204); box-sizing: border-box; color: inherit; font-variant-ligatures: contextual; line-height: inherit; overflow-wrap: normal; overflow: visible; padding: 0px 4px; position: relative; text-size-adjust: auto; word-break: break-all; word-wrap: normal; z-index: 2;"></pre>
<pre style="border-radius: 0px; border: 0px solid rgb(204, 204, 204); box-sizing: border-box; line-height: inherit; overflow-wrap: normal; overflow: visible; padding: 0px 4px; position: relative; text-size-adjust: auto; word-break: break-all; word-wrap: normal; z-index: 2;"><span style="font-variant-ligatures: contextual;">If You like my post please like & Follow the blog, And get upcoming interesting topics.</span></pre>
</div>
</div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.comtag:blogger.com,1999:blog-8281255614362562168.post-90615545104690845192018-03-11T23:35:00.015+05:302021-04-09T11:38:03.292+05:30How to handle Lazy Loading Webpage<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; box-sizing: border-box; font-family: Lato; font-size: 22px; line-height: 1.1; margin: 0px 0px 15px; overflow-wrap: break-word; text-align: left;"><span style="font-family: "Times New Roman"; font-size: medium;"><span><b>Hello Learners,</b></span></span></div><p style="background-color: white; box-sizing: border-box; line-height: 1.1; margin: 0px 0px 15px; overflow-wrap: break-word; text-align: left;"><span style="background-color: transparent;">Just like humans sometimes webpage elements also get lazy. We have often seen lazy loading-related scenarios on different e-commerce and other social media sites but, we are not aware about it that it is called as Lazy Loading. Also, how to handle such Lazy webelements through Selenium is a tricky question. But no worries!! Let's move ahead in the post and find out what is this Lazy Loading & How to handle it?</span></p><div>
<b><span style="color: #ffa400; font-size: large;">What is Lazy Loading?</span></b><br />
<br /></div>
<div>
There is a new technology in web development, which is called Lazy Loading. This makes your web <b>page lighter and loads fast</b>. </div>
<div>
<br /></div>
<div>
How it works is that it loads the page only what is visible on the screen, and on scrolling down the page, it again loads the rest of the page. So it <b>loads only the visible part of the webpage</b>, not the whole web page at one go. </div>
<div>
<br />
<b><span style="color: #ffa400; font-size: large;">How to handle Lazy Loading?</span></b></div><div><b><span style="color: #ffa400; font-size: large;"><br /></span></b></div><div><b><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwmIwhO3WZqVAYW5UCqLwsVhebU6yB6uS1-IGkLxvQdB7ReQJ7QAgbuVjhVwgVuSIXkWsCZsMVCA19mGYYSDKNou9Vd2tm2O_83uVDHH2QkA1RgeNgS57q7TTYzy2LIcC2_KLq7VDXfDXP/s841/Capture456.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="How to handle Lazy Loading?" border="0" data-original-height="475" data-original-width="841" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwmIwhO3WZqVAYW5UCqLwsVhebU6yB6uS1-IGkLxvQdB7ReQJ7QAgbuVjhVwgVuSIXkWsCZsMVCA19mGYYSDKNou9Vd2tm2O_83uVDHH2QkA1RgeNgS57q7TTYzy2LIcC2_KLq7VDXfDXP/s16000/Capture456.JPG" title="How to handle Lazy Loading?" /></a></div></b></div><div><b><span style="color: #ffa400; font-size: large;"><br /></span></b></div><div>So the solution to your problem is to scroll down the web page where your element is visible. Make sure you do not scroll it down completely at a go, as if you directly reach the bottom of the page, then again it will not load the middle web page. </div>
<div>
<br /></div>
<div>
So your interested element will be active only when you load that part of the page.</div>
<div>
<br />
Here to scroll the page we are using <b>Java- Script</b><br />
<br />
<b><span style="color: #ffa400;">The Syntax is as follows:-</span></b><br />
<br />
<div class="p1" style="background-color: white;"><b>
JavascriptExecutor <span class="s6">js</span> = (JavascriptExecutor) <span class="s2">driver</span>;</b></div>
<div class="p6" style="background-color: white;">
<b><span class="s3">j</span><span class="s6">s</span><span class="s3">.executeScript(</span>"window.scrollTo(0, document.body.scrollHeight)"<span class="s3">);</span></b></div><div class="p6" style="background-color: white;"><br /></div><div class="p6" style="background-color: white;"><b><span style="color: #ffa400;">So, the general Steps to Handle Lazy Loading scenarios are:-</span></b></div><div class="p6" style="background-color: white;"><ol style="text-align: left;"><li><span style="background-color: transparent;">First, redirect to the page where you are getting a lazy loading scenario</span></li><li><span style="background-color: transparent;">Define JavascripExecutor</span></li><li><span style="background-color: transparent;">Use JavascripExecutor to scroll to page height</span></li><li><span style="background-color: transparent;">Wait for 1-2 seconds for new images/content to get load</span></li><li><span style="background-color: transparent;">Here y</span>ou can put condition to check whether the page has reached to the bottom or not. By comparing total current elements loaded after scrolling down page with the previous total elements loaded.</li><li><span style="background-color: transparent;">Again repeat step no. 3 to 5 to scroll the page if page has not reached to the bottom.</span></li></ol></div></div></div></div><div dir="ltr" style="text-align: left;" trbidi="on"><div dir="ltr" style="text-align: left;" trbidi="on"><div>
<br />
<div class="readability-styled" pid="30" style="background-color: white; box-sizing: border-box; margin-bottom: 15px; margin-top: 5px; padding-top: 0px;">
<div style="font-family: georgia, serif; font-size: 19px;">
The Below Code shows the lazy loading handling on Pinterest. </div>
<div style="font-family: georgia, serif; font-size: 19px;">
<br /></div>
<div style="text-align: center;">
<span style="font-family: georgia, serif;"><span style="font-size: 19px;">The Source Code for this topic is available on GitHub Repository, You can get it from this URL:-</span></span></div>
<div style="text-align: center;">
<span style="color: #262626; font-family: georgia, serif;"><span style="font-size: 19px;"><a href="https://github.com/patilshubham033/LazyLoading">https://github.com/patilshubham033/LazyLoading</a></span></span></div>
<div style="color: #262626; font-family: georgia, serif; font-size: 19px;">
<br /></div>
<div style="color: #262626; font-family: georgia, serif; font-size: 19px;">
<br /></div>
<div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> com<span style="color: #333333;">.</span><span style="color: #0000cc;">lazyloading</span><span style="color: #333333;">.</span><span style="color: #0000cc;">ui</span><span style="color: #333333;">.</span><span style="color: #0000cc;">test</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">java.util.NoSuchElementException</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">java.util.concurrent.TimeUnit</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.By</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.JavascriptExecutor</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebElement</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.chrome.ChromeDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.support.ui.ExpectedConditions</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.support.ui.WebDriverWait</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.Assert</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.BeforeMethod</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.Test</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">LazyLoading</span> <span style="color: #333333;">{</span>
WebDriver driver<span style="color: #333333;">;</span>
String emailId <span style="color: #333333;">=</span> <span style="background-color: #fff0f0;">"emailId"</span><span style="color: #333333;">;</span>
String password <span style="color: #333333;">=</span> <span style="background-color: #fff0f0;">"password"</span><span style="color: #333333;">;</span>
<span style="color: #555555; font-weight: bold;">@BeforeMethod</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">setup</span><span style="color: #333333;">()</span> <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">setProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"webdriver.chrome.driver"</span><span style="color: #333333;">,</span> <span style="background-color: #fff0f0;">"/Users/ShubhamPatil/Desktop/chromedriver"</span><span style="color: #333333;">);</span>
driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">();</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"https://www.pinterest.com"</span><span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">manage</span><span style="color: #333333;">().</span><span style="color: #0000cc;">timeouts</span><span style="color: #333333;">().</span><span style="color: #0000cc;">implicitlyWait</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">60</span><span style="color: #333333;">,</span> TimeUnit<span style="color: #333333;">.</span><span style="color: #0000cc;">SECONDS</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #555555; font-weight: bold;">@Test</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">test</span><span style="color: #333333;">()</span> <span style="color: #008800; font-weight: bold;">throws</span> InterruptedException <span style="color: #333333;">{</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//div[text()='Log in']"</span><span style="color: #333333;">)).</span><span style="color: #0000cc;">click</span><span style="color: #333333;">();</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">id</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"email"</span><span style="color: #333333;">)).</span><span style="color: #0000cc;">sendKeys</span><span style="color: #333333;">(</span>emailId<span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">id</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"password"</span><span style="color: #333333;">)).</span><span style="color: #0000cc;">sendKeys</span><span style="color: #333333;">(</span>password<span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"(//div[text()='Log in'])[2]"</span><span style="color: #333333;">)).</span><span style="color: #0000cc;">click</span><span style="color: #333333;">();</span>
Assert<span style="color: #333333;">.</span><span style="color: #0000cc;">assertTrue</span><span style="color: #333333;">(</span>driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//span[text()='Home']"</span><span style="color: #333333;">)).</span><span style="color: #0000cc;">isDisplayed</span><span style="color: #333333;">(),</span>
<span style="background-color: #fff0f0;">"Home Page is not displayed"</span><span style="color: #333333;">);</span>
By elementLocator <span style="color: #333333;">=</span> By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//img[@loading='auto']"</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Calling the locateElement method, to fetch all elements</span>
locateElement<span style="color: #333333;">(</span>elementLocator<span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">locateElement</span><span style="color: #333333;">(</span>By elementLocator<span style="color: #333333;">)</span> <span style="color: #008800; font-weight: bold;">throws</span> InterruptedException <span style="color: #333333;">{</span>
WebDriverWait wait <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> WebDriverWait<span style="color: #333333;">(</span>driver<span style="color: #333333;">,</span> <span style="color: #0000dd; font-weight: bold;">10</span><span style="color: #333333;">);</span>
JavascriptExecutor js <span style="color: #333333;">=</span> <span style="color: #333333;">(</span>JavascriptExecutor<span style="color: #333333;">)</span> driver<span style="color: #333333;">;</span>
<span style="color: #888888;">// Initial element count</span>
<span style="color: #333399; font-weight: bold;">int</span> elementCount <span style="color: #333333;">=</span> driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElements</span><span style="color: #333333;">(</span>elementLocator<span style="color: #333333;">).</span><span style="color: #0000cc;">size</span><span style="color: #333333;">();</span>
<span style="color: #008800; font-weight: bold;">while</span> <span style="color: #333333;">(</span><span style="color: #008800; font-weight: bold;">true</span><span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
<span style="color: #888888;">// javascriptexecutor to scroll the page</span>
js<span style="color: #333333;">.</span><span style="color: #0000cc;">executeScript</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"window.scrollTo(0, document.body.scrollHeight)"</span><span style="color: #333333;">);</span>
wait<span style="color: #333333;">.</span><span style="color: #0000cc;">ignoring</span><span style="color: #333333;">(</span>NoSuchElementException<span style="color: #333333;">.</span><span style="color: #0000cc;">class</span><span style="color: #333333;">)</span>
<span style="color: #333333;">.</span><span style="color: #0000cc;">until</span><span style="color: #333333;">(</span>ExpectedConditions<span style="color: #333333;">.</span><span style="color: #0000cc;">invisibilityOfElementLocated</span><span style="color: #333333;">(</span>elementLocator<span style="color: #333333;">));</span>
<span style="color: #888888;">// Wait to load the new elements</span>
Thread<span style="color: #333333;">.</span><span style="color: #0000cc;">sleep</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">2000</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Check if the last fetch element count is same as new count,</span>
<span style="color: #888888;">// If it's same then we already have fetch all the elements on the page.</span>
<span style="color: #008800; font-weight: bold;">if</span> <span style="color: #333333;">(</span>driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElements</span><span style="color: #333333;">(</span>elementLocator<span style="color: #333333;">).</span><span style="color: #0000cc;">size</span><span style="color: #333333;">()</span> <span style="color: #333333;">==</span> elementCount<span style="color: #333333;">)</span>
<span style="color: #008800; font-weight: bold;">break</span><span style="color: #333333;">;</span>
<span style="color: #888888;">// fetch the latest elements count</span>
elementCount <span style="color: #333333;">=</span> driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElements</span><span style="color: #333333;">(</span>elementLocator<span style="color: #333333;">).</span><span style="color: #0000cc;">size</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div>
<div style="background-color: #fbfcff; box-sizing: border-box; color: #5f6f81; font-family: lato; font-size: 16px;">
<div class="syntaxhighlighter php" id="highlighter_768825" style="background-color: white; box-sizing: border-box; font-size: 1em; margin: 1em 0px; overflow-x: auto !important; overflow-y: hidden !important; overflow: auto hidden; position: relative; width: 809.984px;"></div></div></div><div class="CodeMirror-sizer" style="border-right: 30px solid transparent; box-sizing: content-box; margin-bottom: 0px; margin-left: 29px; min-height: 26px; min-width: 319px; padding-bottom: 0px; padding-right: 0px; position: relative;"><div style="box-sizing: border-box; position: relative; top: 0px;"><div class="CodeMirror-lines" style="box-sizing: border-box; cursor: text; min-height: 1px; padding: 4px 0px;"><div style="box-sizing: border-box; outline: none; position: relative;"><div class="CodeMirror-code" style="box-sizing: border-box; outline: none;"><div style="box-sizing: border-box; position: relative;"><pre style="-webkit-tap-highlight-color: transparent; background: transparent; border-radius: 0px; border: 0px solid rgb(204, 204, 204); box-sizing: border-box; color: inherit; font-variant-ligatures: contextual; line-height: inherit; overflow-wrap: normal; overflow: visible; padding: 0px 4px; position: relative; word-break: break-all; word-wrap: normal; z-index: 2;"><div style="font-family: Times; text-align: center; white-space: normal;">
<span style="color: #262626; font-family: georgia, serif;"><span style="font-size: 19px;">The Source Code for this topic is available on GitHub Repository, You can get it from this URL:-</span></span></div>
<div style="font-family: Times; text-align: center; white-space: normal;">
<span style="color: #262626; font-family: georgia, serif;"><span style="font-size: 19px;"><a href="https://github.com/patilshubham033/LazyLoading" target="">https://github.com/patilshubham033/LazyLoading</a></span></span></div>
</pre>
<pre style="-webkit-tap-highlight-color: transparent; background: transparent; border-radius: 0px; border: 0px solid rgb(204, 204, 204); box-sizing: border-box; color: inherit; font-variant-ligatures: contextual; line-height: inherit; overflow-wrap: normal; overflow: visible; padding: 0px 4px; position: relative; word-break: break-all; word-wrap: normal; z-index: 2;"><span style="font-size: large;">If You like my post please like & Follow the blog, And get upcoming interesting topics.</span></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #0326cc}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #4e9072}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #777777}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3933ff}
span.s1 {color: #931a68}
span.s2 {color: #0326cc}
span.s3 {color: #000000}
span.s4 {color: #3933ff}
span.s5 {text-decoration: underline}
span.s6 {color: #7e504f}
span.Apple-tab-span {white-space:pre}
</style>
</div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.comtag:blogger.com,1999:blog-8281255614362562168.post-78745614880406666932018-03-10T23:26:00.001+05:302018-03-11T17:17:15.115+05:30ListBox Handling Techniques<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="page" title="Page 63">
<div class="layoutArea">
<div class="column">
<span style="font-family: "corbel";">ListBox Handling Techniques</span><br />
<span style="font-family: "corbel";"><br /></span>
<span style="font-family: "corbel";">In this post, we'll learn how to handle listbox/DropDown list.</span><br />
<span style="font-family: "corbel";"><br /></span>
<span style="font-family: "corbel";">To handle the listbox, we use Select class of selenium. It should be imported from the following
packages: </span><span style="font-family: "corbel"; font-weight: 700;">import org.openqa.selenium.suport.ui.Select
</span><br />
<span style="font-family: "corbel"; font-weight: 700;">Select </span><span style="font-family: "corbel";">class has parameterized constructor (single arg constructor) it takes an argument type
</span><span style="font-family: "corbel"; font-weight: 700;">WebElement </span><span style="font-family: "corbel";">(address of the listbox). In order to select the required option present in the listbox we can
</span><br />
<span style="font-family: "corbel";">use any one the following method </span><span style="font-family: "corbel"; font-weight: 700;">of Select </span><span style="font-family: "corbel";">class.
</span><br />
<ol style="list-style-type: decimal;">
<li style="font-family: corbel;">
<span style="font-family: "corbel"; font-weight: 700;">selectByVisibleText(str</span><span style="font-family: "corbel";">) > takes string argument
</span><br />
</li>
<li style="font-family: corbel;">
<span style="font-family: "corbel"; font-weight: 700;">selectByIndex(int) </span><span style="font-family: "corbel";">> takes integer argument
</span><br />
</li>
<li style="font-family: corbel;">
<span style="font-family: "corbel"; font-weight: 700;">selectByValue(str) </span><span style="font-family: "corbel";">> takes string argument
</span><br />
</li>
</ol>
<span style="font-family: "corbel";">If the specified option is duplicate in will select first matching option(in dropdown list) and if
the specified option is not present(text, value or index), we get </span><span style="font-family: "corbel"; font-style: italic; font-weight: 700;">NoSuchElementException.
</span><br />
<span style="font-family: "corbel"; font-weight: 700;">Select </span><span style="font-family: "corbel";">class can also be used to handle mulitselect listbox. If the specified option is duplicate
in mutliselect listbox, it selects all the matching option.
</span><br />
<span style="font-family: "corbel";">In </span><span style="font-family: "corbel"; font-style: italic; font-weight: 700;">Select </span><span style="font-family: "corbel";">class we also have the following 4 methods. This can be used on Multiselect listbox
</span><br />
<span style="font-family: "corbel"; font-weight: 700;"><br /></span>
<br />
<ol style="text-align: left;">
<li>deselectByVisibleText(str) </li>
<li>deselectByIndex(int)</li>
<li>deselectByValue(str)</li>
<li>deselectAll()</li>
</ol>
<span style="font-size: large;"><b>Type Of listbox:-</b></span><br />
<span style="font-size: large;"><b><br /></b></span></div>
</div>
</div>
<b>Single Select Listbox:-</b><br />
The below is the sample html code,<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8RWXbdoThp90Ffo_RhAb56bEzqIskxvGEKSqNLp9OP70ItziSWwii3RUc15FBkawB8fnVBJg4Ah5KJRu051ufHcJj_bprDYJ_vKOuUkPHZsufGeTof3dzWlPD_5FPo800xSSqHMluays/s1600/Screen+Shot+2018-03-09+at+12.24.09+AM.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" data-original-height="502" data-original-width="344" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8RWXbdoThp90Ffo_RhAb56bEzqIskxvGEKSqNLp9OP70ItziSWwii3RUc15FBkawB8fnVBJg4Ah5KJRu051ufHcJj_bprDYJ_vKOuUkPHZsufGeTof3dzWlPD_5FPo800xSSqHMluays/s320/Screen+Shot+2018-03-09+at+12.24.09+AM.png" width="219" /></a><br />
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;"><html></span><span style="color: black; font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;"> <body></span><span style="color: black; font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;">
<Select name=“Country”></span><span style="color: black; font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;">
<option value=“USD”>United States</options></span><span style="color: black; font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;">
<option value=“GBU”>United Kingdom</options></span><span style="color: black; font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;">
<option value=“CAD”>Canada</options></span><span style="color: black; font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;">
<option value=“BZL”>Brazil</options></span><span style="color: black; font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;">
<option value=“AUD”>Australia</option></span><span style="color: black; font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;">
</Select></span><span style="color: black; font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;"> </body></span><span style="color: black; font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false"
DefSemiHidden="false" DefQFormat="false" DefPriority="99"
LatentStyleCount="382">
<w:LsdException Locked="false" Priority="0" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 9"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="header"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footer"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index heading"/>
<w:LsdException Locked="false" Priority="35" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of figures"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope return"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="line number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="page number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of authorities"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="macro"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="toa heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 5"/>
<w:LsdException Locked="false" Priority="10" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Closing"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Signature"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="true"
UnhideWhenUsed="true" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Message Header"/>
<w:LsdException Locked="false" Priority="11" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Salutation"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Date"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Block Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Hyperlink"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="FollowedHyperlink"/>
<w:LsdException Locked="false" Priority="22" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Document Map"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Plain Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="E-mail Signature"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Top of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Bottom of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal (Web)"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Acronym"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Cite"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Code"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Definition"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Keyboard"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Preformatted"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Sample"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Typewriter"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Variable"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Table"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation subject"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="No List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Contemporary"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Elegant"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Professional"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Balloon Text"/>
<w:LsdException Locked="false" Priority="39" Name="Table Grid"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Theme"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 9"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" QFormat="true"
Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" QFormat="true"
Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" QFormat="true"
Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" QFormat="true"
Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" QFormat="true"
Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" QFormat="true"
Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" SemiHidden="true"
UnhideWhenUsed="true" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/>
<w:LsdException Locked="false" Priority="41" Name="Plain Table 1"/>
<w:LsdException Locked="false" Priority="42" Name="Plain Table 2"/>
<w:LsdException Locked="false" Priority="43" Name="Plain Table 3"/>
<w:LsdException Locked="false" Priority="44" Name="Plain Table 4"/>
<w:LsdException Locked="false" Priority="45" Name="Plain Table 5"/>
<w:LsdException Locked="false" Priority="40" Name="Grid Table Light"/>
<w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="46" Name="List Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Mention"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Smart Hyperlink"/>
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:1;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536870145 1073786111 1 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<!--StartFragment-->
<!--EndFragment--><br />
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;"> </html></span><span style="color: black; font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;"><br /></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;"><br /></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;"><br /></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "times"; font-size: small;"><b>Multi-Select Listbox:-</b></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "times new roman" , serif; font-size: 11.0pt;"><span style="font-family: "times"; font-size: small;">The below is the sample html code,</span></span>
<span style="color: black; font-family: "times new roman" , serif; font-size: 11.0pt;"><br /></span></div>
<div class="MsoNormal">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXcW0inhNwsrwd7uvJdIMrjZMTYeXh55G004EMh2qTwvGHfFVtOn-oxZ_9k3ttBifSpn38meoVFOJZPERVACZjeY-cuD0qAxsACF5gi3B6LWsre2Yx6s6uPAOYKIFF4vEG3hpiLP0WUZY/s1600/Screen+Shot+2018-03-10+at+11.24.38+PM.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" data-original-height="528" data-original-width="262" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXcW0inhNwsrwd7uvJdIMrjZMTYeXh55G004EMh2qTwvGHfFVtOn-oxZ_9k3ttBifSpn38meoVFOJZPERVACZjeY-cuD0qAxsACF5gi3B6LWsre2Yx6s6uPAOYKIFF4vEG3hpiLP0WUZY/s320/Screen+Shot+2018-03-10+at+11.24.38+PM.png" width="157" /></a>
<br />
<div class="MsoNormal">
<span style="font-family: "times new roman" , serif;"><html></span></div>
<div class="MsoNormal">
<span style="font-family: "times new roman" , serif;"> <body></span></div>
<div class="MsoNormal">
<span style="font-family: "times new roman" , serif;"> <Select name=“Country” multiple size = "10"></span></div>
<div class="MsoNormal">
<span style="font-family: "times new roman" , serif;"> <option value=“USD”>United States</options></span></div>
<div class="MsoNormal">
<span style="font-family: "times new roman" , serif;"> <option value=“GBU”>United Kingdom</options></span></div>
<div class="MsoNormal">
<span style="font-family: "times new roman" , serif;"> <option value=“CAD”>Canada</options></span></div>
<div class="MsoNormal">
<span style="font-family: "times new roman" , serif;"> <option value=“BZL”>Brazil</options></span></div>
<div class="MsoNormal">
<span style="font-family: "times new roman" , serif;"> <option value=“AUD”>Australia</option></span></div>
<div class="MsoNormal">
<span style="font-family: "times new roman" , serif;"> </Select></span></div>
<div class="MsoNormal">
<span style="font-family: "times new roman" , serif;"> </body></span></div>
<div class="MsoNormal">
<span style="font-family: "times new roman" , serif;"> </html></span><br />
<div style="font-size: medium;">
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><br /></span></div>
<div style="font-size: medium;">
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><br /></span></div>
<div style="font-size: medium;">
<br /></div>
<div style="font-size: medium;">
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><br /></span></div>
<span style="font-family: "times new roman" , serif;"><b>The syntax for select class is as follows:-</b></span><br />
<div style="font-size: medium;">
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><br /></span></div>
<div style="font-size: medium;">
<span style="font-family: "times new roman" , serif; font-size: 11pt;">
</span></div>
<div class="page" title="Page 63">
<div class="layoutArea">
<div class="column">
<span style="font-family: "consolas";">Select select</span><span style="color: #6a3e3e; font-family: "consolas";"> </span><span style="font-family: "consolas";">= </span><span style="color: #7f0055; font-family: "consolas"; font-weight: 700;">new </span><span style="font-family: "consolas";">Select(</span><span style="color: #6a3e3e; font-family: "consolas";">WebElement</span><span style="font-family: "consolas";">);<br />
</span><br />
<span style="font-family: "consolas";">select</span><span style="font-family: "consolas";">.</span><span style="font-family: "consolas";">selectByVisibleText(<span style="color: #2a00ff;">StringArgument</span></span><span style="font-family: "consolas";">); </span></div>
</div>
</div>
<div style="font-size: medium;">
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><br /></span></div>
<h3 style="text-align: left;">
<span style="font-size: large;"><span style="font-family: "times new roman" , serif;">Method Name :-</span><span style="font-family: "times new roman" , serif;"> selectByVisibleText</span></span></h3>
<span style="font-family: "times new roman" , serif;"><b>Syntax:-</b> select.selectByVisibleText("Text");</span><br />
<span style="font-family: "times new roman" , serif;"><b>Purpose:</b> It is very easy to choose or select an option given under any dropdown and multiple selection boxes with selectByVisibleText method. It takes a parameter of String which is one of the Value of Select element and it returns nothing.</span><br />
<table class="crayon-table" style="background-attachment: initial !important; background-clip: initial !important; background-color: #fdfdfd; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; color: #303030; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;"><tbody style="margin: 0px; padding: 0px;">
<tr class="crayon-row" style="background: 0px center; border: none !important; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background: rgb(238, 238, 238) !important; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 1px solid rgb(0, 128, 0) !important; border-top: 0px; color: rgb(0, 0, 0) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background: 0px center; border: 0px; font-size: 11px !important; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;">
<div class="crayon-num" data-line="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
</div>
</div>
</td><td class="crayon-code" style="background: 0px center; border: 0px; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important; width: 728px;"><div class="crayon-pre" style="background: none !important; border: none !important; color: black; font-size: 11px !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;">
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select s</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">elect</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-o" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">=</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-r" style="color: rgb(128 , 0 , 128); font-family: inherit; font-size: inherit; font-weight: bold; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">new</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">driver</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">findElement</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">By</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.name</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Country"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">selectByVisibleText</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Canada"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
</div>
</td></tr>
</tbody></table>
<h3 style="text-align: left;">
<span style="font-family: "times new roman" , serif; font-size: large;"><br />Method Name :- selectByIndex</span></h3>
<span style="font-family: "times new roman" , serif;"><b>Syntax:-</b> select.selectByIndex(index);</span><br />
<span style="font-family: "times new roman" , serif;"><b>Purpose:</b>- It is almost the same as selectByVisibleText but the only difference here is that we provide the index number of the option here rather the option text.It takes a parameter of int which is the index value of Select element and it returns nothing.</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<table class="crayon-table" style="background-attachment: initial !important; background-clip: initial !important; background-color: #fdfdfd; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; color: #303030; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;"><tbody style="margin: 0px; padding: 0px;">
<tr class="crayon-row" style="background: 0px center; border: none !important; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background: rgb(238, 238, 238) !important; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 1px solid rgb(0, 128, 0) !important; border-top: 0px; color: rgb(0, 0, 0) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background: 0px center; border: 0px; font-size: 11px !important; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;">
<div class="crayon-num" data-line="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
<br /></div>
</div>
</td><td class="crayon-code" style="background: 0px center; border: 0px; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important; width: 728px;"><div class="crayon-pre" style="background: none !important; border: none !important; font-size: 11px !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;">
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select s</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">elect</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-o" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">=</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-r" style="color: rgb(128 , 0 , 128); font-family: inherit; font-size: inherit; font-weight: bold; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">new</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">driver</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">findElement</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">By</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.name</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Country"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-v" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">select</span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">selectByIndex</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"><span style="color: black;">(</span><span style="color: #0828fb;">2</span></span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
</div>
</td></tr>
</tbody></table>
<h3 style="text-align: left;">
<span style="font-family: "times new roman" , serif; font-size: large;"><br />Method Name :- selectByValue</span></h3>
<span style="font-family: "times new roman" , serif;"><b>Syntax:-</b> select.selectByValue("Value");</span><br />
<span style="font-family: "times new roman" , serif;"><b>Purpose:</b>- It is again the same what we have discussed earlier, the only difference in this is that it ask for the value of the option rather the option text or index. It takes a parameter of String which is on of the value of Select element and it returns nothing.</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<table class="crayon-table" style="background-attachment: initial !important; background-clip: initial !important; background-color: #fdfdfd; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; color: #303030; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;"><tbody style="margin: 0px; padding: 0px;">
<tr class="crayon-row" style="background: 0px center; border: none !important; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background: rgb(238, 238, 238) !important; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 1px solid rgb(0, 128, 0) !important; border-top: 0px; color: rgb(0, 0, 0) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background: 0px center; border: 0px; font-size: 11px !important; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;">
<div class="crayon-num" data-line="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
<br /></div>
</div>
</td><td class="crayon-code" style="background: 0px center; border: 0px; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important; width: 728px;"><div class="crayon-pre" style="background: none !important; border: none !important; font-size: 11px !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;">
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select s</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">elect</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-o" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">=</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-r" style="color: rgb(128 , 0 , 128); font-family: inherit; font-size: inherit; font-weight: bold; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">new</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">driver</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">findElement</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">By</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.name</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Country"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-v" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">select</span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">selectByValue</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"><span style="color: black;">(</span><span style="color: #0828fb;">"CAD"</span></span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
</div>
</td></tr>
</tbody></table>
<h3 style="text-align: left;">
<span style="font-family: "times new roman" , serif; font-size: large;"><br />Method Name :- deselectByVisibleText</span></h3>
<h3>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><div style="font-family: Times; font-size: medium; font-weight: 400;">
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Syntax:-</b> select.deselectByVisibleText("Text");</span></div>
<div style="font-family: Times; font-size: medium; font-weight: 400;">
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Purpose:</b> To Deselect all options that display text matching the given argument.</span></div>
<table class="crayon-table" style="background-attachment: initial !important; background-clip: initial !important; background-color: #fdfdfd; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; color: #303030; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;"><tbody style="margin: 0px; padding: 0px;">
<tr class="crayon-row" style="background: 0px center; border: none !important; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background: rgb(238, 238, 238) !important; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 1px solid rgb(0, 128, 0) !important; border-top: 0px; color: rgb(0, 0, 0) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background: 0px center; border: 0px; font-size: 11px !important; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;">
<div class="crayon-num" data-line="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
</div>
</div>
</td><td class="crayon-code" style="background: 0px center; border: 0px; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important; width: 728px;"><div class="crayon-pre" style="background: none !important; border: none !important; color: black; font-size: 11px !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;">
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select s</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">elect</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-o" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">=</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-r" style="color: rgb(128 , 0 , 128); font-family: inherit; font-size: inherit; font-weight: bold; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">new</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">driver</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">findElement</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">By</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.name</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Country"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.de</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">selectByVisibleText</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Canada"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
</div>
</td></tr>
</tbody></table>
</span></h3>
<h3 style="text-align: left;">
<span style="font-family: "times new roman" , serif; font-size: large;">Method Name :- deselectByIndex</span></h3>
<h3>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><div style="font-family: Times; font-size: medium; font-weight: 400;">
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Syntax:-</b> select.deselectByIndex(index);</span></div>
<div style="font-family: Times; font-size: medium;">
<span style="font-family: "times new roman" , serif;"><b>Purpose:</b>-<span style="font-weight: 400;"> </span><span style="font-weight: normal;">To Deselect the option at the given index. The user has to provide the value of index.</span></span></div>
</span></h3>
<table class="crayon-table" style="background-attachment: initial !important; background-clip: initial !important; background-color: #fdfdfd; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; color: #303030; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;"><tbody style="margin: 0px; padding: 0px;">
<tr class="crayon-row" style="background: 0px center; border: none !important; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background: rgb(238, 238, 238) !important; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 1px solid rgb(0, 128, 0) !important; border-top: 0px; color: rgb(0, 0, 0) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background: 0px center; border: 0px; font-size: 11px !important; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;">
<div class="crayon-num" data-line="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
<br /></div>
</div>
</td><td class="crayon-code" style="background: 0px center; border: 0px; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important; width: 728px;"><div class="crayon-pre" style="background: none !important; border: none !important; font-size: 11px !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;">
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select s</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">elect</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-o" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">=</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-r" style="color: rgb(128 , 0 , 128); font-family: inherit; font-size: inherit; font-weight: bold; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">new</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">driver</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">findElement</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">By</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.name</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Country"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.de</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">selectByValue</span><span class="crayon-sy" style="color: #303030; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"><span style="color: black;">(</span><span style="color: #0828fb;">2</span></span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
</div>
</td></tr>
</tbody></table>
<h3 style="text-align: left;">
<span style="font-family: "times new roman" , serif; font-size: large;"><br />Method Name :- deselectByValue</span></h3>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Syntax:-</b> select.deselectByValue("Value");</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Purpose:</b>- To Deselect all options that have a value matching the given argument.</span><br />
<table class="crayon-table" style="background-attachment: initial !important; background-clip: initial !important; background-color: #fdfdfd; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; color: #303030; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;"><tbody style="margin: 0px; padding: 0px;">
<tr class="crayon-row" style="background: 0px center; border: none !important; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background: rgb(238, 238, 238) !important; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 1px solid rgb(0, 128, 0) !important; border-top: 0px; color: rgb(0, 0, 0) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background: 0px center; border: 0px; font-size: 11px !important; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;">
<div class="crayon-num" data-line="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
<br /></div>
</div>
</td><td class="crayon-code" style="background: 0px center; border: 0px; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important; width: 728px;"><div class="crayon-pre" style="background: none !important; border: none !important; font-size: 11px !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;">
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select s</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">elect</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-o" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">=</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-r" style="color: rgb(128 , 0 , 128); font-family: inherit; font-size: inherit; font-weight: bold; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">new</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">driver</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">findElement</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">By</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.name</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Country"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-v" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">select</span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.de</span><span class="crayon-e" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">selectByValue</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"><span style="color: black;">(</span><span style="color: #0828fb;">"CAD"</span></span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
</div>
</td></tr>
</tbody></table>
<div style="font-size: medium;">
<br /></div>
<h3>
<span style="font-family: "times new roman" , serif; font-size: large;">Method Name :- deselectAll</span></h3>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Syntax:-</b> select.deselectAll();</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Purpose:</b>- To Clear all selected entries. This works only when the SELECT supports multiple selections. It throws NotImplemented Error if the "SELECT" does not support multiple selections. In select it mandatory to have an attribute multiple="multiple" Please check for the below example.</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<table class="crayon-table" style="background-attachment: initial !important; background-clip: initial !important; background-color: #fdfdfd; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; color: #303030; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;"><tbody style="margin: 0px; padding: 0px;">
<tr class="crayon-row" style="background: 0px center; border: none !important; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background: rgb(238, 238, 238) !important; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 1px solid rgb(0, 128, 0) !important; border-top: 0px; color: rgb(0, 0, 0) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background: 0px center; border: 0px; font-size: 11px !important; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;">
<div class="crayon-num" data-line="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
<br /></div>
</div>
</td><td class="crayon-code" style="background: 0px center; border: 0px; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important; width: 728px;"><div class="crayon-pre" style="background: none !important; border: none !important; font-size: 11px !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;">
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select s</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">elect</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-o" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">=</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-r" style="color: rgb(128 , 0 , 128); font-family: inherit; font-size: inherit; font-weight: bold; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">new</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">driver</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">findElement</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">By</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.name</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Country"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-v" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">select</span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.deselectAll();</span></div>
</div>
</td></tr>
</tbody></table>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><br /></span>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><br /></span>
<br />
<h3>
<span style="font-family: "times new roman" , serif; font-size: large;">Method Name :- isMultiple</span></h3>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Syntax:-</b> select.isMultiple();</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Returns</b>:- Boolean</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Purpose:</b>- This tells whether the SELECT element support multiple selecting options at the same time or not. This accepts nothing but returns boolean value(true/false).</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<table class="crayon-table" style="background-attachment: initial !important; background-clip: initial !important; background-color: #fdfdfd; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; color: #303030; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;"><tbody style="margin: 0px; padding: 0px;">
<tr class="crayon-row" style="background: 0px center; border: none !important; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background: rgb(238, 238, 238) !important; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 1px solid rgb(0, 128, 0) !important; border-top: 0px; color: rgb(0, 0, 0) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background: 0px center; border: 0px; font-size: 11px !important; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;">
<div class="crayon-num" data-line="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
<br /></div>
</div>
</td><td class="crayon-code" style="background: 0px center; border: 0px; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important; width: 728px;"><div class="crayon-pre" style="background: none !important; border: none !important; font-size: 11px !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;">
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select s</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">elect</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-o" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">=</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-r" style="color: rgb(128 , 0 , 128); font-family: inherit; font-size: inherit; font-weight: bold; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">new</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">driver</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">findElement</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">By</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.name</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Country"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-v" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Boolean flag = select</span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.isMultiple();</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">System.out.println(flag);</span></div>
</div>
</td></tr>
</tbody></table>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><br /></span>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><br /></span>
<br />
<h3>
<span style="font-family: "times new roman" , serif; font-size: large;">Method Name :- getOptions</span></h3>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Syntax:-</b> select.isMultiple();</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Returns</b>:- List</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Purpose:</b>- Returns all the option elements displayed in this select tag (dropdown list)</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<table class="crayon-table" style="background-attachment: initial !important; background-clip: initial !important; background-color: #fdfdfd; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; color: #303030; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;"><tbody style="margin: 0px; padding: 0px;">
<tr class="crayon-row" style="background: 0px center; border: none !important; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background: rgb(238, 238, 238) !important; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 1px solid rgb(0, 128, 0) !important; border-top: 0px; color: rgb(0, 0, 0) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background: 0px center; border: 0px; font-size: 11px !important; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;">
<div class="crayon-num" data-line="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
<br /></div>
</div>
</td><td class="crayon-code" style="background: 0px center; border: 0px; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important; width: 728px;"><div class="crayon-pre" style="background: none !important; border: none !important; font-size: 11px !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;">
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select s</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">elect</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-o" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">=</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-r" style="color: rgb(128 , 0 , 128); font-family: inherit; font-size: inherit; font-weight: bold; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">new</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">driver</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">findElement</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">By</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.name</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Country"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-v" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">List<WebElement> allOptions = select</span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.getOptions();</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">for(WebElement webElement: allOptions)</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">{</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> System.out.println(webElement.getText());</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">}</span></div>
</div>
</td></tr>
</tbody></table>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><br /></span>
<br />
<h3>
<span style="font-family: "times new roman" , serif; font-size: large;">Method Name :- getAllSelectedOptions</span></h3>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Syntax:-</b> select.getAllSelectedOptions();</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Returns</b>:- List</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Purpose:</b>- It will return all the option elements that are selected in the select tag.</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<table class="crayon-table" style="background-attachment: initial !important; background-clip: initial !important; background-color: #fdfdfd; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; color: #303030; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;"><tbody style="margin: 0px; padding: 0px;">
<tr class="crayon-row" style="background: 0px center; border: none !important; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background: rgb(238, 238, 238) !important; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 1px solid rgb(0, 128, 0) !important; border-top: 0px; color: rgb(0, 0, 0) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background: 0px center; border: 0px; font-size: 11px !important; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;">
<div class="crayon-num" data-line="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
<br /></div>
</div>
</td><td class="crayon-code" style="background: 0px center; border: 0px; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important; width: 728px;"><div class="crayon-pre" style="background: none !important; border: none !important; font-size: 11px !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;">
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select s</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">elect</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-o" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">=</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-r" style="color: rgb(128 , 0 , 128); font-family: inherit; font-size: inherit; font-weight: bold; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">new</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">driver</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">findElement</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">By</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.name</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Country"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-v" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">List<WebElement> allSelectedOptions = select</span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.getAllSelectedOptions();</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">for(WebElement webElement: allSelectedOptions)</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">{</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> System.out.println(webElement.getText());</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">}</span></div>
</div>
</td></tr>
</tbody></table>
<h3>
<span style="font-family: "times new roman" , serif; font-size: large;"><br />Method Name :- getFirstSelectedOption</span></h3>
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Syntax:-</b> select.getFirstSelectedOption();</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Returns</b>:- WebElement</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"><b>Purpose:</b>- It will return the first selected option in this select tag (or the currently selected option in a normal select)</span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<table class="crayon-table" style="background-attachment: initial !important; background-clip: initial !important; background-color: #fdfdfd; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; color: #303030; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;"><tbody style="margin: 0px; padding: 0px;">
<tr class="crayon-row" style="background: 0px center; border: none !important; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background: rgb(238, 238, 238) !important; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 1px solid rgb(0, 128, 0) !important; border-top: 0px; color: rgb(0, 0, 0) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background: 0px center; border: 0px; font-size: 11px !important; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;">
<div class="crayon-num" data-line="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
<br /></div>
</div>
</td><td class="crayon-code" style="background: 0px center; border: 0px; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; vertical-align: top !important; width: 728px;"><div class="crayon-pre" style="background: none !important; border: none !important; font-size: 11px !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;">
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-1" style="background: 0px center; border: 0px; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select s</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">elect</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-o" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">=</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-r" style="color: rgb(128 , 0 , 128); font-family: inherit; font-size: inherit; font-weight: bold; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">new</span><span class="crayon-h" style="color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;"> </span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">Select</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">driver</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.</span><span class="crayon-e" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">findElement</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-v" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">By</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.name</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">(</span><span class="crayon-s" style="color: rgb(8 , 40 , 251); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">"Country"</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">)</span><span class="crayon-sy" style="font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">;</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-v" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">WebElement firstSelectedOption = select</span><span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">.getFirstSelectedOption();</span></div>
<div class="crayon-line" id="crayon-5aa41b70e9304504704072-3" style="background: 0px center; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-sy" style="color: black; font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;">System.out.println(firstSelectedOption.getText());</span></div>
</div>
</td></tr>
</tbody></table>
<br />
<br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span><br />
<span style="font-family: "times new roman" , serif; font-size: 11pt;"></span></div>
</div>
<!--EndFragment-->
<!--EndFragment-->
</div>
</div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.comtag:blogger.com,1999:blog-8281255614362562168.post-18931200215247477122018-03-07T23:51:00.002+05:302018-03-08T23:55:50.393+05:302 dimensional Array in java<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; box-sizing: border-box; text-align: justify;">
<span style="box-sizing: border-box; color: #373b41; font-family: georgia, serif;">2 dimensional Array in java</span><br />
<span style="box-sizing: border-box; color: #373b41; font-family: georgia, serif;"><br /></span>
<div style="color: #373b41; font-family: lusitana, serif; font-size: 16px;">
<span style="box-sizing: border-box; font-family: "georgia" , serif;">In this post, we will mainly deal with 2D array.</span></div>
</div>
<div style="background-color: white; box-sizing: border-box; text-align: justify;">
<br />
<span style="box-sizing: border-box;"></span>
<span style="box-sizing: border-box;">
</span>
<br />
<div style="color: black; text-align: left;">
<span style="box-sizing: border-box;"><span style="font-family: "times" , "times new roman" , serif; font-size: large;">What is 2D Array?</span></span></div>
<span style="box-sizing: border-box;">
</span>
<br />
<div style="color: black; font-size: medium; text-align: left;">
</div>
<span style="box-sizing: border-box;">
</span>
<br />
<ul style="color: #373b41; text-align: left;"><span style="box-sizing: border-box;">
<li>An array of arrays is known as 2D array.</li>
<li>The two dimensional (2D) array in java is also known as matrix.</li>
<li>A matrix can be represented as a table of rows and columns.</li>
</span></ul>
<span style="box-sizing: border-box;">
</span>
<br />
<div style="text-align: left;">
<div style="color: #373b41; text-align: left;">
<span style="box-sizing: border-box;"><span style="font-family: "times" , "times new roman" , serif; font-size: large;">How to declare 2D Array?</span></span></div>
<div style="color: #373b41; text-align: left;">
<span style="box-sizing: border-box;"><span style="font-family: "times" , "times new roman" , serif; font-size: large;"><br /></span></span></div>
<div style="color: #373b41; text-align: justify;">
</div>
<div style="text-align: justify;">
<span style="box-sizing: border-box;"><span style="color: #373b41; font-family: "monaco";">The syntax is as follows:-</span></span></div>
<div style="color: #373b41; text-align: justify;">
<span style="box-sizing: border-box;"><br /></span></div>
<div style="color: #373b41; text-align: justify;">
<span style="box-sizing: border-box;"><span style="font-family: "monaco";">Declaration of 2D Array:-</span></span></div>
<div style="color: #373b41; text-align: justify;">
<span style="box-sizing: border-box;"><br /></span></div>
<div style="color: #373b41; text-align: justify;">
<div>
<span style="box-sizing: border-box;"><br /></span></div>
<pre style="background: rgb(246, 246, 246); border: 1px solid rgb(234, 234, 236); color: #252830; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 15px; margin-bottom: 1.8em; margin-top: -0.8em; overflow: auto; padding: 15px 18.5px; text-align: start; word-spacing: 3px;"><span style="box-sizing: border-box;">DataType[][] arraryName = new DataType[rowCount][columnCount];</span></pre>
</div>
<div style="color: #373b41; text-align: justify;">
<span style="box-sizing: border-box;"><span style="font-family: "monaco";">String[][] </span><span class="s2" style="font-family: "monaco";">twoDArray</span><span style="font-family: "monaco";"> = </span><span class="s1" style="font-family: "monaco";">new</span><span style="font-family: "monaco";"> String[3][2];</span></span></div>
<div style="color: #373b41; text-align: justify;">
<span style="box-sizing: border-box;"><span style="font-family: "monaco";"><br /></span></span></div>
<div style="color: #373b41; text-align: justify;">
<div class="separator" style="clear: both; color: black; text-align: left;">
<span style="box-sizing: border-box;">Here, <b>twoDArray</b> is a two-dimensional (2d) array. The array can hold maximum of 6 elements of type <b>String</b>.</span></div>
<div>
</div>
</div>
<div style="color: #373b41; text-align: justify;">
<span style="box-sizing: border-box;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="box-sizing: border-box;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimMMdDOepekJ6Q8bbaJLrZ8RwFdGeDQnekf-xfeOIwZcNimBGqpOOK1JSX1LDtkg43Uh0iBlEd2JyQbY3Wz4YBxMMEvKV75L23MGRkJ77M8Kv94iSXbPuW6FnQZufcBqL5uoucV87bID4/s1600/2D+Array.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" data-original-height="273" data-original-width="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimMMdDOepekJ6Q8bbaJLrZ8RwFdGeDQnekf-xfeOIwZcNimBGqpOOK1JSX1LDtkg43Uh0iBlEd2JyQbY3Wz4YBxMMEvKV75L23MGRkJ77M8Kv94iSXbPuW6FnQZufcBqL5uoucV87bID4/s1600/2D+Array.jpg" /></a></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="box-sizing: border-box;"><br /></span></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="box-sizing: border-box;"><span style="color: #252830; font-size: 16px; word-spacing: 3px;"><span style="font-family: "times" , "times new roman" , serif;">Remember, Java uses zero-based indexing, that is, indexing of arrays in Java starts with 0 and not 1.</span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="box-sizing: border-box;"><br /></span></div>
<div style="color: #373b41; text-align: justify;">
<span style="box-sizing: border-box;"><span style="font-family: "monaco";">Initialization of 2D Array:-</span></span></div>
<div style="color: #373b41; text-align: justify;">
<div>
<span style="box-sizing: border-box;"><br /></span></div>
<div>
<div>
<span style="box-sizing: border-box;"><br /></span></div>
<pre style="background: rgb(246, 246, 246); border: 1px solid rgb(234, 234, 236); color: #252830; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 15px; margin-bottom: 1.8em; margin-top: -0.8em; overflow: auto; padding: 15px 18.5px; text-align: start; word-spacing: 3px;"><span style="box-sizing: border-box;">arrayName<span style="white-space: normal;">[rowCount][columnCount] = value;</span></span></pre>
</div>
<div>
<span style="box-sizing: border-box;"><span style="font-family: "monaco";">twoDArray[0][0] = "Value";</span></span></div>
</div>
</div>
<span style="box-sizing: border-box;">
</span>
<br />
<div style="text-align: left;">
<br /></div>
<span style="box-sizing: border-box;">
</span>
<div style="text-align: left;">
<span style="box-sizing: border-box;"><span style="color: #373b41; font-family: "monaco"; text-align: justify;">Lets have a look at the following java program</span></span></div>
<span style="box-sizing: border-box;">
<div style="text-align: left;">
<span style="color: #373b41;"><br /></span></div>
<div style="color: #373b41;">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px}
span.s1 {color: #931a68}
span.s2 {color: #7e504f}
span.s3 {color: #3933ff}
span.s4 {color: #0326cc}
span.Apple-tab-span {white-space:pre}
</style>
<br />
<div class="p1">
<div class="p1">
<span class="s1">public</span> <span class="s1">class</span> TwoDArray<span class="Apple-converted-space"> </span></div>
<div class="p1">
{</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="s1"> public</span> <span class="s1">static</span> <span class="s1">void</span> main(String[] <span class="s2">args</span>)<span class="Apple-converted-space"> </span></div>
<div class="p1">
<span class="Apple-tab-span"></span> {</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> String[][] <span class="s2">arr</span> = <span class="s1">new</span> String[3][2];</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s2"> arr</span>[0][0] = <span class="s3">"UserName_1"</span>;</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s2"> arr</span>[0][1] = <span class="s3">"Password_1"</span>;</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s2"> arr</span>[1][0] = <span class="s3">"UserName_2"</span>;</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s2"> arr</span>[1][1] = <span class="s3">"Password_2"</span>;</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s2"> arr</span>[2][0] = <span class="s3">"UserName_3"</span>;</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s2"> arr</span>[2][1] = <span class="s3">"Password_3"</span>;</div>
<div class="p2">
<br /></div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s1"> for</span> (<span class="s1">int</span> <span class="s2">i</span> = 0; <span class="s2">i</span> < 3; <span class="s2">i</span>++)<br />
{</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s1"> for</span> (<span class="s1">int</span> <span class="s2">j</span> = 0; <span class="s2">j</span> < 2; <span class="s2">j</span>++)<br />
{</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> System.<span class="s4">out</span>.println(<span class="s3">"Value for arr["</span>+<span class="s2">i</span>+<span class="s3">"]["</span>+<span class="s2">j</span>+<span class="s3">"] :- "</span>+ <span class="s2">arr</span>[<span class="s2">i</span>][<span class="s2">j</span>]);</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> }</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> }</div>
<div class="p1">
<span class="Apple-tab-span"></span> }</div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px}
span.s1 {color: #931a68}
span.s2 {color: #7e504f}
span.s3 {color: #3933ff}
span.s4 {color: #0326cc}
span.Apple-tab-span {white-space:pre}
</style>
<br />
<div class="p1">
}</div>
</div>
<div class="p1">
<br />
<br />
<br /></div>
</div>
<div style="color: #373b41;">
OutPut:- </div>
<div style="color: #373b41;">
<br /></div>
<div style="color: #373b41;">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
</style>
<br />
<div class="p1">
Value for arr[0][0] :- UserName_1</div>
<div class="p1">
Value for arr[0][1] :- Password_1</div>
<div class="p1">
Value for arr[1][0] :- UserName_2</div>
<div class="p1">
Value for arr[1][1] :- Password_2</div>
<div class="p1">
Value for arr[2][0] :- UserName_3</div>
<div class="p1">
Value for arr[2][1] :- Password_3<br />
<br />
<br />
<span style="font-size: large;">When we are using 2D Array in Selenium?</span><br />
<span style="font-family: "times" , "times new roman" , serif; font-size: large;"><br /></span>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:DoNotShowRevisions/>
<w:DoNotPrintRevisions/>
<w:DoNotShowMarkup/>
<w:DoNotShowComments/>
<w:DoNotShowInsertionsAndDeletions/>
<w:DoNotShowPropertyChanges/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false"
DefSemiHidden="false" DefQFormat="false" DefPriority="99"
LatentStyleCount="382">
<w:LsdException Locked="false" Priority="0" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 9"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="header"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footer"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index heading"/>
<w:LsdException Locked="false" Priority="35" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of figures"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope return"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="line number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="page number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of authorities"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="macro"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="toa heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 5"/>
<w:LsdException Locked="false" Priority="10" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Closing"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Signature"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="true"
UnhideWhenUsed="true" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Message Header"/>
<w:LsdException Locked="false" Priority="11" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Salutation"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Date"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Block Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Hyperlink"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="FollowedHyperlink"/>
<w:LsdException Locked="false" Priority="22" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Document Map"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Plain Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="E-mail Signature"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Top of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Bottom of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal (Web)"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Acronym"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Cite"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Code"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Definition"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Keyboard"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Preformatted"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Sample"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Typewriter"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Variable"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Table"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation subject"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="No List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Contemporary"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Elegant"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Professional"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Balloon Text"/>
<w:LsdException Locked="false" Priority="39" Name="Table Grid"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Theme"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 9"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" QFormat="true"
Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" QFormat="true"
Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" QFormat="true"
Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" QFormat="true"
Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" QFormat="true"
Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" QFormat="true"
Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" SemiHidden="true"
UnhideWhenUsed="true" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/>
<w:LsdException Locked="false" Priority="41" Name="Plain Table 1"/>
<w:LsdException Locked="false" Priority="42" Name="Plain Table 2"/>
<w:LsdException Locked="false" Priority="43" Name="Plain Table 3"/>
<w:LsdException Locked="false" Priority="44" Name="Plain Table 4"/>
<w:LsdException Locked="false" Priority="45" Name="Plain Table 5"/>
<w:LsdException Locked="false" Priority="40" Name="Grid Table Light"/>
<w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="46" Name="List Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Mention"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Smart Hyperlink"/>
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:1;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536870145 1073786111 1 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<!--StartFragment-->
<!--EndFragment--><br />
<div class="MsoNormal">
<span style="font-size: 11.0pt;"><span style="font-family: "times" , "times new roman" , serif;">We use 2D array to store
data as a matrix or in the form of row and column. In order to perform Data driven testing, we use @DataProvider Annotation. We may use 2D Array to supply Test data sets to Test Method.</span></span><br />
<span style="font-size: 11.0pt;"><span style="font-family: "times" , "times new roman" , serif;"><br /></span></span>
<span style="font-size: 11.0pt;"><span style="font-family: "times" , "times new roman" , serif;"><br /></span></span></div>
<div class="MsoNormal">
<span style="font-size: 11.0pt;"><span style="font-family: "times" , "times new roman" , serif;">Refer below program to understand how exactly 2D Array has implemented in selenium to provide a data from excel file:-</span></span></div>
<div class="MsoNormal">
<span style="font-size: 11.0pt;"><span style="font-family: "times" , "times new roman" , serif;"><br /></span></span></div>
<div class="p1">
<span class="s1">public</span> String[][] dataProvider()<br />
{</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> FileInputStream <span class="s2">file</span> = <span class="s3">new</span><span class="s4"> FileInputStream(</span><span class="s5">TESTDATA_SHEET_PATH</span><span class="s4">)</span>;</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> Workbook <span class="s2">book</span> = <span class="s4">WorkbookFactory.create(</span><span class="s6">file</span><span class="s4">)</span>;</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> Sheet <span class="s2">sheet</span> = <span class="s2">book</span>.getSheet(<span class="s7">"SheetName"</span>);</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> String[][] <span class="s2">data</span> = <span class="s1">new</span> String[<span class="s2">sheet</span>.getLastRowNum()][<span class="s2">sheet</span>.getRow(0).getLastCellNum()];</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s1"> for</span> (<span class="s1">int</span> <span class="s2">i</span> = 0; <span class="s2">i</span> < <span class="s2">sheet</span>.getLastRowNum(); <span class="s2">i</span>++)<br />
{</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s1"> for</span> (<span class="s1">int</span> <span class="s2">k</span> = 0; <span class="s2">k</span> < <span class="s2">sheet</span>.getRow(0).getLastCellNum(); <span class="s2">k</span>++)<br />
{</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s2"> data</span>[<span class="s2">i</span>][<span class="s2">k</span>] = <span class="s2">sheet</span>.getRow(<span class="s2">i</span> + 1).getCell(<span class="s2">k</span>).toString();</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> System.<span class="s8">out</span>.println(<span class="s2">data</span>[<span class="s2">i</span>][<span class="s2">k</span>]);</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> }</div>
<div class="p1">
<span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> }</div>
<div class="p2">
<br /></div>
<div class="p3">
<span class="s9"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span> return<span class="s9"> </span><span class="s2">data</span><span class="s9">;</span></div>
<div class="MsoNormal">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #931a68}
span.s1 {color: #931a68}
span.s2 {color: #7e504f}
span.s3 {text-decoration: underline ; color: #931a68}
span.s4 {text-decoration: underline}
span.s5 {text-decoration: underline ; color: #0326cc}
span.s6 {text-decoration: underline ; color: #7e504f}
span.s7 {color: #3933ff}
span.s8 {color: #0326cc}
span.s9 {color: #000000}
span.Apple-tab-span {white-space:pre}
</style>
</div>
<div class="p1">
<span class="Apple-tab-span"> </span>}</div>
</div>
</div>
<div style="color: #373b41;">
<br /></div>
</span></div>
</div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.comtag:blogger.com,1999:blog-8281255614362562168.post-73821343520655355322018-03-06T21:45:00.000+05:302018-03-08T23:36:32.092+05:30Quick list of Core Java topics for Selenium Webdriver<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="background-color: white; font-family: "georgia" , serif; font-size: 16px;">Hi everyone welcomes back to Selenium tutorial. In this post, we will mainly deal with what Java topics for Selenium we need to cover.</span></div>
<div style="text-align: justify;">
<span style="background-color: white; font-family: "georgia" , serif; font-size: 16px;"><br /></span></div>
<div style="background-color: white; border: 0px; font-family: Georgia, serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 20px; padding: 0px; text-align: justify; vertical-align: baseline;">
I frequently get this questions on my blog.</div>
<div style="background-color: white; border: 0px; font-family: Georgia, serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 20px; padding: 0px; text-align: justify; vertical-align: baseline;">
<span style="border: 0px; color: red; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Examples-</span></div>
<div style="background-color: white; border: 0px; font-family: Georgia, serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 20px; padding: 0px; text-align: justify; vertical-align: baseline;">
1- What concepts of java I need to learn to use selenium webdriver?</div>
<div style="background-color: white; border: 0px; font-family: Georgia, serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 20px; padding: 0px; text-align: justify; vertical-align: baseline;">
2- What is the list of topics I have to cover to understand Selenium better?</div>
<div style="background-color: white; border: 0px; font-family: Georgia, serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 20px; padding: 0px; text-align: justify; vertical-align: baseline;">
3- I know only core Java basic does Selenium requires advance Java too?</div>
<div style="background-color: white; border: 0px; font-family: Georgia, serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 20px; padding: 0px; text-align: justify; vertical-align: baseline;">
4- I am completely new to programming. Can I still learn Selenium?</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibE_53kG0e_APqGfVfaGK7CeqS9j7Z8ckJzKfURqNyhHtNezPgZCyOXLIYDLV3aPURFr4sq6meObSEsuusqhRyBIxHwTfXnWxhT8324N1Q5bUzEuLrMRcRWFRnXxPeWJEPctRGwAnRXxc/s1600/Java-topics-for-Selenium.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="308" data-original-width="582" height="211" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibE_53kG0e_APqGfVfaGK7CeqS9j7Z8ckJzKfURqNyhHtNezPgZCyOXLIYDLV3aPURFr4sq6meObSEsuusqhRyBIxHwTfXnWxhT8324N1Q5bUzEuLrMRcRWFRnXxPeWJEPctRGwAnRXxc/s400/Java-topics-for-Selenium.png" width="400" /></a></div>
<div style="background-color: white; border: 0px; font-family: Georgia, serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 20px; padding: 0px; text-align: justify; vertical-align: baseline;">
<span style="border: 0px; color: red; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">The answer</strong></span> to all above questions is below list of Java topics for Selenium.</div>
<div style="background-color: white; border: 0px; font-family: Georgia, serif; font-size: 16px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 20px; padding: 0px; text-align: justify; vertical-align: baseline;">
If you can cover topics then you can complete Selenium in very less time and with less effort.</div>
<h2 style="background-color: white; border: 0px; color: #252525; font-family: "Roboto Slab"; font-size: 24px; font-stretch: inherit; font-variant-numeric: inherit; line-height: 1.4; margin: 0px 0px 12px; padding: 0px; text-align: justify; vertical-align: baseline;">
Complete list of Java topics for Selenium</h2>
<div class="single_post" style="background-color: white; border: 0px; float: left; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 45px; overflow: hidden; padding: 0px; vertical-align: baseline; width: 729.922px;">
<div class="post-single-content box mark-links entry-content" style="border: 0px; clear: both; float: left; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline; width: 729.922px;">
<div class=" clear" style="border: 0px; clear: both; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 20px; padding: 0px; text-align: justify; vertical-align: baseline;">
I would recommend below site for Java-related topics. This site has a lot of examples which covers almost everything in details.</div>
<div style="border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 20px; padding: 0px; text-align: justify; vertical-align: baseline;">
<span style="color: red;">Java tutorials for newcomer.</span></div>
<div style="border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 20px; padding: 0px; vertical-align: baseline;">
</div>
<ol style="text-align: left;">
<li style="text-align: justify;">OOPS Concept (You should know basic concept of Oops like Class , Object, Inheritance, Polymorphism, Abstraction)</li>
<li style="text-align: justify;">List of keywords, Interface in Java.</li>
<li style="text-align: justify;">Handle data types and usage of same.</li>
<li style="text-align: justify;">Control statements.</li>
<li style="text-align: justify;">Looping statements.</li>
<li style="text-align: justify;">String class, Wrapper classes, Array (2 D arrays)</li>
<li style="text-align: justify;">Exception handling.</li>
<li style="text-align: justify;">Collection framework (List, Set)</li>
<li style="text-align: justify;">File handling.</li>
<li style="text-align: justify;">Packages and Eclipse usages.</li>
<li style="text-align: justify;">Passing parameters to methods and returning the values.</li>
</ol>
<div>
<div style="text-align: justify;">
<b>Points to be considered before starting Selenium Webdriver.</b></div>
<div>
<ul style="text-align: left;">
<li style="text-align: justify;">Must complete list of Java topics for Selenium then only move to next step.</li>
<li style="text-align: justify;">Do not jump to another level start with Basic of Selenium and once you are done then start with Advance Selenium.</li>
<li style="text-align: justify;">It is not one day task you have to practice it regularly because practice makes perfect.</li>
<li style="text-align: justify;">Do not stick to one application for practice. Take some dynamic applications as well Like FlipKart and Amazon etc.</li>
</ul>
</div>
<div style="text-align: justify;">
Nowadays almost every company is moving towards Test Automation and Selenium is on top of the list.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
That’s all I have for this post. See you in the next post.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Best of luck 🙂 Happy learning and Happy coding.<br />
<br />
<span style="color: white;">Quick list of Core Java topics for Selenium Webdriver</span></div>
</div>
</div>
</div>
</div>
</div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.comtag:blogger.com,1999:blog-8281255614362562168.post-51453044972892422802018-03-06T14:43:00.020+05:302021-04-02T22:20:59.767+05:30XPath Writing & Techniques<div dir="ltr" style="text-align: left;" trbidi="on"><b>Hello learners,</b></div><div dir="ltr" style="text-align: left;" trbidi="on"><br /></div><div dir="ltr" style="text-align: left;" trbidi="on">As we have seen in the last blog what is xpath and its types. So, in this post, we’ll learn about different techniques to create xPath using predefined methods and operators.</div><div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<div class="MsoNormal" style="line-height: 99%; margin-bottom: 0in; margin-left: 53.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 0in 53pt; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<b><span style="font-family: "corbel"; mso-bidi-font-family: Corbel;">xpath </span></b><span style="font-family: "corbel"; mso-bidi-font-family: Corbel;">is the path of the element in HTML tree.</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 99%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 17.2pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in; margin-left: 53.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 0in 53pt; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span face=""consolas" , sans-serif" style="mso-bidi-font-family: Consolas;"><html></span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 6.35pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in; margin-left: 89.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 0in 89pt; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span face=""consolas" , sans-serif" style="mso-bidi-font-family: Consolas;"><body></span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 6.4pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in; margin-left: 132.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 0in 132pt; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span face=""consolas" , sans-serif" style="mso-bidi-font-family: Consolas;">FN<input
type="text"></span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 6.35pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in; margin-left: 132.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 0in 132pt; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span face=""consolas" , sans-serif" style="mso-bidi-font-family: Consolas;">LN<input
type="text"></span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 6.6pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in; margin-left: 77.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 0in 77pt; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span face=""consolas" , sans-serif" style="mso-bidi-font-family: Consolas;"></body></span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 6.35pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in; margin-left: 53.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 0in 53pt; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span face=""consolas" , sans-serif" style="mso-bidi-font-family: Consolas;"></html></span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 18.55pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: 132%; margin-bottom: 0in; margin-left: 53.0pt; margin-right: 7.0pt; margin-top: 0in; margin: 0in 7pt 0in 53pt; mso-layout-grid-align: none; mso-pagination: none; punctuation-wrap: simple; text-autospace: none;">
<span style="font-family: "corbel"; mso-bidi-font-family: Corbel;">In the above sample web
page we can’t use cssSelector because it is same as first name field. In this
case we can use ‘xpath’.</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 132%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 14.65pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: 132%; margin-bottom: 0in; margin-left: 53.0pt; margin-right: 44.0pt; margin-top: 0in; margin: 0in 44pt 0in 53pt; mso-layout-grid-align: none; mso-pagination: none; punctuation-wrap: simple; text-autospace: none;">
<span style="font-family: "corbel"; mso-bidi-font-family: Corbel;">We write the xpath
expression using /(forward slash). The first forward slash represents beginning
of the tree (root).</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 132%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 14.95pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false"
DefSemiHidden="false" DefQFormat="false" DefPriority="99"
LatentStyleCount="382">
<w:LsdException Locked="false" Priority="0" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 9"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="header"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footer"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index heading"/>
<w:LsdException Locked="false" Priority="35" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of figures"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope return"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="line number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="page number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of authorities"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="macro"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="toa heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 5"/>
<w:LsdException Locked="false" Priority="10" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Closing"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Signature"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="true"
UnhideWhenUsed="true" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Message Header"/>
<w:LsdException Locked="false" Priority="11" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Salutation"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Date"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Block Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Hyperlink"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="FollowedHyperlink"/>
<w:LsdException Locked="false" Priority="22" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Document Map"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Plain Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="E-mail Signature"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Top of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Bottom of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal (Web)"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Acronym"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Cite"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Code"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Definition"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Keyboard"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Preformatted"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Sample"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Typewriter"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Variable"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Table"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation subject"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="No List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Contemporary"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Elegant"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Professional"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Balloon Text"/>
<w:LsdException Locked="false" Priority="39" Name="Table Grid"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Theme"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 9"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" QFormat="true"
Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" QFormat="true"
Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" QFormat="true"
Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" QFormat="true"
Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" QFormat="true"
Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" QFormat="true"
Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" SemiHidden="true"
UnhideWhenUsed="true" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/>
<w:LsdException Locked="false" Priority="41" Name="Plain Table 1"/>
<w:LsdException Locked="false" Priority="42" Name="Plain Table 2"/>
<w:LsdException Locked="false" Priority="43" Name="Plain Table 3"/>
<w:LsdException Locked="false" Priority="44" Name="Plain Table 4"/>
<w:LsdException Locked="false" Priority="45" Name="Plain Table 5"/>
<w:LsdException Locked="false" Priority="40" Name="Grid Table Light"/>
<w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="46" Name="List Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Mention"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Smart Hyperlink"/>
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-536870145 1107305727 0 0 415 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536870145 1073786111 1 0 415 0;}
@font-face
{font-family:Corbel;
panose-1:2 11 5 3 2 2 4 2 2 4;
mso-font-charset:0;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073783883 0 0 415 0;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:fixed;
mso-font-signature:-520092929 1073806591 9 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
</style>
<![endif]-->
<!--StartFragment-->
<!--EndFragment--><br />
<div class="MsoNormal" style="line-height: 130%; margin-bottom: 0in; margin-left: 53.0pt; margin-right: 19.0pt; margin-top: 0in; margin: 0in 19pt 0in 53pt; mso-layout-grid-align: none; mso-pagination: none; punctuation-wrap: simple; text-autospace: none;">
<span style="font-family: "corbel"; mso-bidi-font-family: Corbel;">After every forward
slash we should specify tag of immediate child element. We can also use index
which starts from 1.</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 130%;"><o:p></o:p></span></div>
<br /><br /></div><div style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVl224PZ2YTAUHGG_x16vHqUsUNgmLPgZbmnM5bSzyLtvNmzMvtUlgZL7WjRFRUvYK8ddRKeQN7ksK2g0gjcgJSUwUcDMRVs5lotQ9TgGFXg-AoEgvqtmykqCRstMfl1q32N0G7_de5xJ6/s1366/Capture4.PNG"><img alt="XPath Writing & Techniques" border="0" data-original-height="767" data-original-width="1366" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVl224PZ2YTAUHGG_x16vHqUsUNgmLPgZbmnM5bSzyLtvNmzMvtUlgZL7WjRFRUvYK8ddRKeQN7ksK2g0gjcgJSUwUcDMRVs5lotQ9TgGFXg-AoEgvqtmykqCRstMfl1q32N0G7_de5xJ6/w640-h360/Capture4.PNG" title="XPath Writing & Techniques" width="640" /></a></div><br /><div dir="ltr" style="text-align: left;" trbidi="on"><br /></div><div dir="ltr" style="text-align: left;" trbidi="on">
Few techniques for xPath creation:<br />
<ol style="text-align: left;">
<li>starts-with() </li>
<li>contains() </li>
<li>text() </li>
<li>following </li>
<li>following-sibling </li>
<li>child xPath </li>
<li>Indexing </li>
<li>AND Operator </li>
<li>OR Operator</li>
</ol>
<h3 style="background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: Alegreya, serif; font-size: 1.5em; line-height: 1; margin: 50px 0px 30px; padding: 0px;">
1. starts-with()</h3>
<div style="text-align: left;">
<div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;">
<span face=""exo" , sans-serif" style="color: #444444;"><span style="font-size: 18px;">This method is used to find an element with specific starting text in its value.</span></span><br />
<span face=""exo" , sans-serif" style="color: #444444;"><span style="font-size: 18px;">In this example, we are selecting <b>"An Overview on Locators"</b> post title by <b>using starts-with()</b>.</span></span><br />
<div style="border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;">
<span face=""exo" , sans-serif" style="color: #444444;"><span style="font-size: 18px;">The </span></span><span face=""exo" , sans-serif" style="color: #444444; font-size: 18px;">syntax is as follows:</span></div>
<div style="border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;">
<span face=""exo" , sans-serif" style="color: #444444;"><span style="font-size: 18px;">.//*[starts-with(@AttributeName,'Value')] <b>OR</b></span></span></div>
<div style="border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;">
<span style="color: #444444; font-size: 18px;">.//tagName[starts-with(@AttributeName,'Value')]</span><br />
<span style="color: #444444; font-size: 18px;"><br /></span>
<span face=""exo" , sans-serif" style="color: #444444;"><span style="font-size: 18px;"><b>Xpath = //*[starts-with(@class,'post-title')]</b></span></span></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhD4tDIKw9Gb_Eow25ufmFiYrmgLJl_NndCLTePNl1oi48b5hTaZtg1B9G_l882fA-cxcGBU0laDIQb8b6WaOfRULaop6tP9YtHoX5EJjb1s9Is3w9cUp7bGOp9Ic68u9O0JgVPK-BIAR4/s1600/Screen+Shot+2018-03-05+at+11.45.07+AM.png"><img border="0" data-original-height="1130" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhD4tDIKw9Gb_Eow25ufmFiYrmgLJl_NndCLTePNl1oi48b5hTaZtg1B9G_l882fA-cxcGBU0laDIQb8b6WaOfRULaop6tP9YtHoX5EJjb1s9Is3w9cUp7bGOp9Ic68u9O0JgVPK-BIAR4/s16000/Screen+Shot+2018-03-05+at+11.45.07+AM.png" /></a></div>
<div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;">
<br />
<span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"></span>
<span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b>2. contains()</b></span></div>
<div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;">
<span style="color: #444444;"></span></div>
<div>
<span style="color: #444444;"><span style="font-size: 18px;">This method is used to find an element with specific text in its value. </span></span><br />
<span style="color: #444444;"><span style="font-size: 18px;"><span face=""exo" , sans-serif" style="background-color: white;">In this example we are selecting </span><b style="background-color: white; font-family: exo, sans-serif;">"An Overview on Locators"</b><span face=""exo" , sans-serif" style="background-color: white;"> post title by </span><b style="background-color: white; font-family: exo, sans-serif;">using contains()</b><span face=""exo" , sans-serif" style="background-color: white;">.</span></span></span></div>
<div>
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span>
<br />
<div>
<span style="color: #444444;"><span style="font-size: 18px;">The syntax is as follows: </span></span></div>
<div>
<span style="color: #444444;"><span style="font-size: 18px;">.//*[contains(@AttributeName,'Value')] </span><b style="font-size: 18px;">OR</b></span></div>
<span style="color: #444444;"><span style="font-size: 18px;"></span></span><br />
<div>
<span style="color: #444444;"><span style="font-size: 18px;">.//tagName[contains(@AttributeName,'Value')]</span></span><br />
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span><span style="color: #444444;"><span style="font-size: 18px;"><b style="background-color: white; font-family: exo, sans-serif;">Xpath = //*[contains(@class,'post-title')]</b></span></span></div>
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="color: #444444;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWfLP-pnr3ZS3zsDVUIrP2hSxqzgpyH1SPjSQPxCVM6fFgbcexS4kdivXHMvPaNRY9KSL_J7zw3Lnv-mbzssUAHRroAbq2r560KvC5IF5uXH1tTt9n3c04DTvsXteKcJyzrET-NMdiqwM/s1600/Screen+Shot+2018-03-05+at+11.49.03+AM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1128" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWfLP-pnr3ZS3zsDVUIrP2hSxqzgpyH1SPjSQPxCVM6fFgbcexS4kdivXHMvPaNRY9KSL_J7zw3Lnv-mbzssUAHRroAbq2r560KvC5IF5uXH1tTt9n3c04DTvsXteKcJyzrET-NMdiqwM/s16000/Screen+Shot+2018-03-05+at+11.49.03+AM.png" /></a></span></div>
<span style="color: #444444;"><span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b><br /></b></span></span>
<br />
<div>
<br /></div>
<span style="color: #444444;"><span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"></span></span>
<span style="color: #444444;"><span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b>3. text()</b></span></span></div>
<br />
<span style="color: #444444; font-size: 18px;">This method is used to find exact text of an element. </span><span style="color: #444444;"></span><br />
<div>
<span style="background-color: white; color: #444444; font-family: "times"; font-size: 18px;">In this example we are selecting "An Overview on Locators" post title by using <b>text</b></span><b style="background-color: white; color: #444444; font-family: times; font-size: 18px;">()</b><span style="background-color: white; color: #444444; font-family: "times"; font-size: 18px;">.</span><br />
<div>
<span style="color: #444444;"><span style="font-size: 18px;">The syntax is as follows: </span></span></div>
<div>
<span style="color: #444444;"><span style="font-size: 18px;">.//*[text()='Value'] </span><b style="font-size: 18px;">OR</b></span></div>
<span style="background-color: white; color: #444444; font-family: "times"; font-size: 18px;"></span><br />
<div>
<span style="color: #444444;"><span style="font-size: 18px;">.//tagName[text()='Value']</span></span><br />
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span><span style="color: #444444;"><span style="font-size: 18px;"><b style="background-color: white; font-family: exo, sans-serif;">Xpath = //*[text()=' An Overview on Locators']</b></span></span></div>
</div>
<div>
<span style="color: #444444;"><span style="font-size: 18px;"><b style="background-color: white; font-family: exo, sans-serif;"><br /></b></span></span></div>
<div>
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span></div>
<div>
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsKzQSaR5HnzIYJRic0_jByfvtg7odCiPu2Uzwkt6vE43iRPeUmuorI1XL6AkSP6FtR_MuHPqyhOOdENZN8g2LXOXDsM6xNBBQNtkV9RHxi5tKhxHbJIUu6M9uXWlfVYM09wNREY5yGq0/s1600/Screen+Shot+2018-03-05+at+1.01.22+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1008" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsKzQSaR5HnzIYJRic0_jByfvtg7odCiPu2Uzwkt6vE43iRPeUmuorI1XL6AkSP6FtR_MuHPqyhOOdENZN8g2LXOXDsM6xNBBQNtkV9RHxi5tKhxHbJIUu6M9uXWlfVYM09wNREY5yGq0/s16000/Screen+Shot+2018-03-05+at+1.01.22+PM.png" /></a></div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div>
<div>
<br /></div>
</div>
<div>
<span style="background-color: white; color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b>4. following</b></span><br />
<span style="background-color: white; color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b><br /></b></span>
<br />
<div>
<span style="color: #444444;"><span style="font-size: 18px;">This method is used to find all defined elements from the current node. </span></span><br />
<span style="color: #444444;"><span style="font-size: 18px;"><span face=""exo" , sans-serif" style="background-color: white;">In this example we are selecting <b>all defined nodes</b> from currently selected node "<b>By.tagName</b>" by using <b>following</b>.</span></span></span><br />
<div>
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span>
<span style="color: #444444;"><span style="font-size: 18px;">The syntax is as follows: </span></span></div>
<br />
<div>
<span style="color: #444444;"><span style="font-size: 18px;">.//*[CurrentNodeElement]//following::ElementToBeFound</span></span></div>
</div>
<div>
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb0-Z0hadDe850ktdrs0QAr0GB_ZaiU2nNnG_PpCqjLxiZbS3fvYgPgGZARgLvNQ6s6nmUuBox4lBdpAEx0dd9Ls16ebi4vealUfdr8pLmWwHplzdRhBgGiFED8RnwLm6MvzL1tnS8vDI/s1600/Screen+Shot+2018-03-05+at+12.52.47+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1126" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb0-Z0hadDe850ktdrs0QAr0GB_ZaiU2nNnG_PpCqjLxiZbS3fvYgPgGZARgLvNQ6s6nmUuBox4lBdpAEx0dd9Ls16ebi4vealUfdr8pLmWwHplzdRhBgGiFED8RnwLm6MvzL1tnS8vDI/s16000/Screen+Shot+2018-03-05+at+12.52.47+PM.png" /></a></div>
<br />
<div>
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span>
<span style="color: #444444;"><span style="font-size: 18px;"><b style="background-color: white; font-family: exo, sans-serif;">Xpath = //li[text()='By.tagName']//following::li</b></span></span></div>
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<span style="color: #444444;"><span style="font-size: 18px;">In this example, <b>text()='By.tagName'</b> represents CurrentNodeElement and <b>li</b> tag is our ElementToBeFound.</span></span><br />
<br />
<span style="background-color: white; color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b><br /></b></span>
<span style="background-color: white; color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b>5. following-sibling</b></span><br />
<span style="background-color: white; color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b><br /></b></span>
<br />
<div>
<span style="color: #444444;"><span style="font-size: 18px;">This method is used to find siblings of the currently selected element.</span></span><br />
<div>
<span style="color: #444444;"><span style="font-size: 18px;"><span face=""exo" , sans-serif" style="background-color: white;">In this example we are selecting <b>siblings</b> from currently selected "</span></span></span><b style="background-color: white; color: #444444; font-family: exo, sans-serif; font-size: 18px;">An Overview on Locators" </b><span face=""exo" , sans-serif" style="background-color: white; color: #444444; font-size: 18px;">post title</span><span face=""exo" , sans-serif" style="background-color: white; color: #444444; font-size: 18px;"> by using</span><span face=""exo" , sans-serif" style="background-color: white; color: #444444; font-size: 18px;"> </span><b style="color: #444444; font-family: exo, sans-serif; font-size: 18px;">following<span style="background-color: white;">-sibling.</span></b></div>
<div>
</div>
</div>
<div>
<br />
<div>
<span style="color: #444444;"><span style="font-size: 18px;">The syntax is as follows: </span></span></div>
<div>
<span style="color: #444444;"><span style="font-size: 18px;">.//*[SelectedElement]//following-sibling::ElementToBeFound</span></span><br />
<br /></div>
</div>
<div>
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyFgxIEa6QiC_teEIDtdMZ9RNtAlxyNduuiufUfAhYkhFkdMUslH1g4maj_y0nL0mJvNlBI2LP6taMnR_mx-EjQHQ3yRyzdsOuDkXnPFkXdIdLVVkn6UIEUwEBYRQXegIFNLL8GdTIagc/s1600/Screen+Shot+2018-03-05+at+2.50.03+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1100" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyFgxIEa6QiC_teEIDtdMZ9RNtAlxyNduuiufUfAhYkhFkdMUslH1g4maj_y0nL0mJvNlBI2LP6taMnR_mx-EjQHQ3yRyzdsOuDkXnPFkXdIdLVVkn6UIEUwEBYRQXegIFNLL8GdTIagc/s16000/Screen+Shot+2018-03-05+at+2.50.03+PM.png" /></a></div>
<div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;">
<span style="color: #444444; font-family: "times"; font-size: 18px;"><b style="font-family: exo, sans-serif;"><b style="font-family: exo, sans-serif;"><br /></b></b></span>
<span style="color: #444444; font-family: "times"; font-size: 18px;"><b style="font-family: exo, sans-serif;"><b style="font-family: exo, sans-serif;">Xpath = //h3[@class='post-title entry-title']//following-sibling::div</b></b></span>
<span style="color: #444444; font-family: "times"; font-size: 18px;">In this example, </span><span style="color: #444444;"><span style="font-size: 18px;"><b>@class='post-title entry-title' </b>represents SelectedElement and <b>div</b></span></span><span style="color: #444444; font-family: "times"; font-size: 18px;"> tag is our ElementToBeFound.</span></div>
<h2 style="background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: alegreya, serif; font-size: 1.5em; line-height: 1; margin: 50px 0px 30px; padding: 0px; text-align: left;">
6. child</h2>
<div>
<span style="color: #444444;"><span style="font-size: 18px;">This method is used to find all child elements of the currently selected element.</span></span><br />
<span style="color: #444444;"><span style="font-size: 18px;"><span style="color: #444444; font-size: small;"><span style="font-size: 18px;"><span face=""exo" , sans-serif" style="background-color: white;">In this example we are selecting <b>child nodes</b> from available "<b>tabs</b>"</span></span></span><b style="background-color: white; font-family: exo, sans-serif;"> </b><span face=""exo" , sans-serif" style="background-color: white; color: #444444;"> by using</span><span face=""exo" , sans-serif" style="background-color: white; color: #444444;"> <b>child</b></span><b style="font-family: exo, sans-serif;"><span style="background-color: white;">.</span></b></span></span></div>
<div>
<br />
<div style="font-family: times;">
<span style="color: #444444;"><span style="font-size: 18px;">The syntax is as follows: </span></span></div>
<div style="font-family: times;">
<div style="background-color: white;">
<span style="color: #444444;"><span style="font-size: 18px;">.//*[SelectedElement]//child::ElementToBeFound</span></span></div>
<div>
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span></div>
</div>
</div>
<div>
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span></div>
<div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;">
<div class="separator" style="clear: both; color: #444444; font-family: "exo 2", sans-serif; font-size: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-qBhP-BH5ZXzcSBb4tbaH2umtbH4y_w6t8ETekqUxzTyQA4aW5qAYCKRprogAm7u8arrl0n6-D3ZxR2M-XWjR93LJUXauv_BgrEh4SSJk2RePk7HgH0N3X4Mg7irVT2n79itB6rMcPJo/s1600/Screen+Shot+2018-03-06+at+12.10.02+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1009" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-qBhP-BH5ZXzcSBb4tbaH2umtbH4y_w6t8ETekqUxzTyQA4aW5qAYCKRprogAm7u8arrl0n6-D3ZxR2M-XWjR93LJUXauv_BgrEh4SSJk2RePk7HgH0N3X4Mg7irVT2n79itB6rMcPJo/s16000/Screen+Shot+2018-03-06+at+12.10.02+PM.png" /></a></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<div style="color: black; font-family: Times; font-size: medium;">
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span></div>
<div style="color: black; font-family: Times; font-size: medium;">
<span style="color: #444444;"><span style="font-size: 18px;"><b style="font-family: exo, sans-serif;">Xpath = //ul[@class='tabs']//chils::li</b></span></span><br />
<span style="color: #444444;"><span style="font-size: 18px;"><br /></span></span></div>
</div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #444444; font-family: "times"; font-size: 18px;">In this example, </span><span style="color: #444444; font-family: "times"; font-size: small;"><span style="font-size: 18px;"><b>@class='tabs' </b>represents SelectedElement and <b>li</b></span></span><span style="color: #444444; font-family: "times"; font-size: 18px;"> tag is our ElementToBeFound.</span></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b><br /></b></span></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b>7. xPath Indexing</b></span></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<br /></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #444444; font-family: "times"; font-size: 18px;">When we have more than one matching elements on UI with respect to relative Xpath, this Xpath indexing is helpful.</span></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #444444; font-family: "times"; font-size: 18px;">Consider an example where you want to find an element that has ‘Lab’ word in it. So xPath for same would be .//*[contains(text(),’Lab’)] </span></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #444444; font-family: "times"; font-size: 18px;">When we find an element on UI with this xPath we get more than one matching node. In below case, we have nine matching node.</span></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #444444; font-family: "times"; font-size: 18px;"><br /></span></div>
<div class="separator" style="clear: both; color: #444444; font-family: "exo 2", sans-serif; font-size: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEo7X6DYXUGxecsH53lIDUgExEHds_HsjJF9SSqQo08a3WHmxd07I56yrcJ9QCdAAU6i9ejkKdFQfoPZW73FX1Aru8h5lFGWK-A2gkySq5iRRiDxyJmO69QpUl3CAP4vGH0kUiRSvGm1w/s1600/Screen+Shot+2018-03-06+at+12.15.03+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1095" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEo7X6DYXUGxecsH53lIDUgExEHds_HsjJF9SSqQo08a3WHmxd07I56yrcJ9QCdAAU6i9ejkKdFQfoPZW73FX1Aru8h5lFGWK-A2gkySq5iRRiDxyJmO69QpUl3CAP4vGH0kUiRSvGm1w/s16000/Screen+Shot+2018-03-06+at+12.15.03+PM.png" /></a></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #444444; font-family: "times"; font-size: 18px;"><br /></span></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #444444; font-family: "times"; font-size: 18px;">Now, we have to select text i.e. ‘My Automation Lab‘ but how can we do that ??</span></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #444444; font-family: "times"; font-size: 18px;">We need to index entire xPath and syntax for same is as follows: </span></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #444444; font-family: "times"; font-size: 18px;"><b>(Entire_xPath)[indexCounter]</b></span></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="color: #444444; font-family: "times"; font-size: 18px;">In this case, </span><span style="color: #444444; font-family: "times"; font-size: 18px;">.</span><span style="font-family: "times";">//*[contains(text(),’Lab’)] represents Entire_xPath and index counter will vary depending on number of matching nodes. So for us, counter will vary from one to nine.</span></div>
<div style="color: #444444; font-family: "exo 2", sans-serif; font-size: 18px;">
<span style="font-family: "times";"><br /></span></div>
<div class="separator" style="clear: both; color: #444444; font-family: "exo 2", sans-serif; font-size: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjARjMeltGGj8iSD0NhqeoCAKqcxv5twZYHnp2hxEXL87a8sMgeYYA9AAVqEvFeci4J9PJKDUt8BDAeUfJgTihKB29dFrzfucrseYcBUbz9XKGKywj9KS3mox5NK0E62G84ot1HPN97oNw/s1600/Screen+Shot+2018-03-06+at+12.19.10+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1097" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjARjMeltGGj8iSD0NhqeoCAKqcxv5twZYHnp2hxEXL87a8sMgeYYA9AAVqEvFeci4J9PJKDUt8BDAeUfJgTihKB29dFrzfucrseYcBUbz9XKGKywj9KS3mox5NK0E62G84ot1HPN97oNw/s16000/Screen+Shot+2018-03-06+at+12.19.10+PM.png" /></a></div>
<span style="color: #444444; font-family: "times";"><span style="font-size: 18px;"><br /></span></span>
<span style="color: #444444; font-family: "times";"><span style="font-size: 18px;">When index counter is updated to four, our desired element gets selected and this will be our final xPath to perform any operation on this element.</span></span><br />
<span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b><br /></b></span>
<span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b>8. AND operator</b></span><br />
<span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b><br /></b></span>
<span style="color: #444444; font-family: "times";"><span style="font-size: 18px;">This operator is used to find an element that’ll satisfy two or more than two conditions specified in xPath. The syntax is as follows for two conditions: </span></span><br />
<span style="color: #444444; font-family: "times";"><span style="font-size: 18px;">.//*[Condition1 AND Condition2]</span></span><br />
<span style="color: #444444; font-family: "times";"><span style="font-size: 18px;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDfECQqLzRrJ_CJ-HZ4yxO1i309AYOntCkkVZ3N4iaIsxWCmdfJoqqzS0aFhBnjjkGygGjBzliH61lbuGQddysegzeZYn_tO2LvL2REKsYbZ0Js-3VMY6BgnmfOV-F0xnuAnbIautmRxM/s1600/Screen+Shot+2018-03-06+at+12.45.41+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1097" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDfECQqLzRrJ_CJ-HZ4yxO1i309AYOntCkkVZ3N4iaIsxWCmdfJoqqzS0aFhBnjjkGygGjBzliH61lbuGQddysegzeZYn_tO2LvL2REKsYbZ0Js-3VMY6BgnmfOV-F0xnuAnbIautmRxM/s16000/Screen+Shot+2018-03-06+at+12.45.41+PM.png" /></a></div>
<span style="color: #444444; font-family: "times";"><span style="font-size: 18px;"><br /></span></span>
<span style="color: #444444; font-family: "times";"><span style="font-size: 18px;">In this example, </span></span><span style="color: #444444; font-family: "times"; font-size: 18px;">text()='Home'</span><span style="color: #444444; font-family: "times";"><span style="font-size: 18px;"> represents Condition1 and @href='http://www.myautomationlab.com/' </span></span><span style="color: #444444; font-family: "times"; font-size: 18px;">represents Condition2.</span><br />
<span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b><br /></b></span>
<span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b>9. OR operator</b></span><br />
<span style="color: #333333; font-family: "alegreya" , serif; font-size: 1.5em;"><b><br /></b></span>
<span style="color: #444444; font-family: "times";"><span style="font-size: 18px;">This operator is used to find an element that’ll consider either of any conditions. <br />The syntax is as follows for two conditions: </span></span><br />
<span style="color: #444444; font-family: "times";"><span style="font-size: 18px;">//*[Condition1 OR Condition2]</span></span><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqyyc4ajgs57-U2EO9QbN1OHd7tQlLi_oaQ5Sc_HPxMGqzxeMmTHUd34WeqRNjugspsGX0AqGXVra-N_YnOb3-TTLcWj7E5XiK6Mh9CNwnuGs5o1k58-qu4laPdcTy3nfD8AQBM7FWv_c/s1600/Screen+Shot+2018-03-06+at+2.39.42+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1096" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqyyc4ajgs57-U2EO9QbN1OHd7tQlLi_oaQ5Sc_HPxMGqzxeMmTHUd34WeqRNjugspsGX0AqGXVra-N_YnOb3-TTLcWj7E5XiK6Mh9CNwnuGs5o1k58-qu4laPdcTy3nfD8AQBM7FWv_c/s16000/Screen+Shot+2018-03-06+at+2.39.42+PM.png" /></a></div>
<span style="color: #444444; font-family: "times";"><span style="font-size: 18px;"><br /></span></span>
<span style="color: #444444; font-family: "times";"><span style="font-size: 18px;">In this example, we have two matching nodes as both the condition are satisfied. text()='Home' represents Condition1 and text()='About' represents Condition2.</span></span></div><div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;"><b style="color: #333333; font-family: alegreya, serif; font-size: 24px;">10. Ancestor</b></div><div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;"><span style="color: #333333; font-family: alegreya, serif; font-size: medium;">This operator is used to traverse up the DOM tree to find ancestors of an element. </span></div><div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;"><span style="color: #333333; font-family: alegreya, serif; font-size: medium;">The ancestor axis selects all ancestors element (parent, grandparent, great-grandparents, etc.) of the current node.</span></div><div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;"><span style="color: #444444; font-family: "times";"><span style="font-size: 18px;">The syntax is as follows: </span></span><br /><span style="color: #444444; font-family: "times";"><span style="font-size: 18px;">//*[SelectedElement]//ancestor::tagName</span></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyhiGvKGX-qEUsEvizZxoDxUSYVV0tAu4lj1g35_Z962poNrpH90GaMyDOCo0dcHuIyWWQnQ_oqsHDjeUvEaicaSvYssLm_nUHfwqN6yOoc3FLeZ9uAxLc0y8s6mNNNusSst883wHZyJY/s2048/Screenshot+2021-04-02+at+9.31.15+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1447" data-original-width="2048" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyhiGvKGX-qEUsEvizZxoDxUSYVV0tAu4lj1g35_Z962poNrpH90GaMyDOCo0dcHuIyWWQnQ_oqsHDjeUvEaicaSvYssLm_nUHfwqN6yOoc3FLeZ9uAxLc0y8s6mNNNusSst883wHZyJY/s16000/Screenshot+2021-04-02+at+9.31.15+PM.png" /></a></div><div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;"><span style="font-size: medium;">Here we are finding the ancestor of "About" tab</span></div><div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;"><b style="color: #333333; font-family: alegreya, serif; font-size: 24px;">11. P</b><span style="background-color: transparent; font-size: 24px;"><span style="color: #333333; font-family: alegreya, serif;"><b>receding</b></span></span></div><div style="background-color: white; border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;"><div style="border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;"><span style="color: #333333; font-family: alegreya, serif; font-size: medium;">This operator is used to s</span><span style="color: #333333; font-family: alegreya, serif; font-size: large;">elect all nodes that come before the current node.</span></div><div style="border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;"><span style="color: #444444; font-family: "times";"><span style="font-size: 18px;">The syntax is as follows: </span></span><br /><span style="color: #444444; font-family: "times";"><span style="font-size: 18px;">//*[SelectedElement]//</span></span><span style="color: #444444; font-family: times; font-size: 18px;">preceding::</span><span style="color: #444444; font-family: times; font-size: 18px;"> tagName</span></div><div style="border: 0px; box-sizing: border-box; line-height: 32.4px; margin-bottom: 1.1em; overflow-wrap: break-word; padding: 0px; word-wrap: break-word;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMvqK-gwdSLZlAmRxCxKqEgmxnp0bxlUSxgA3IpL9Dxwtnp7pNpM9P5Ns12Slid02YbAnYXXdw26Vq-SLE104dPcgebDU2LHfw3kNBxHKYLnnDNnz8iToX-AA9QGo2N83U3SHXVqs6J7k/s2048/Screenshot+2021-04-02+at+10.18.47+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1637" data-original-width="2048" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMvqK-gwdSLZlAmRxCxKqEgmxnp0bxlUSxgA3IpL9Dxwtnp7pNpM9P5Ns12Slid02YbAnYXXdw26Vq-SLE104dPcgebDU2LHfw3kNBxHKYLnnDNnz8iToX-AA9QGo2N83U3SHXVqs6J7k/s16000/Screenshot+2021-04-02+at+10.18.47+PM.png" /></a></div><span style="font-size: large;">Here we are finding the preceding elements of "Contact Us" tab, We are getting 2 matching nodes for "Home" & "About" tab.</span></div></div>
</div>
</div>
</div>
</div>
<div>
<span face=""exo" , sans-serif" style="color: #444444;"><span style="background-color: white; font-size: 18px;"></span></span>
<a href="https://www.myautomationlab.com/2018/03/an-overview-on-xpath.html" target="_blank">To know what is xpath and its types please refer to previous blog An Overview on xPath.</a></div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.com0tag:blogger.com,1999:blog-8281255614362562168.post-59341755545952481462018-03-05T11:34:00.002+05:302021-03-31T15:05:12.985+05:30An Overview on xPath<div dir="ltr" style="text-align: left;" trbidi="on"><span face="exo 2, sans-serif" style="background-color: white; color: #444444; font-size: 18px;"><b>Hello learners,</b></span></div><div dir="ltr" style="text-align: left;" trbidi="on"><span face="exo 2, sans-serif" style="background-color: white; color: #444444; font-size: 18px;"><b><br /></b></span></div><div dir="ltr" style="text-align: left;" trbidi="on"><span style="color: #444444;"><span style="background-color: white; font-size: 18px;">xPath is a very famous technique for locating elements on a webpage. Sometimes we can not find elements having complex selectors that time xpath is very useful for locating such elements. So, i</span></span><span style="background-color: white; color: #444444; font-size: 18px;">n this post, we’ll learn about what is xPath and types of xPaths. </span></div><div dir="ltr" style="text-align: left;" trbidi="on"><span style="background-color: white; color: #444444; font-size: 18px;"><br /></span></div><div dir="ltr" style="text-align: left;" trbidi="on"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgOl_WMFA4x4iykZGEdukzcOVhLg4wjT-JV0EkHchCqk_LsFJpjkflfp4uM8J8mWbVdaYio3u4ztq5p27fJL7Zhw-U6anszAPqahlW5XBbyIfV3nH5VCAv0ZJ7UBbdigVShyJYHpzm7GcR/s844/Capture.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="477" data-original-width="844" height="362" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgOl_WMFA4x4iykZGEdukzcOVhLg4wjT-JV0EkHchCqk_LsFJpjkflfp4uM8J8mWbVdaYio3u4ztq5p27fJL7Zhw-U6anszAPqahlW5XBbyIfV3nH5VCAv0ZJ7UBbdigVShyJYHpzm7GcR/w640-h362/Capture.PNG" width="640" /></a></div><br /></div><div dir="ltr" style="text-align: left;" trbidi="on"><span style="background-color: white; color: #444444; font-size: 18px;"><b><span style="font-family: "times" , "times new roman" , serif;"><br /></span></b></span></div><div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #444444; font-size: 18px;"><b><span style="font-family: "times" , "times new roman" , serif;">What is xPath?</span></b></span><br />
<ul style="text-align: left;">
<li>xPath stands for XML Path Language. </li>
<li>It is used to navigate in XML documents to find nodes using different types of locators.</li>
</ul>
<div>
<b>Different Types of xPath: </b></div>
<div>
xPath are categorized into two types: </div>
<div>
<ul style="text-align: left;">
<li>Absolute xPath and</li>
<li>Relative xPath</li>
</ul>
<div>
<b>Absolute xPath:</b></div>
</div>
<div>
<ul style="text-align: left;">
<li>It is the direct way to find the element, but the disadvantage of the absolute XPath is that if there are any changes made in the path of the element then that XPath gets failed.</li>
<li>The key characteristic of XPath is that it begins with the single forward slash(/) ,which means you can select the element from the root node.</li>
<li>Below is the example of an absolute xpath expression of the element shown in the below screen.</li>
</ul>
</div>
<span face=""exo 2" , sans-serif" style="background-color: white; color: #444444;">A basic example of Absolute xPath:</span><br />
<span face=""exo 2" , sans-serif" style="background-color: white; color: #444444;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhENll_anz6hnekiuAMFjXFTyd7yEFqdXL-sYEAqDvgNd1EAMD7YqlBbI_c1YJcF9Nh4IPg93uCgDJyqU5BX8wYV8cz8pF0R8QTV7T6eOn5GvCi7HzxP7zfZUNduecmblDcZjdLSo5Kuic/s1600/Screen+Shot+2018-03-04+at+12.13.04+AM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1000" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhENll_anz6hnekiuAMFjXFTyd7yEFqdXL-sYEAqDvgNd1EAMD7YqlBbI_c1YJcF9Nh4IPg93uCgDJyqU5BX8wYV8cz8pF0R8QTV7T6eOn5GvCi7HzxP7zfZUNduecmblDcZjdLSo5Kuic/s1600/Screen+Shot+2018-03-04+at+12.13.04+AM.png" /></a></div>
<span face=""exo 2" , sans-serif" style="background-color: white; color: #444444;"><br /></span>
<b>Relative xPath:</b><br />
<ul style="text-align: left;">
<li>For Relative Xpath the path starts from the middle of the HTML DOM structure. It starts with the double forward slash (//), which means it can search the element anywhere at the webpage.</li>
<li>You can starts from the middle of the HTML DOM structure and no need to write long xpath.</li>
<li>Below is the example of a relative XPath expression of the same element shown in the below screen. This is the common format used to find element through a relative XPath.</li>
</ul>
<div>
<span face=""exo 2" , sans-serif" style="background-color: white; color: #444444;">A basic example of Relative xPath:</span></div>
<div>
<span face=""exo 2" , sans-serif" style="background-color: white; color: #444444;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfm1k6n2QfG_KealSPzZdv8IoZb0PfekWqnnN99QiCpOtL-YDUaqIP9CQfTUPPgN1F4WK0L2J0F_SCluIh82DZnHMImzUNi296e4J96U0y6AF0QnBULcfuroMkRpD-CCVgaH3K-oePZEE/s1600/Screen+Shot+2018-03-04+at+12.22.43+AM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1000" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfm1k6n2QfG_KealSPzZdv8IoZb0PfekWqnnN99QiCpOtL-YDUaqIP9CQfTUPPgN1F4WK0L2J0F_SCluIh82DZnHMImzUNi296e4J96U0y6AF0QnBULcfuroMkRpD-CCVgaH3K-oePZEE/s1600/Screen+Shot+2018-03-04+at+12.22.43+AM.png" /></a></div>
<div>
<span face=""exo 2" , sans-serif" style="background-color: white; color: #444444;"><br /></span></div>
<div>
<br />
<span face=""exo" , sans-serif" style="color: #444444;"><span style="background-color: white; font-size: 18px;"><br /></span></span>
<a href="http://www.myautomationlab.com/2018/03/xpath-writing-techniques.html" target="_blank">To have a better understanding on Xpath Writing, please refer to next Blog xPath Writing and Techniques.</a></div>
</div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.comtag:blogger.com,1999:blog-8281255614362562168.post-67403696265591755412018-03-03T23:54:00.000+05:302018-03-08T23:54:30.997+05:30 An Overview on Locators<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="page" title="Page 14">
<div class="layoutArea">
<div class="column">
<span style="font-family: "calibri";"><span style="font-size: 14.6667px;"><b> An Overview on Locators</b></span></span><br />
<span style="font-family: "calibri";"><span style="font-size: 14.6667px;"><b><br /></b></span></span>
<span style="font-family: "calibri"; font-size: 11.000000pt; font-weight: 700;"><span style="background-color: white; color: #444444; font-family: "exo 2" , sans-serif; font-size: 18px; font-weight: 400;">In this post, we’ll learn what is Locators and types of Locators.</span></span><br />
<span style="color: #444444; font-family: "exo" , sans-serif;"><span style="font-size: 18px;"><br /></span></span>
<span style="font-family: "calibri"; font-size: 11.000000pt; font-weight: 700;">What is Locators ?
</span><br />
<span style="font-family: "calibri"; font-size: 11.000000pt; font-weight: 700;"><br /></span>
<span style="font-family: "calibri";"><span style="font-size: 14.6667px;">Locators are used to identify the element. </span></span><br />
<span style="font-family: "calibri";"><span style="font-size: 14.6667px;">In Selenium before performing any action (click, type etc) we should find the element using <b>locators</b>. In Selenium there are 8 types are <b>locators</b>. All of them are <b>static methods</b> in <b>By</b> class (it is an abstract class).</span></span><br />
<ul style="text-align: left;">
<li>All the methods takes string as argument and it returns an object of type <b>By</b>.</li>
<li>The <b>By</b> object is used as input argument for <b>findElement()</b> method.</li>
<li>Return type of <b>findElement()</b> method is <b>WebElement</b> (it is an Interface).</li>
</ul>
<div>
<b>The list of Selenium Locators:</b></div>
<div>
<ol style="text-align: left;">
<li>By.tagName</li>
<li>By.id</li>
<li>By.name</li>
<li>By.className</li>
<li>By.linkText</li>
<li>By.partialLinkText</li>
<li>By.cssSelector</li>
<li>By.xpath</li>
</ol>
</div>
<div>
<b>Code: Selenium code to click on a link using ‘tagName’:</b></div>
</div>
</div>
</div>
</div>
<div class="MsoNormal" style="line-height: 99%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 17.0pt; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<b><span style="font-family: "corbel"; mso-bidi-font-family: Corbel;"><br /></span></b>
<b><span style="font-family: "corbel"; mso-bidi-font-family: Corbel;"><br /></span></b><br />
<b><span style="font-family: "corbel"; mso-bidi-font-family: Corbel;">HTML Code:- </span></b><br />
<br />
<html> </div>
<div class="MsoNormal" style="line-height: 99%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 17.0pt; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: "corbel";"> <body> </span><br />
<span style="font-family: "corbel";"> <a href=http://localhose id=”a1” name =”n1” class=”c1”>actitime</a></span><br />
<span style="font-family: "corbel";"> </body> </span><br />
<span style="font-family: "corbel";"></html></span><br />
<br />
<b>- using tagName</b><br />
<b><br /></b>
driver.findElement(By.tagName("a")).click();<br />
In the browser find the element by tag name ‘a’ and click on it.<br />
<br />
<br />
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 53.0pt; margin-right: 225.0pt; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; punctuation-wrap: simple; text-autospace: none;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10.0pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10.0pt;">org.openqa.selenium.By;<b><span style="color: #7f0055;"> </span></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 53.0pt; margin-right: 225.0pt; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; punctuation-wrap: simple; text-autospace: none;">
<span style="font-family: "consolas" , sans-serif; font-size: 10.0pt;"><b><span style="color: #7f0055;">import </span></b>org.openqa.selenium.WebDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 1.8pt; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 53.0pt; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10.0pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10.0pt;">org.openqa.selenium.WebElement;</span><span style="font-family: "times new roman" , serif; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 1.8pt; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 53.0pt; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10.0pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10.0pt;">org.openqa.selenium.firefox.FirefoxDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 15.3pt; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 53.0pt; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10.0pt;">public class </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10.0pt;">Demo</span></div>
<div class="MsoNormal" style="line-height: 1.55pt; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: 99%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 64.0pt; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 99%;">{</span><span style="font-family: "times new roman" , serif; font-size: 12.0pt; line-height: 99%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 1.85pt; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: 99%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 89.0pt; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 99%;">public static void </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 99%;">main(String[]<b><span style="color: #7f0055;"> </span></b><span style="color: #6a3e3e;">args</span>)</span><span style="font-family: "times new roman" , serif; font-size: 12.0pt; line-height: 99%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 1.85pt; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: 99%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 89.0pt; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 99%;">{</span><span style="font-family: "times new roman" , serif; font-size: 12.0pt; line-height: 99%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 3.65pt; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: 107%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 125.0pt; margin-right: 153.0pt; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; punctuation-wrap: simple; text-align: justify; text-autospace: none;">
<span style="font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 107%;">WebDriver driver = new FirefoxDriver();</span></div>
<div class="MsoNormal" style="line-height: 107%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 125.0pt; margin-right: 153.0pt; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; punctuation-wrap: simple; text-align: justify; text-autospace: none;">
<span style="font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 107%;"><span style="font-size: 13.3333px;">driver</span>.get(<span style="color: #2a00ff;">"file:///D:///Demo.html"</span>);</span></div>
<div class="MsoNormal" style="line-height: 107%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 125.0pt; margin-right: 153.0pt; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; punctuation-wrap: simple; text-align: justify; text-autospace: none;">
<span style="font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 107%;">driver.findElement(By.tagName("a")).click();</span></div>
<div class="MsoNormal" style="line-height: 1.85pt; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: 99%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 89.0pt; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 99%;">}</span><span style="font-family: "times new roman" , serif; font-size: 12.0pt; line-height: 99%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 1.85pt; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-line-height-rule: exactly; mso-pagination: none; text-autospace: none;">
<br /></div>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false"
DefSemiHidden="false" DefQFormat="false" DefPriority="99"
LatentStyleCount="382">
<w:LsdException Locked="false" Priority="0" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 9"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="header"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footer"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index heading"/>
<w:LsdException Locked="false" Priority="35" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of figures"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope return"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="line number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="page number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of authorities"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="macro"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="toa heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 5"/>
<w:LsdException Locked="false" Priority="10" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Closing"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Signature"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="true"
UnhideWhenUsed="true" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Message Header"/>
<w:LsdException Locked="false" Priority="11" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Salutation"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Date"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Block Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Hyperlink"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="FollowedHyperlink"/>
<w:LsdException Locked="false" Priority="22" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Document Map"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Plain Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="E-mail Signature"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Top of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Bottom of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal (Web)"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Acronym"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Cite"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Code"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Definition"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Keyboard"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Preformatted"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Sample"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Typewriter"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Variable"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Table"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation subject"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="No List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Contemporary"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Elegant"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Professional"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Balloon Text"/>
<w:LsdException Locked="false" Priority="39" Name="Table Grid"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Theme"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 9"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" QFormat="true"
Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" QFormat="true"
Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" QFormat="true"
Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" QFormat="true"
Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" QFormat="true"
Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" QFormat="true"
Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" SemiHidden="true"
UnhideWhenUsed="true" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/>
<w:LsdException Locked="false" Priority="41" Name="Plain Table 1"/>
<w:LsdException Locked="false" Priority="42" Name="Plain Table 2"/>
<w:LsdException Locked="false" Priority="43" Name="Plain Table 3"/>
<w:LsdException Locked="false" Priority="44" Name="Plain Table 4"/>
<w:LsdException Locked="false" Priority="45" Name="Plain Table 5"/>
<w:LsdException Locked="false" Priority="40" Name="Grid Table Light"/>
<w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="46" Name="List Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Mention"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Smart Hyperlink"/>
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-536870145 1107305727 0 0 415 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536870145 1073786111 1 0 415 0;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:fixed;
mso-font-signature:-520092929 1073806591 9 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
</style>
<![endif]-->
<!--StartFragment-->
<span style="font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 115%;"> }</span><!--EndFragment-->
<br />
<span style="font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 115%;"><br /></span>
<br />
<div style="font-size: 14.6667px;">
<b>- using id</b></div>
<div style="font-size: 14.6667px;">
<b><br /></b></div>
<div style="font-size: 14.6667px;">
driver.findElement(
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false"
DefSemiHidden="false" DefQFormat="false" DefPriority="99"
LatentStyleCount="382">
<w:LsdException Locked="false" Priority="0" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 9"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="header"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footer"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index heading"/>
<w:LsdException Locked="false" Priority="35" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of figures"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope return"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="line number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="page number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of authorities"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="macro"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="toa heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 5"/>
<w:LsdException Locked="false" Priority="10" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Closing"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Signature"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="true"
UnhideWhenUsed="true" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Message Header"/>
<w:LsdException Locked="false" Priority="11" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Salutation"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Date"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Block Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Hyperlink"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="FollowedHyperlink"/>
<w:LsdException Locked="false" Priority="22" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Document Map"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Plain Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="E-mail Signature"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Top of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Bottom of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal (Web)"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Acronym"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Cite"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Code"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Definition"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Keyboard"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Preformatted"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Sample"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Typewriter"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Variable"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Table"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation subject"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="No List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Contemporary"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Elegant"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Professional"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Balloon Text"/>
<w:LsdException Locked="false" Priority="39" Name="Table Grid"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Theme"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 9"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" QFormat="true"
Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" QFormat="true"
Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" QFormat="true"
Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" QFormat="true"
Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" QFormat="true"
Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" QFormat="true"
Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" SemiHidden="true"
UnhideWhenUsed="true" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/>
<w:LsdException Locked="false" Priority="41" Name="Plain Table 1"/>
<w:LsdException Locked="false" Priority="42" Name="Plain Table 2"/>
<w:LsdException Locked="false" Priority="43" Name="Plain Table 3"/>
<w:LsdException Locked="false" Priority="44" Name="Plain Table 4"/>
<w:LsdException Locked="false" Priority="45" Name="Plain Table 5"/>
<w:LsdException Locked="false" Priority="40" Name="Grid Table Light"/>
<w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="46" Name="List Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Mention"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Smart Hyperlink"/>
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-536870145 1107305727 0 0 415 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536870145 1073786111 1 0 415 0;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:fixed;
mso-font-signature:-520092929 1073806591 9 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
</style>
<![endif]-->
<!--StartFragment--><span style="font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 115%;">By.id("a1")</span>).click(); </div>
<div style="font-size: 14.6667px;">
In the browser find the element by id ‘a1’ and click on it.</div>
<div style="font-size: 14.6667px;">
<br /></div>
<div style="font-size: 14.6667px;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt; margin-right: 225pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.By;<b><span style="color: #7f0055;"> </span></b></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt; margin-right: 225pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt;"><b><span style="color: #7f0055;">import </span></b>org.openqa.selenium.WebDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.8pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.WebElement;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.8pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.firefox.FirefoxDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.3pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">public class </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">Demo</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.55pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 64pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">{</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">public static void </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">main(String[]<b><span style="color: #7f0055;"> </span></b><span style="color: #6a3e3e;">args</span>)</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">{</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 3.65pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 14.2667px;">WebDriver driver = new FirefoxDriver();</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 14.2667px;"><span style="font-size: 13.3333px;">driver</span>.get(<span style="color: #2a00ff;">"file:///D:///Demo.html"</span>);</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-size: 14.6667px; text-align: left;">driver.findElement(</span><span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px; text-align: left;">By.id("a1")</span><span style="font-size: 14.6667px; text-align: left;">).click();</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">}</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"> }</span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"><br /></span></div>
<div style="font-size: 14.6667px;">
<b>- using name</b></div>
<div style="font-size: 14.6667px;">
<b><br /></b></div>
<span style="font-size: 14.6667px;">driver.findElement(By.name("n1")).click(); </span><br />
<div style="font-size: 14.6667px;">
In the browser find the element by name ‘n1’ and click on it.</div>
<div style="font-size: 14.6667px;">
<br /></div>
<div style="font-size: 14.6667px;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt; margin-right: 225pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.By;<b><span style="color: #7f0055;"> </span></b></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt; margin-right: 225pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt;"><b><span style="color: #7f0055;">import </span></b>org.openqa.selenium.WebDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.8pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.WebElement;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.8pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.firefox.FirefoxDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.3pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">public class </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">Demo</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.55pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 64pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">{</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">public static void </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">main(String[]<b><span style="color: #7f0055;"> </span></b><span style="color: #6a3e3e;">args</span>)</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">{</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 3.65pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 14.2667px;">WebDriver driver = new FirefoxDriver();</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 14.2667px;"><span style="font-size: 13.3333px;">driver</span>.get(<span style="color: #2a00ff;">"file:///D:///Demo.html"</span>);</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 14.2667px;">driver.findElement(By.name("n1")).click();</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">}</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"> }</span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"><br /></span></div>
<div style="font-size: 14.6667px;">
<b>- using class</b></div>
<div style="font-size: 14.6667px;">
<b><br /></b></div>
<div style="font-size: 14.6667px;">
<span style="font-size: 14.6667px;">driver.findElement(By.className("c1")).click(); </span></div>
<div style="font-size: 14.6667px;">
In the browser find the element by className ‘c1’ and click on it.</div>
<div style="font-size: 14.6667px;">
<br /></div>
<div style="font-size: 14.6667px;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt; margin-right: 225pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.By;<b><span style="color: #7f0055;"> </span></b></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt; margin-right: 225pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt;"><b><span style="color: #7f0055;">import </span></b>org.openqa.selenium.WebDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.8pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.WebElement;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.8pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.firefox.FirefoxDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.3pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">public class </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">Demo</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.55pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 64pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">{</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">public static void </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">main(String[]<b><span style="color: #7f0055;"> </span></b><span style="color: #6a3e3e;">args</span>)</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">{</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 3.65pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 14.2667px;">WebDriver driver = new FirefoxDriver();</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 14.2667px;"><span style="font-size: 13.3333px;">driver</span>.get(<span style="color: #2a00ff;">"file:///D:///Demo.html"</span>);</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 13.3333px;">driver.findElement(By.className("c1")).click();</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">}</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"> }</span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"><br /></span></div>
<div style="font-size: 14.6667px;">
<b>- using linkText</b></div>
<div style="font-size: 14.6667px;">
<b><br /></b></div>
<div style="font-size: 14.6667px;">
<span style="font-size: 14.6667px;">driver.findElement(</span>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false"
DefSemiHidden="false" DefQFormat="false" DefPriority="99"
LatentStyleCount="382">
<w:LsdException Locked="false" Priority="0" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 9"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="header"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footer"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index heading"/>
<w:LsdException Locked="false" Priority="35" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of figures"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope return"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="line number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="page number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of authorities"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="macro"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="toa heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 5"/>
<w:LsdException Locked="false" Priority="10" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Closing"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Signature"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="true"
UnhideWhenUsed="true" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Message Header"/>
<w:LsdException Locked="false" Priority="11" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Salutation"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Date"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Block Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Hyperlink"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="FollowedHyperlink"/>
<w:LsdException Locked="false" Priority="22" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Document Map"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Plain Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="E-mail Signature"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Top of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Bottom of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal (Web)"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Acronym"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Cite"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Code"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Definition"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Keyboard"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Preformatted"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Sample"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Typewriter"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Variable"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Table"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation subject"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="No List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Contemporary"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Elegant"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Professional"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Balloon Text"/>
<w:LsdException Locked="false" Priority="39" Name="Table Grid"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Theme"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Level 9"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" QFormat="true"
Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" QFormat="true"
Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" QFormat="true"
Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" QFormat="true"
Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" QFormat="true"
Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" QFormat="true"
Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" SemiHidden="true"
UnhideWhenUsed="true" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/>
<w:LsdException Locked="false" Priority="41" Name="Plain Table 1"/>
<w:LsdException Locked="false" Priority="42" Name="Plain Table 2"/>
<w:LsdException Locked="false" Priority="43" Name="Plain Table 3"/>
<w:LsdException Locked="false" Priority="44" Name="Plain Table 4"/>
<w:LsdException Locked="false" Priority="45" Name="Plain Table 5"/>
<w:LsdException Locked="false" Priority="40" Name="Grid Table Light"/>
<w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="46" Name="List Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Mention"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Smart Hyperlink"/>
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-536870145 1107305727 0 0 415 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536870145 1073786111 1 0 415 0;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:fixed;
mso-font-signature:-520092929 1073806591 9 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
</style>
<![endif]-->
<!--StartFragment--><span style="font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 115%;">By.linkText("actitime")</span><span style="font-size: 14.6667px;">).click(); </span></div>
<div style="font-size: 14.6667px;">
In the browser find the element by linkText ‘actitime’ and click on it.</div>
<div style="font-size: 14.6667px;">
<br /></div>
<div style="font-size: 14.6667px;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt; margin-right: 225pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.By;<b><span style="color: #7f0055;"> </span></b></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt; margin-right: 225pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt;"><b><span style="color: #7f0055;">import </span></b>org.openqa.selenium.WebDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.8pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.WebElement;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.8pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.firefox.FirefoxDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.3pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">public class </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">Demo</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.55pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 64pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">{</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">public static void </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">main(String[]<b><span style="color: #7f0055;"> </span></b><span style="color: #6a3e3e;">args</span>)</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">{</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 3.65pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 14.2667px;">WebDriver driver = new FirefoxDriver();</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 14.2667px;"><span style="font-size: 13.3333px;">driver</span>.get(<span style="color: #2a00ff;">"file:///D:///Demo.html"</span>);</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-size: 14.6667px; text-align: left;">driver.findElement(</span><span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px; text-align: left;">By.linkText("actitime")</span><span style="font-size: 14.6667px; text-align: left;">).click();</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">}</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"> }</span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"><br /></span></div>
<div style="font-size: 14.6667px;">
<b>- using partialLinkText</b></div>
<div style="font-size: 14.6667px;">
<b><br /></b></div>
<span style="font-size: 14.6667px;">driver.findElement(By.partialLinkText("acti")).click(); </span><br />
<div style="font-size: 14.6667px;">
In the browser find the element by partialLinkText ‘acti’ and click on it.</div>
<div style="font-size: 14.6667px;">
<br /></div>
<div style="font-size: 14.6667px;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt; margin-right: 225pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.By;<b><span style="color: #7f0055;"> </span></b></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt; margin-right: 225pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt;"><b><span style="color: #7f0055;">import </span></b>org.openqa.selenium.WebDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.8pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.WebElement;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.8pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">import </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">org.openqa.selenium.firefox.FirefoxDriver;</span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.3pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: normal; margin-bottom: 0.0001pt; margin-left: 53pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt;">public class </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt;">Demo</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.55pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 64pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">{</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">public static void </span></b><span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">main(String[]<b><span style="color: #7f0055;"> </span></b><span style="color: #6a3e3e;">args</span>)</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">{</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 3.65pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 14.2667px;">WebDriver driver = new FirefoxDriver();</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: justify;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 14.2667px;"><span style="font-size: 13.3333px;">driver</span>.get(<span style="color: #2a00ff;">"file:///D:///Demo.html"</span>);</span></div>
<div class="MsoNormal" style="line-height: 15.6933px; margin-bottom: 0.0001pt; margin-left: 125pt; margin-right: 153pt; text-align: left;">
<span style="font-size: 14.6667px;">driver.findElement(By.partialLinkText("acti")).click();</span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 14.52px; margin-bottom: 0.0001pt; margin-left: 89pt;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 13.2px;">}</span><span style="font-family: "times new roman" , serif; font-size: 12pt; line-height: 15.84px;"><o:p></o:p></span></div>
<div class="MsoNormal" style="font-size: 14.6667px; line-height: 1.85pt; margin-bottom: 0.0001pt;">
<br /></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"> }</span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"><br /></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"><b style="font-family: Calibri, sans-serif; font-size: 14.6667px;">- <a href="http://www.myautomationlab.com/2018/03/an-overview-on-cssselector.html" target="_blank">using css:-</a> </b></span><span style="background-color: #edf4ff; color: #888888; font-family: "arial" , "helvetica" , sans-serif; font-size: 13px;"><a href="http://www.myautomationlab.com/2018/03/an-overview-on-cssselector.html">http://www.myautomationlab.com/2018/03/an-overview-on-cssselector.html</a></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"><b style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><br /></b></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"><b style="font-family: Calibri, sans-serif; font-size: 14.6667px;">- <a href="http://www.myautomationlab.com/2018/03/an-overview-on-xpath.html" target="_blank">using xpath:- </a></b></span><span style="background-color: #edf4ff; color: #888888; font-family: "arial" , "helvetica" , sans-serif; font-size: 13px;"><a href="http://www.myautomationlab.com/2018/03/an-overview-on-xpath.html">http://www.myautomationlab.com/2018/03/an-overview-on-xpath.html</a></span></div>
<div style="font-size: 14.6667px;">
<span style="font-family: "consolas" , sans-serif; font-size: 10pt; line-height: 15.3333px;"><br /></span></div>
<span style="font-size: 13.3333px; line-height: 15.3333px;"><span style="font-family: "consolas" , sans-serif;"><b>Important Note:</b></span></span></div>
<div class="MsoNormal" style="line-height: 99%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 17.0pt; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<br />
<ul style="text-align: left;">
<li><span style="font-family: "consolas" , sans-serif; font-size: 13.3333px;">If specified locator is matching with more than one element then <b>findElement()</b> method <b>returns the address of first matching element.</b></span></li>
<li><span style="font-family: "consolas" , sans-serif;"><span style="font-size: 13.3333px;">If the specified locator is not matching with any of the element then <b>findElement()</b> method will throw ‘<b>NoSuchElementException</b>’.</span></span></li>
</ul>
</div>
<div style="text-align: left;">
<!--EndFragment--></div>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-536870145 1107305727 0 0 415 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536870145 1073786111 1 0 415 0;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:fixed;
mso-font-signature:-520092929 1073806591 9 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
-->
</style>
</div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.comtag:blogger.com,1999:blog-8281255614362562168.post-90001841772655661512018-03-03T23:53:00.003+05:302018-03-08T23:42:03.585+05:30An Overview On cssSelector<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #444444; font-family: exo 2, sans-serif; font-size: 18px;">An Overview On cssSelector</span><br />
<span style="background-color: white; color: #444444; font-family: exo 2, sans-serif; font-size: 18px;"><br /></span>
<span style="background-color: white; color: #444444; font-family: "exo 2" , sans-serif; font-size: 18px;">In this post, we’ll learn what is <b>cssSelector</b> and how to use <b>cssSelector</b>.</span><br />
<span style="background-color: white; color: #333333; font-family: "corbel"; font-size: 11pt;"><br /></span>
<span style="background-color: white; color: #333333; font-family: "corbel";"><span style="font-size: large;">What is cssSelector?</span></span><br />
<span style="background-color: white; color: #333333; font-family: "corbel"; font-size: 11pt;">CSS
stands for Cascading Style Sheets.</span><br />
<span style="background-color: white; color: #333333; font-family: "corbel"; font-size: 11pt;"><br /></span>
<b><span style="font-family: "corbel"; mso-bidi-font-family: Corbel;">HTML Code:- </span></b><br />
<b><span style="font-family: "corbel"; mso-bidi-font-family: Corbel;"><br /></span></b>
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";"><html> </span></span><br />
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";"> <body> </span></span><br />
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";"> UN<input type="text"> </span></span><br />
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";"> PW<input type="password"> </span></span><br />
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";"> </body> </span></span><br />
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";"></html></span></span><br />
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";"><br /></span></span>
<br />
<div style="text-align: justify;">
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";">In the above sample page to identify the password field we can’t use id, name, className, linkText, partialLinkText because they are not present. We can use ‘tagName’ but it has duplicate user field. In this situation we can use cssSelector. CSS stands for Cascading Style Sheets.</span></span></div>
<div style="text-align: justify;">
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";"><br /></span></span></div>
<div style="text-align: justify;">
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";"><b>cssSelector has following syntax:</b></span></span></div>
<div style="text-align: justify;">
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";"><b><br /></b></span></span></div>
<div style="text-align: justify;">
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";">Tag[AttributeName = 'AttributeValue'] </span></span></div>
<div style="text-align: justify;">
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";">Ex: input[type = 'password']</span></span></div>
<div style="text-align: justify;">
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";"><br /></span></span></div>
<div style="text-align: justify;">
<span style="background-color: white; font-size: 14.6667px;"><span style="color: #333333; font-family: "corbel";">To check whether CSS expression is correct or not, we can use <b>FirePath</b>’ in <b>Mozilla Firefox</b>.</span></span></div>
<div style="text-align: justify;">
</div>
<ol>
<li>To install it go to <b>Tools>Add-Ons</b>, search for <b>FirePath</b>.</li>
<li>Click <b>Install</b> button of FirePath and restart the browser.</li>
<li>Open the required web page press <b>F12</b>(Firebug) click on <b>FirePath</b> tab.</li>
<li>Select <b>CSS</b>, type the expression and press <b>Enter</b>.</li>
<li>It will highlight matching elements.</li>
</ol>
<div>
Checking CSS in Google Chrome:</div>
<div>
<ol style="text-align: left;">
<li>Press F12 in chrome browser, then press Ctr+F.</li>
<li>Type the expression; it will highlight the source code of the matching element. If we place the mouse pointer on the source code, it will highlight the element on the page.</li>
</ol>
<div>
<div class="WordSection1">
<div class="MsoNormal" style="line-height: 99%; margin-bottom: 0.0001pt; margin-left: 88pt;">
<b><span style="color: #7f0055; font-family: "consolas" , sans-serif; font-size: 10.0pt; line-height: 99%;"><br /></span></b></div>
<span style="color: #990000;">import</span> org.openqa.selenium.By;<br />
<span style="color: #990000;">import</span> org.openqa.selenium.WebDriver;<br />
<span style="color: #990000;">import</span> org.openqa.selenium.firefox.FirefoxDriver;<br />
<br />
<span style="color: #990000;">public</span> <span style="color: #660000;">class</span> Demo<br />
{<br />
<span style="color: #990000;"> public static void</span> main(String[] args)<br />
{<br />
WebDriver driver = <span style="color: #990000;">new</span> FirefoxDriver();<br />
driver.get("<span style="background-color: white; color: blue;">file:///D:/Demo.html</span>");<br />
driver.findElement(By.cssSelector(<span style="color: blue;">"input[type='text']"</span>)).sendKeys(<span style="color: blue;">"admin"</span>);<br />
driver.findElement(By.cssSelector(<span style="color: blue;">"input[type='password']"</span>)).sendKeys(<span style="color: blue;">"manager"</span>);<br />
}<br />
}<br />
<br />
<br />
<br />
<a href="http://www.myautomationlab.com/2018/03/an-overview-on-locators.html" target="_blank">An Overview on Locators:-</a> <span style="background-color: #edf4ff; color: #888888; font-family: "arial" , "helvetica" , sans-serif; font-size: 13px;"><a href="http://www.myautomationlab.com/2018/03/an-overview-on-locators.html">http://www.myautomationlab.com/2018/03/an-overview-on-locators.html</a></span><br />
<br />
<a href="http://www.myautomationlab.com/2018/03/an-overview-on-xpath.html" target="_blank">An Overview on xPath:-</a> <span style="background-color: #edf4ff; color: #888888; font-family: "arial" , "helvetica" , sans-serif; font-size: 13px;"><a href="http://www.myautomationlab.com/2018/03/an-overview-on-xpath.html">http://www.myautomationlab.com/2018/03/an-overview-on-xpath.html</a></span></div>
<!--EndFragment--></div>
</div>
<br />
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-536870145 1107305727 0 0 415 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536870145 1073786111 1 0 415 0;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:fixed;
mso-font-signature:-520092929 1073806591 9 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri;}
@page WordSection1
{size:595.0pt 842.0pt;
margin:14.25pt 66.0pt 1.0in 55.0pt;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
@page WordSection2
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection2
{page:WordSection2;}
-->
</style></div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.comtag:blogger.com,1999:blog-8281255614362562168.post-65177431043258324942018-03-02T22:53:00.011+05:302021-04-05T16:00:06.811+05:30Difference between ImplicitWait, ExplicitWait, FluentWait, PageLoadTimeOut and Thread.sleep in Selenium WebDriver<div style="display: none;"></div><div dir="ltr" style="text-align: left;" trbidi="on">
<h3 style="font-family: Verdana, Geneva, sans-serif; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; padding: 0.6em 0px 0.5em; position: relative; text-align: left;"><b style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; text-indent: -36.48px;"><span>Hello Learners,</span></b></h3><div><span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="color: #444444;"><span style="font-size: 13px;">Synchronization is a very hot topic in Selenium. We have been always asked questions related to synchronization and webdriver waits in interviews. So, lets dig out some good stuff out of synchronization. And next time whenever synchronization related questions are asked in interview answer them confidently with all the conceptual knowledge you will get in this blog.</span></span></div><div><span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="color: #444444;"><span style="font-size: 13px;"><br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;">
<div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #ffa400;"><b>1. <span>What is Synchronization.</span></b></span></div><div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span style="text-indent: -29.76px;">• </span><span style="text-indent: -29.76px;">It is a mechanism which involves more than one components to <b>work parallel with Each other</b>.</span></span></div><div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span style="text-indent: -29.76px;"><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #666666; text-align: justify; text-indent: -0.31in;">• </span><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #333333; text-align: justify; text-indent: -0.31in;">It is a process of coordinating or matching two or more activities/devices/processes in time.</span></span></span></div><div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span style="text-indent: -29.76px;"><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #666666; text-align: justify; text-indent: -0.31in;">• It is a p</span><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #333333; text-align: justify; text-indent: -0.31in;">rocess of <b>matching the speed of AUT</b>(Application under test) <b>& Test tool</b> in order to get proper execution.</span></span></span></div><div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span style="text-indent: -29.76px;"><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #333333; text-align: justify; text-indent: -0.31in;"><br /></span></span></span></div><div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white;"><span style="color: #ffa400; text-indent: -29.76px;"><b style="text-indent: -36.48px;">2. <span>Why Synchronization is required.</span></b></span></span></div><div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span style="text-indent: -29.76px;"><span face=""trebuchet ms" , sans-serif" style="text-indent: 0px;"><span><span style="text-indent: -29.76px;">• </span>Generally in Test Automation, we have two components</span></span><br style="text-indent: 0px;" /><span face=""trebuchet ms" , sans-serif" style="text-indent: 0px;"><span style="font-weight: bold;">1. Application Under Test.<br />2. Test Automation Tool.</span></span></span></span></div><div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span style="text-indent: -29.76px;"><span face=""trebuchet ms" , sans-serif" style="text-indent: 0px;"><span style="font-weight: bold;"><br /></span></span></span></span></div></div></div><div dir="ltr" style="text-align: left;" trbidi="on"><div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><div style="font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-align: left; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span style="text-indent: -29.76px;"><span face=""trebuchet ms" , sans-serif" style="text-indent: 0px;"><span style="font-weight: bold;"><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #666666; font-weight: 400; text-align: justify; text-indent: -29.76px;">• </span><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #333333; font-weight: 400; text-align: justify; text-indent: -29.76px;">Both these components will have their own speed. We should write our scripts in such a way that both the </span></span></span></span></span><span face="arial, tahoma, helvetica, freesans, sans-serif" style="background-color: white; color: #333333; text-align: justify; text-indent: -29.76px;">components should move with same and desired speed, so that we will not encounter <b>"Element Not Found"</b> errors which will consume time again in debugging.</span></div></div></div><div dir="ltr" style="text-align: left;" trbidi="on"><div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><div style="font-size: 13px;"><span face="arial, tahoma, helvetica, freesans, sans-serif" style="background-color: white; color: #333333; text-align: justify; text-indent: -29.76px;"><br /></span></div><div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span style="text-indent: -29.76px;"><span face=""trebuchet ms" , sans-serif" style="text-indent: 0px;"><span style="font-weight: bold;"><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #333333; font-weight: 400; text-align: justify; text-indent: -29.76px;"><span style="color: #666666; text-indent: -0.31in;">• </span><span style="color: #333333; text-indent: -0.31in;">During the test execution Test tool gives instructions one by one with same speed, but AUT takes less time for some steps execution and more time for some steps execution</span></span></span></span></span></span></div><div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span style="text-indent: -29.76px;"><span face=""trebuchet ms" , sans-serif" style="text-indent: 0px;"><span style="font-weight: bold;"><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #333333; font-weight: 400; text-align: justify; text-indent: -29.76px;"><br /></span></span></span></span></span></div><div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span style="text-indent: -29.76px;"><span face=""trebuchet ms" , sans-serif" style="text-indent: 0px;"><span style="font-weight: bold;"><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #333333; font-weight: 400; text-align: justify; text-indent: -29.76px;">So, in order to keep both Application Under Test and Test Automation Tool in sync we use synchronization</span></span></span></span></span></div>
<div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><br /></div>
<div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #ffa400;"><b>3. <span>When Synchronization is required.</span></b></span></div><div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #666666; text-align: justify; text-indent: -0.31in;">• </span><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #333333; text-align: justify; text-indent: -0.31in;">Whenever any step required time more than Synchronization time for execution, then Synchronization is required. </span></span></div><div style="direction: ltr; font-size: 13px; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #444444;"><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #333333; text-align: justify; text-indent: -0.31in;"><br /></span></span></div>
<div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 0pt; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white; color: #ffa400;"><b>4. <span>Conditional and Unconditional Synchronization in Selenium WebDriver.</span></b></span></div></div><div><div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: justify; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<div style="color: #666666; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;"><span style="color: #333333; text-indent: -0.31in;"><br /></span></span>
</div>
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBDVgByamev1rQeycSb5Pu6klYzr0dc_W-iys0xpIZZiJgb-mJ9qsC2NliffSvBTr2oiPhTuyH2wyJfT6boNVp9PXcZzNKn9wkmFm62jO4oODXAixLCnKGdpw-3DBTuxUoYyAJgZvwBI9/s869/Capture123.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="489" data-original-width="869" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisBDVgByamev1rQeycSb5Pu6klYzr0dc_W-iys0xpIZZiJgb-mJ9qsC2NliffSvBTr2oiPhTuyH2wyJfT6boNVp9PXcZzNKn9wkmFm62jO4oODXAixLCnKGdpw-3DBTuxUoYyAJgZvwBI9/w640-h360/Capture123.JPG" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #303030; font-size: 13px; font-weight: bold; text-align: left; text-indent: -29.76px;"><br /></span></div></div></div></div><p><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #303030; font-size: 13px; font-weight: bold; text-indent: -29.76px;">Thread.Sleep</span><span face="arial, tahoma, helvetica, freesans, sans-serif" style="color: #303030; font-size: 13px; font-weight: bold; text-indent: -29.76px;">:</span></p><div dir="ltr" style="text-align: left;" trbidi="on"><div><div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: justify; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #333333;">Thread.sleep</span><span style="color: #333333;"> method is used to pause the execution for defined time. Time is defined in milliseconds for this method.</span></span></div><div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white;"><span style="color: #333333;"><br /></span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; text-align: left; text-indent: -29.76px; unicode-bidi: embed; word-break: normal;">
</div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; text-align: left; text-indent: -29.76px; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;"><span style="color: #303030; font-weight: bold;">Implicit Wait:</span><span style="color: #303030;"> </span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">During Implicit wait if the Web Driver cannot find it immediately because of its availability, it will keep polling the DOM to get the element.</span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">If the element is not available within the specified Time an </span><span style="color: #303030;">NoSuchElementException</span><span style="color: #303030;"> will be raised.</span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">The default setting is zero.</span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">Once we set a time, the Web Driver waits for the period of the WebDriver object instance.</span></span></div><div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white;"><span style="color: #303030;"><br /></span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; text-align: left; text-indent: -29.76px; unicode-bidi: embed; word-break: normal;">
</div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; text-align: left; text-indent: -29.76px; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;"><span style="color: #303030; font-weight: bold;">Explicit Wait:</span><span style="color: #303030;"> </span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">There can be instance when a particular element takes more than a minute to load.</span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">In that case you definitely not like to set a huge time to Implicit wait, as if you do this your browser will going to wait for the same time for every element.</span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">To avoid that situation you can simply put a separate time on the required element only.</span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">By following this your browser implicit wait time would be short for every element and it would be large for specific element.</span></span></div><div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;"><span face=""trebuchet ms" , sans-serif" style="background-color: white;"><span style="color: #303030;"><br /></span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; text-align: left; text-indent: -29.76px; unicode-bidi: embed; word-break: normal;">
</div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; text-align: left; text-indent: -29.76px; unicode-bidi: embed; word-break: normal;">
<span style="color: #303030; font-weight: bold;"><span face=""trebuchet ms" , sans-serif" style="background-color: white;">Fluent Wait: </span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">Let’s say you have an element which sometime appears in just 1 second and some time it takes minutes to appear.</span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">In that case it is better to use fluent wait, as this will try to find element again and again until it find it or until the final timer runs out.</span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<br /></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; text-align: left; text-indent: -29.76px; unicode-bidi: embed; word-break: normal;">
<span style="color: #303030; font-weight: bold;"><span face=""trebuchet ms" , sans-serif" style="background-color: white;">Page Load Time Out:</span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">The </span><span style="color: #303030;">pageLoadTimeout</span><span style="color: #303030;"> limits the time that the script allots for a web page to be displayed.</span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">If the page loads within the time then the script continues.</span></span></div>
<div class="separator" style="clear: both; color: #666666; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px;">
</div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
</div>
<div style="color: #666666; font-family: arial, tahoma, helvetica, freesans, sans-serif;">
<br /></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; font-style: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; text-transform: none; unicode-bidi: embed; white-space: normal; word-break: normal; word-spacing: 0px;">
<div style="margin: 0px;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;">• <span style="color: #303030;">If the page does not load within the timeout the script will be stopped by a </span><span style="color: #303030;">TimeoutException</span><span style="color: #303030;">.</span></span></div>
<div style="margin: 0px;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;"><span style="color: #303030;"><br /></span></span></div>
</div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; text-align: left; text-indent: -29.76px; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif" style="background-color: white;"><span style="color: #303030; font-weight: bold;"><br /></span></span></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; text-align: left; text-indent: -29.76px; unicode-bidi: embed; word-break: normal;">
<div style="text-align: center;">
<iframe allowfullscreen="" frameborder="0" height="485" marginheight="0" marginwidth="0" scrolling="no" src="//www.slideshare.net/slideshow/embed_code/key/lrrsptfBTkg8kv" style="border-width: 1px; border: 1px solid #ccc; margin-bottom: 5px; max-width: 100%;" width="595"> </iframe> </div>
<div style="margin-bottom: 5px;">
<div style="text-align: center;">
<strong> <a href="https://www.slideshare.net/SHUBHAMPATIL148/synchronizaton" target="_blank" title="Synchronization in Selenium WebDriver">Synchronization in Selenium WebDriver</a> </strong> from <strong><a href="https://www.slideshare.net/SHUBHAMPATIL148" target="_blank">SHUBHAM PATIL</a></strong></div>
</div>
</div>
<div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<h2 style="line-height: 1.4; padding: 0px; text-indent: 0px;">
<div style="color: #172b4d; font-family: monospace; letter-spacing: 0px; text-align: center; white-space: pre;">
<span style="font-size: small;"><span face=""arial" , "tahoma" , "helvetica" , "freesans" , sans-serif" style="letter-spacing: 0px;">The Source Code for above topic is available on GitHub Repository, </span><span face=""arial" , "tahoma" , "helvetica" , "freesans" , sans-serif" style="letter-spacing: 0px;">You can get it from this URL:- </span></span></div>
<div style="color: #172b4d; font-family: monospace; letter-spacing: 0px; text-align: center; white-space: pre;">
<span style="font-size: small;"><a href="https://github.com/patilshubham033/Synchronization" style="background-color: white; font-family: "trebuchet ms", sans-serif; font-weight: 400; letter-spacing: 0px; text-indent: -29.76px; white-space: normal;">https://github.com/patilshubham033/Synchronization</a></span></div>
</h2>
</div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<h1 class="app-header--heading" style="color: #172b4d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 1.71429em; letter-spacing: -0.01em; line-height: 1.16667; margin: 10px 0px 0px; padding: 0px; position: relative; text-indent: 0px; text-size-adjust: auto;">
<span class="file-path" style="font-weight: normal;"><u><i>ExplicitWait.java</i></u></span></h1>
<div>
<span class="file-path"><br /></span></div>
</div>
<!--HTML generated using hilite.me--><div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> com<span style="color: #333333;">.</span><span style="color: #0000cc;">synchronization</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.By</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebElement</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.chrome.ChromeDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.support.ui.ExpectedConditions</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.support.ui.WebDriverWait</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.Assert</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.AfterTest</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.Test</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">ExplicitWait</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">static</span> WebDriver driver<span style="color: #333333;">;</span>
<span style="color: #555555; font-weight: bold;">@Test</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">()</span> <span style="color: #008800; font-weight: bold;">throws</span> InterruptedException <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">setProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"webdriver.chrome.driver"</span><span style="color: #333333;">,</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">getProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"user.dir"</span><span style="color: #333333;">)</span> <span style="color: #333333;">+</span> <span style="background-color: #fff0f0;">"/src/main/resources/chromedriver"</span><span style="color: #333333;">);</span>
driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">();</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"http://the-internet.herokuapp.com/dynamic_loading/1"</span><span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//button[text()='Start']"</span><span style="color: #333333;">)).</span><span style="color: #0000cc;">click</span><span style="color: #333333;">();</span>
WebElement content <span style="color: #333333;">=</span> driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//h4[text()='Hello World!']"</span><span style="color: #333333;">));</span>
<span style="color: #888888;">// Explicit Wait</span>
WebDriverWait explicitWait <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> WebDriverWait<span style="color: #333333;">(</span>driver<span style="color: #333333;">,</span> <span style="color: #0000dd; font-weight: bold;">10</span><span style="color: #333333;">);</span>
explicitWait<span style="color: #333333;">.</span><span style="color: #0000cc;">until</span><span style="color: #333333;">(</span>ExpectedConditions<span style="color: #333333;">.</span><span style="color: #0000cc;">visibilityOf</span><span style="color: #333333;">(</span>content<span style="color: #333333;">));</span>
Assert<span style="color: #333333;">.</span><span style="color: #0000cc;">assertTrue</span><span style="color: #333333;">(</span>content<span style="color: #333333;">.</span><span style="color: #0000cc;">isDisplayed</span><span style="color: #333333;">(),</span> <span style="background-color: #fff0f0;">"Content is not displayed"</span><span style="color: #333333;">);</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">out</span><span style="color: #333333;">.</span><span style="color: #0000cc;">println</span><span style="color: #333333;">(</span>content<span style="color: #333333;">.</span><span style="color: #0000cc;">getText</span><span style="color: #333333;">());</span>
<span style="color: #333333;">}</span>
<span style="color: #555555; font-weight: bold;">@AfterTest</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">close</span><span style="color: #333333;">()</span> <span style="color: #333333;">{</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">quit</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<br /></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<h1 class="app-header--heading" style="color: #172b4d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 1.71429em; font-weight: 500; letter-spacing: -0.01em; line-height: 1.16667; margin: 10px 0px 0px; padding: 0px; position: relative; text-indent: 0px; text-size-adjust: auto;">
<span class="file-path"><u><i>FluentWait.java</i></u></span></h1>
</div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif"><span style="background-color: white; color: #303030;"><br /></span></span></div>
<!--HTML generated using hilite.me--><div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> com<span style="color: #333333;">.</span><span style="color: #0000cc;">synchronization</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">java.util.NoSuchElementException</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">java.util.concurrent.TimeUnit</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">java.util.function.Function</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.By</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebElement</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.chrome.ChromeDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.support.ui.FluentWait</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.support.ui.Wait</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.AfterTest</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.Test</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">FluentWait</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">static</span> WebDriver driver<span style="color: #333333;">;</span>
<span style="color: #555555; font-weight: bold;">@Test</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">()</span> <span style="color: #008800; font-weight: bold;">throws</span> InterruptedException <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">setProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"webdriver.chrome.driver"</span><span style="color: #333333;">,</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">getProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"user.dir"</span><span style="color: #333333;">)</span> <span style="color: #333333;">+</span> <span style="background-color: #fff0f0;">"/src/main/resources/chromedriver"</span><span style="color: #333333;">);</span>
driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">();</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"http://the-internet.herokuapp.com/dynamic_loading/1"</span><span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//button[text()='Start']"</span><span style="color: #333333;">)).</span><span style="color: #0000cc;">click</span><span style="color: #333333;">();</span>
<span style="color: #888888;">// Fluent Wait</span>
Wait<span style="color: #333333;"><</span>WebDriver<span style="color: #333333;">></span> fluentWait <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> FluentWait<span style="color: #333333;"><</span>WebDriver<span style="color: #333333;">>(</span>driver<span style="color: #333333;">)</span>
<span style="color: #333333;">.</span><span style="color: #0000cc;">withTimeout</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">30</span><span style="color: #333333;">,</span> TimeUnit<span style="color: #333333;">.</span><span style="color: #0000cc;">SECONDS</span><span style="color: #333333;">)</span>
<span style="color: #333333;">.</span><span style="color: #0000cc;">pollingEvery</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">1</span><span style="color: #333333;">,</span> TimeUnit<span style="color: #333333;">.</span><span style="color: #0000cc;">SECONDS</span><span style="color: #333333;">)</span>
<span style="color: #333333;">.</span><span style="color: #0000cc;">ignoring</span><span style="color: #333333;">(</span>NoSuchElementException<span style="color: #333333;">.</span><span style="color: #0000cc;">class</span><span style="color: #333333;">);</span>
WebElement content <span style="color: #333333;">=</span> fluentWait<span style="color: #333333;">.</span><span style="color: #0000cc;">until</span><span style="color: #333333;">(</span><span style="color: #008800; font-weight: bold;">new</span> Function<span style="color: #333333;"><</span>WebDriver<span style="color: #333333;">,</span> WebElement<span style="color: #333333;">>()</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">public</span> WebElement <span style="color: #0066bb; font-weight: bold;">apply</span><span style="color: #333333;">(</span>WebDriver driver<span style="color: #333333;">)</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">return</span> driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//h4[text()='Hello World!']"</span><span style="color: #333333;">));</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">});</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">out</span><span style="color: #333333;">.</span><span style="color: #0000cc;">println</span><span style="color: #333333;">(</span>content<span style="color: #333333;">.</span><span style="color: #0000cc;">getText</span><span style="color: #333333;">());</span>
<span style="color: #333333;">}</span>
<span style="color: #555555; font-weight: bold;">@AfterTest</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">close</span><span style="color: #333333;">()</span> <span style="color: #333333;">{</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">quit</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<h1 class="app-header--heading" style="color: #172b4d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 1.71429em; font-weight: 500; letter-spacing: -0.01em; line-height: 1.16667; margin: 10px 0px 0px; padding: 0px; position: relative; text-indent: 0px; text-size-adjust: auto;">
<span class="file-path"><u><i>ImplicitWait.java</i></u></span></h1>
</div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span face=""trebuchet ms" , sans-serif"><span style="background-color: white; color: #303030;"><br /></span></span></div>
<!--HTML generated using hilite.me--><div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> com<span style="color: #333333;">.</span><span style="color: #0000cc;">synchronization</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">java.util.concurrent.TimeUnit</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.By</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebElement</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.chrome.ChromeDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.Assert</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.AfterTest</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.Test</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">ImplicitWait</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">static</span> WebDriver driver<span style="color: #333333;">;</span>
<span style="color: #555555; font-weight: bold;">@Test</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">()</span> <span style="color: #008800; font-weight: bold;">throws</span> InterruptedException <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">setProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"webdriver.chrome.driver"</span><span style="color: #333333;">,</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">getProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"user.dir"</span><span style="color: #333333;">)</span> <span style="color: #333333;">+</span> <span style="background-color: #fff0f0;">"/src/main/resources/chromedriver"</span><span style="color: #333333;">);</span>
driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">();</span>
<span style="color: #888888;">// Implicit Wait</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">manage</span><span style="color: #333333;">().</span><span style="color: #0000cc;">timeouts</span><span style="color: #333333;">().</span><span style="color: #0000cc;">implicitlyWait</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">30</span><span style="color: #333333;">,</span> TimeUnit<span style="color: #333333;">.</span><span style="color: #0000cc;">SECONDS</span><span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"http://the-internet.herokuapp.com/dynamic_controls"</span><span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//button[@id='btn']"</span><span style="color: #333333;">)).</span><span style="color: #0000cc;">click</span><span style="color: #333333;">();</span>
WebElement checkBox <span style="color: #333333;">=</span> driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//input[@id='checkbox']"</span><span style="color: #333333;">));</span>
Assert<span style="color: #333333;">.</span><span style="color: #0000cc;">assertTrue</span><span style="color: #333333;">(</span>checkBox<span style="color: #333333;">.</span><span style="color: #0000cc;">isDisplayed</span><span style="color: #333333;">(),</span> <span style="background-color: #fff0f0;">"checkBox is not displayed"</span><span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//button[text()='Remove']"</span><span style="color: #333333;">)).</span><span style="color: #0000cc;">click</span><span style="color: #333333;">();</span>
WebElement message <span style="color: #333333;">=</span> driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">id</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"message"</span><span style="color: #333333;">));</span>
Assert<span style="color: #333333;">.</span><span style="color: #0000cc;">assertTrue</span><span style="color: #333333;">(</span>message<span style="color: #333333;">.</span><span style="color: #0000cc;">isDisplayed</span><span style="color: #333333;">(),</span> <span style="background-color: #fff0f0;">"Message is not displayed"</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #555555; font-weight: bold;">@AfterTest</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">close</span><span style="color: #333333;">()</span> <span style="color: #333333;">{</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">quit</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div>
<div style="color: #666666; direction: ltr; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<h1 class="app-header--heading" style="color: #172b4d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 1.71429em; font-weight: 500; letter-spacing: -0.01em; line-height: 1.16667; margin: 10px 0px 0px; padding: 0px; position: relative; text-indent: 0px; text-size-adjust: auto;">
<span class="file-path"><u><i>PageLoadTimeOut.java</i></u></span></h1>
<div>
<span class="file-path"><br /></span></div>
</div>
<!--HTML generated using hilite.me--><div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> com<span style="color: #333333;">.</span><span style="color: #0000cc;">synchronization</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">java.util.concurrent.TimeUnit</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.chrome.ChromeDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.AfterTest</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.Test</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">PageLoadTimeOut</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">static</span> WebDriver driver<span style="color: #333333;">;</span>
<span style="color: #555555; font-weight: bold;">@Test</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">()</span> <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">setProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"webdriver.chrome.driver"</span><span style="color: #333333;">,</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">getProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"user.dir"</span><span style="color: #333333;">)</span> <span style="color: #333333;">+</span> <span style="background-color: #fff0f0;">"/src/main/resources/chromedriver"</span><span style="color: #333333;">);</span>
driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">();</span>
<span style="color: #888888;">// Page Load Time Out</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">manage</span><span style="color: #333333;">().</span><span style="color: #0000cc;">timeouts</span><span style="color: #333333;">().</span><span style="color: #0000cc;">pageLoadTimeout</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">1</span><span style="color: #333333;">,</span> TimeUnit<span style="color: #333333;">.</span><span style="color: #0000cc;">MILLISECONDS</span><span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"http://the-internet.herokuapp.com/dynamic_loading/1"</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #555555; font-weight: bold;">@AfterTest</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">close</span><span style="color: #333333;">()</span> <span style="color: #333333;">{</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">quit</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div>
<div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.31in; margin-top: 0pt; text-align: left; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<pre style="color: #172b4d; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 12px; letter-spacing: 0px; line-height: 1.4; padding: 0px; text-indent: 0px;"><span class="o" style="background-color: white; font-weight: 700;"><h1 class="app-header--heading" style="font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 1.71429em; font-weight: 500; letter-spacing: -0.01em; line-height: 1.16667; margin: 10px 0px 0px; padding: 0px; position: relative; text-size-adjust: auto; white-space: normal;">
<span class="file-path"><u><i>ThreadSleep.java</i></u></span></h1>
<!--HTML generated using hilite.me--><div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> com<span style="color: #333333;">.</span><span style="color: #0000cc;">synchronization</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.By</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebElement</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.chrome.ChromeDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.Assert</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.AfterTest</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.testng.annotations.Test</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">ThreadSleep</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">static</span> WebDriver driver<span style="color: #333333;">;</span>
<span style="color: #555555; font-weight: bold;">@Test</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">()</span> <span style="color: #008800; font-weight: bold;">throws</span> InterruptedException <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">setProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"webdriver.chrome.driver"</span><span style="color: #333333;">,</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">getProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"user.dir"</span><span style="color: #333333;">)</span> <span style="color: #333333;">+</span> <span style="background-color: #fff0f0;">"/src/main/resources/chromedriver"</span><span style="color: #333333;">);</span>
driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">();</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"http://the-internet.herokuapp.com/dynamic_controls"</span><span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//button[@id='btn']"</span><span style="color: #333333;">)).</span><span style="color: #0000cc;">click</span><span style="color: #333333;">();</span>
<span style="color: #888888;">// Thread.Sleep()</span>
Thread<span style="color: #333333;">.</span><span style="color: #0000cc;">sleep</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">1000</span><span style="color: #333333;">);</span>
WebElement checkBox <span style="color: #333333;">=</span> driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//input[@id='checkbox']"</span><span style="color: #333333;">));</span>
Assert<span style="color: #333333;">.</span><span style="color: #0000cc;">assertTrue</span><span style="color: #333333;">(</span>checkBox<span style="color: #333333;">.</span><span style="color: #0000cc;">isDisplayed</span><span style="color: #333333;">(),</span> <span style="background-color: #fff0f0;">"checkBox is not displayed"</span><span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">xpath</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"//button[text()='Remove']"</span><span style="color: #333333;">)).</span><span style="color: #0000cc;">click</span><span style="color: #333333;">();</span>
<span style="color: #888888;">// Thread.Sleep()</span>
Thread<span style="color: #333333;">.</span><span style="color: #0000cc;">sleep</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">10000</span><span style="color: #333333;">);</span>
WebElement message <span style="color: #333333;">=</span> driver<span style="color: #333333;">.</span><span style="color: #0000cc;">findElement</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">id</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"message"</span><span style="color: #333333;">));</span>
Assert<span style="color: #333333;">.</span><span style="color: #0000cc;">assertTrue</span><span style="color: #333333;">(</span>message<span style="color: #333333;">.</span><span style="color: #0000cc;">isDisplayed</span><span style="color: #333333;">(),</span> <span style="background-color: #fff0f0;">"Message is not displayed"</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #555555; font-weight: bold;">@AfterTest</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">close</span><span style="color: #333333;">()</span> <span style="color: #333333;">{</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">quit</span><span style="color: #333333;">();</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table></div></span></pre><pre style="line-height: 1.4; padding: 0px; text-indent: 0px;"><pre style="color: #172b4d; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 12px; letter-spacing: 0px; line-height: 1.4; padding: 0px;"><br /></pre><pre style="color: #172b4d; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 12px; letter-spacing: 0px; line-height: 1.4; padding: 0px;"><span class="o" style="background-color: white; font-weight: 700;">(Synchronization with all types of waits in WebDriver)</span></pre><span style="background-color: white; color: #172b4d; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 12px; letter-spacing: 0px;">
</span><pre style="line-height: 1.4; padding: 0px;"><span class="o" style="background-color: white;"><h1 class="app-header--heading" style="color: #172b4d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 1.71429em; font-weight: 500; letter-spacing: -0.01em; line-height: 1.16667; margin: 10px 0px 0px; padding: 0px; position: relative; text-size-adjust: auto; white-space: normal;">
<span class="file-path"><u><i>Synchronization.java</i></u></span></h1><span style="color: #172b4d; font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 12px; letter-spacing: 0px;"><b>
</b></span><b><!--HTML generated using hilite.me--></b></span><div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; color: #172b4d; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0px; overflow: auto; padding: 0.2em 0.6em; width: auto;"><table><tbody><tr><td><pre style="line-height: 125%; margin: 0px;"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52</pre></td><td><pre style="line-height: 125%; margin: 0px;"><span style="color: #008800; font-weight: bold;">package</span> com<span style="color: #333333;">.</span><span style="color: #0000cc;">synchronization</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">java.util.NoSuchElementException</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">java.util.concurrent.TimeUnit</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.By</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.WebDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.chrome.ChromeDriver</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.support.ui.ExpectedConditions</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.support.ui.FluentWait</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.support.ui.Wait</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">import</span> <span style="color: #0e84b5; font-weight: bold;">org.openqa.selenium.support.ui.WebDriverWait</span><span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">class</span> <span style="color: #bb0066; font-weight: bold;">synchronization</span> <span style="color: #333333;">{</span>
<span style="color: #008800; font-weight: bold;">static</span> WebDriver driver<span style="color: #333333;">;</span>
<span style="color: #008800; font-weight: bold;">public</span> <span style="color: #008800; font-weight: bold;">static</span> <span style="color: #333399; font-weight: bold;">void</span> <span style="color: #0066bb; font-weight: bold;">main</span><span style="color: #333333;">(</span>String<span style="color: #333333;">[]</span> args<span style="color: #333333;">)</span> <span style="color: #008800; font-weight: bold;">throws</span> InterruptedException <span style="color: #333333;">{</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">setProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"webdriver.chrome.driver"</span><span style="color: #333333;">,</span>
System<span style="color: #333333;">.</span><span style="color: #0000cc;">getProperty</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"user.dir"</span><span style="color: #333333;">)</span> <span style="color: #333333;">+</span> <span style="background-color: #fff0f0;">"/src/main/resources/chromedriver"</span><span style="color: #333333;">);</span>
driver <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> ChromeDriver<span style="color: #333333;">();</span>
<span style="color: #888888;">// Page Load Time Out</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">manage</span><span style="color: #333333;">().</span><span style="color: #0000cc;">timeouts</span><span style="color: #333333;">().</span><span style="color: #0000cc;">pageLoadTimeout</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">30</span><span style="color: #333333;">,</span> TimeUnit<span style="color: #333333;">.</span><span style="color: #0000cc;">SECONDS</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Implicit Wait</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">manage</span><span style="color: #333333;">().</span><span style="color: #0000cc;">timeouts</span><span style="color: #333333;">().</span><span style="color: #0000cc;">implicitlyWait</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">30</span><span style="color: #333333;">,</span> TimeUnit<span style="color: #333333;">.</span><span style="color: #0000cc;">SECONDS</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Explicit Wait</span>
WebDriverWait explicitWait <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> WebDriverWait<span style="color: #333333;">(</span>driver<span style="color: #333333;">,</span> <span style="color: #0000dd; font-weight: bold;">30</span><span style="color: #333333;">);</span>
explicitWait<span style="color: #333333;">.</span><span style="color: #0000cc;">until</span><span style="color: #333333;">(</span>ExpectedConditions<span style="color: #333333;">.</span><span style="color: #0000cc;">visibilityOfElementLocated</span><span style="color: #333333;">(</span>By<span style="color: #333333;">.</span><span style="color: #0000cc;">id</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"id"</span><span style="color: #333333;">)));</span>
<span style="color: #888888;">// Fluent Wait</span>
Wait<span style="color: #333333;"><</span>WebDriver<span style="color: #333333;">></span> fluentWait <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">new</span> FluentWait<span style="color: #333333;"><</span>WebDriver<span style="color: #333333;">>(</span>driver<span style="color: #333333;">)</span>
<span style="color: #888888;">// Waiting 30 seconds for an element to be present on the page, checking</span>
<span style="color: #333333;">.</span><span style="color: #0000cc;">withTimeout</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">30</span><span style="color: #333333;">,</span> TimeUnit<span style="color: #333333;">.</span><span style="color: #0000cc;">SECONDS</span><span style="color: #333333;">)</span>
<span style="color: #888888;">// for its presence once every 5 seconds.</span>
<span style="color: #333333;">.</span><span style="color: #0000cc;">pollingEvery</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">5</span><span style="color: #333333;">,</span> TimeUnit<span style="color: #333333;">.</span><span style="color: #0000cc;">SECONDS</span><span style="color: #333333;">)</span>
<span style="color: #333333;">.</span><span style="color: #0000cc;">ignoring</span><span style="color: #333333;">(</span>NoSuchElementException<span style="color: #333333;">.</span><span style="color: #0000cc;">class</span><span style="color: #333333;">);</span>
<span style="color: #888888;">// Thread.sleep()</span>
Thread<span style="color: #333333;">.</span><span style="color: #0000cc;">sleep</span><span style="color: #333333;">(</span><span style="color: #0000dd; font-weight: bold;">3000</span><span style="color: #333333;">);</span>
driver<span style="color: #333333;">.</span><span style="color: #0000cc;">get</span><span style="color: #333333;">(</span><span style="background-color: #fff0f0;">"http://www.google.com"</span><span style="color: #333333;">);</span>
<span style="color: #333333;">}</span>
<span style="color: #333333;">}</span>
</pre></td></tr></tbody></table>
</div><div style="background-color: white; background: white; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"><h2 style="line-height: 1.4; padding: 0px;"><div style="text-align: center;"><div style="color: #172b4d; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0px;"><span style="color: #ffa400; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: medium; white-space: normal;">The Source Code for above topic is available on GitHub Repository, You can get it from this URL:-</span></div><div style="color: #172b4d; font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0px;"><span style="color: #ffa400; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: medium; white-space: normal;"><a href="https://github.com/patilshubham033/Synchronization/tree/master/src/main/java/com/synchronization" target="_blank">https://github.com/patilshubham033/Synchronization/tree/master/src/main/java/com/synchronization</a><br /></span></div></div></h2></div></span></pre><h2 style="color: #172b4d; font-family: arial, tahoma, helvetica, freesans, sans-serif; letter-spacing: 0px; line-height: 1.4; padding: 0px; text-align: left;"><div style="text-align: center;"><br /></div></h2></pre>
</div>
</div>
</div>
</div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.com0tag:blogger.com,1999:blog-8281255614362562168.post-91587854065324936792018-03-01T19:58:00.000+05:302018-03-01T21:49:41.821+05:30Difference between Selenium IDE, Selenium RC, Selenium WebDriver & Selenium Grid<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h2 style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="background: white; color: #333333; font-family: "helvetica" , "sans-serif"; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span></span><span style="color: #333333; font-family: "helvetica" , sans-serif;"><span style="font-size: 13.3333px;"><b>Difference between Selenium IDE, Selenium RC, Selenium WebDriver & Selenium Grid</b></span></span></h2>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoListParagraphCxSpFirst" style="margin-left: 27.0pt; mso-add-space: auto; mso-list: l4 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><b style="mso-bidi-font-weight: normal;"><span style="color: #333333; font-family: "helvetica" , "sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="mso-list: Ignore;">1.<span style="font: 7.0pt "Times New Roman";">
</span></span></span></b><!--[endif]--><b style="mso-bidi-font-weight: normal;"><span style="background: white; color: #333333; font-family: "helvetica" , "sans-serif"; font-size: 10.0pt; line-height: 115%;">Selenium IDE (Integrated Development
Environment) :-<o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l2 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">1.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Firefox add-on </span><span style="background: white; font-family: "times new roman" , "serif"; line-height: 115%;">Selenium IDE</span><span style="background: white; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"> allows
users to record and re-play user actions in Firefox. It supports exporting the
recorded scripts into Selenium RC or Selenium WebDriver code.</span><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 9.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l2 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">2.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Core part is based on
<b style="mso-bidi-font-weight: normal;">JavaScript</b><span style="mso-spacerun: yes;"> </span>and Supports different extensions in it.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l2 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">3.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">It supports User
Interface so no need to use different programming language.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l2 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">4.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Supported only in
FireFox browser.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l2 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">5.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">It is not object
oriented.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l2 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">6.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">No need to start
server before executing the script.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l2 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">7.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Does not support
listeners.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l2 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">8.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Doesn’t support
mobile testing i.e. Android/IPhone applications.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 27.0pt; mso-add-space: auto; mso-list: l4 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><b style="mso-bidi-font-weight: normal;"><span style="color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">2.<span style="font: 7.0pt "Times New Roman";">
</span></span></span></b><!--[endif]--><b style="mso-bidi-font-weight: normal;"><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Selenium RC (Remote
Control) :-<o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l1 level1 lfo3; text-indent: -.25in;">
<!--[if !supportLists]--><b style="mso-bidi-font-weight: normal;"><span style="color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">1.<span style="font: 7.0pt "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Selenium RC is the first version of Selenium API, which was
generally known as Selenium<b style="mso-bidi-font-weight: normal;">.<o:p></o:p></b></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l1 level1 lfo3; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">2.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Core part is based on
<b style="mso-bidi-font-weight: normal;">JavaScript</b><span style="mso-spacerun: yes;"> </span>and Supports different extensions in it.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l1 level1 lfo3; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">3.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Doesn’t support User
Interface but accepts all programming languages – Java, Pearl, Ruby, Python,
C++, JavaScript, C#, Tecla etc.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l1 level1 lfo3; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">4.<span style="font: 7.0pt "Times New Roman";">
</span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Supported
in all browsers including Mozilla FireFox, Google Chrome, Internet Explorer,
Safari Browser, Opera.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l1 level1 lfo3; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">5.<span style="font: 7.0pt "Times New Roman";">
</span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">It is
rarely object oriented.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l1 level1 lfo3; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">6.<span style="font: 7.0pt "Times New Roman";">
</span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Needs to
start the server before executing test cases.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l1 level1 lfo3; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">7.<span style="font: 7.0pt "Times New Roman";">
</span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Does not
support listeners.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: .75in; mso-add-space: auto; mso-list: l1 level1 lfo3; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">8.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Doesn’t support
mobile testing i.e. Android/IPhone applications.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 27.0pt; mso-add-space: auto; mso-list: l4 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><b style="mso-bidi-font-weight: normal;"><span style="color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">3.<span style="font: 7.0pt "Times New Roman";">
</span></span></span></b><!--[endif]--><b style="mso-bidi-font-weight: normal;"><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Selenium WebDriver
(Selenium 2) :-<o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "helvetica" , "sans-serif"; font-size: 12.0pt;"><span style="mso-list: Ignore;">1.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt;">Selenium WebDriver, provides APIs in a variety of languages
to allow for more control and the application of standard software development
practices.</span><span style="color: black; font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "helvetica" , "sans-serif"; font-size: 12.0pt;"><span style="mso-list: Ignore;">2.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt;">It interacts natively with browser applications. Does not
affect if application has different coding language.</span><span style="color: black; font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "helvetica" , "sans-serif"; font-size: 12.0pt;"><span style="mso-list: Ignore;">3.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt;">Doesn’t support User Interface, mainly uses Java programming
language, and supports all programming languages.</span><span style="color: black; font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "helvetica" , "sans-serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">4.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Supported in all types of browsers.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "helvetica" , "sans-serif"; font-size: 12.0pt;"><span style="mso-list: Ignore;">5.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="color: black; font-family: "times new roman" , "serif"; font-size: 12.0pt;">It
is fully object oriented.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: white; line-height: normal; margin-bottom: 12.0pt; margin-left: 45.0pt; margin-right: 0in; margin-top: 12.0pt; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "helvetica" , "sans-serif"; font-size: 12.0pt;"><span style="mso-list: Ignore;">6.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="color: black; font-family: "times new roman" , "serif"; font-size: 12.0pt;">Does
not need to start the server before executing test cases.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: white; line-height: normal; margin-bottom: 12.0pt; margin-left: 45.0pt; margin-right: 0in; margin-top: 12.0pt; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "helvetica" , "sans-serif"; font-size: 12.0pt;"><span style="mso-list: Ignore;">7.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="color: black; font-family: "times new roman" , "serif"; font-size: 12.0pt;">Supports
the implementation of listeners like TestNG listener.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: white; line-height: normal; margin-bottom: 12.0pt; margin-left: 45.0pt; margin-right: 0in; margin-top: 12.0pt; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "helvetica" , "sans-serif"; font-size: 12.0pt;"><span style="mso-list: Ignore;">8.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="color: black; font-family: "times new roman" , "serif"; font-size: 12.0pt;">It
supports all type of mobile testing. Android as well as IPhone applications.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: white; line-height: normal; margin-bottom: 12.0pt; margin-left: 27.0pt; margin-right: 0in; margin-top: 12.0pt; mso-add-space: auto; mso-list: l4 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><b style="mso-bidi-font-weight: normal;"><span style="color: black; font-family: "times new roman" , "serif"; font-size: 12.0pt;"><span style="mso-list: Ignore;">4.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><!--[endif]--><b style="mso-bidi-font-weight: normal;"><span style="color: black; font-family: "times new roman" , "serif"; font-size: 12.0pt;">Selenium Grid :-<o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpLast" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l3 level1 lfo5; text-indent: -.25in;">
<!--[if !supportLists]--><span style="color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;"><span style="mso-list: Ignore;">1.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="background: white; color: #333333; font-family: "times new roman" , "serif"; font-size: 12.0pt; line-height: 115%;">Selenium Grid, makes
it possible to use the Selenium APIs to control browser instances distributed
over a grid of machines, allowing more tests to run in parallel.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; mso-list: l3 level1 lfo5; mso-margin-top-alt: auto; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: "palatino linotype" , "serif"; font-size: 12.0pt;"><span style="mso-list: Ignore;">2.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">JSON WIRE
PROTOCOL</span><span style="font-family: "palatino linotype" , "serif"; font-size: 12.0pt;"> is
the underlying technology used by client side drivers to communicate with
server side RemoteWebDriver.<o:p></o:p></span></div>
<div class="MsoListParagraph" style="background: white; line-height: normal; margin-left: 45.0pt; mso-add-space: auto; mso-list: l3 level1 lfo5; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: "palatino linotype" , "serif"; font-size: 12.0pt;"><span style="mso-list: Ignore;">3.<span style="font: 7.0pt "Times New Roman";">
</span></span></span><!--[endif]--><span style="font-family: "palatino linotype" , "serif"; font-size: 12.0pt;">Selenium
Grid is a tool uses Selenium Server to execute either Selenium RC or
Selenium WebDriver tests in parallel on different machines.<o:p></o:p></span></div>
</div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.comtag:blogger.com,1999:blog-8281255614362562168.post-73394415182980262182018-03-01T16:51:00.005+05:302018-03-08T23:34:57.750+05:30Selenium Tutorial for Beginners: An Introduction to Selenium<div dir="ltr" style="text-align: left;" trbidi="on">
Selenium Tutorial for Beginners: An Introduction to Selenium<br />
<div style="text-align: justify;">
<span style="font-weight: 700;"><br /></span></div>
<div style="text-align: justify;">
<b>What is Selenium?</b></div>
<div style="text-align: justify;">
<br /></div>
<div class="page" title="Page 2">
<div class="layoutArea">
<div class="column">
<div style="text-align: justify;">
<span style="font-family: "corbel"; font-size: 11.000000pt;">Selenium is a </span><span style="font-family: "corbel"; font-size: 11.000000pt; font-weight: 700;">free </span><span style="font-family: "corbel"; font-size: 11.000000pt;">and </span><span style="font-family: "corbel"; font-size: 11.000000pt; font-weight: 700;">open source </span><span style="font-family: "corbel"; font-size: 11.000000pt;">web application automation tool. Also we can call it as
</span><span style="font-family: "corbel"; font-size: 11.000000pt; font-weight: 700;">Functional Testing </span><span style="font-family: "corbel"; font-size: 11.000000pt;">web application automation tool. </span><br />
<b><br /></b>
<span style="font-family: "corbel";"><span style="font-size: 14.6667px;"> <b>1. </b></span></span><b>Free: </b>We can use Selenium for commercial purpose without purchasing any license.</div>
<div>
<ul style="text-align: left;">
<li style="text-align: justify;">URL<span style="font-family: "corbel"; font-size: 11pt;">: </span><span style="color: blue; font-family: "corbel"; font-size: 11pt;">http://docs.seleniumhq.org/download/ </span></li>
<li style="text-align: justify;">Heading: Selenium Stand Alone Server</li>
<li style="text-align: justify;">Link: Download Version 3.8.1</li>
<li style="text-align: justify;">File: selenium-server-standalone-3.8.1.jar</li>
</ul>
</div>
<ol start="0" style="list-style-type: none;">
<li style="text-align: justify;"></li>
<li style="text-align: justify;"><span style="font-family: inherit;"><b>2. Open Source: </b><span style="font-size: 11pt;">We can view, download and customize the source code of selenium itself. We can see the source code in following website:</span><span style="font-size: 11pt;"> </span><span style="color: #548dd4; font-size: 11pt;">https://github.com/SeleniumHQ/selenium</span></span></li>
<li style="text-align: justify;"><b>3. Web Application Automation Tool:</b> <span style="font-size: 11pt;">Selenium is software which is used to test the web application automatically but we can’t automate other type of applications such as Standalone (Desktop) and Client Server applications.</span></li>
</ol>
<div style="text-align: justify;">
<b>Flavors Of Selenium</b><br />
<ol>
<li>Selenium IDE</li>
<li>Selenium RC</li>
<li>Selenium-Grid</li>
<li>Selenium Web Driver/Selenium 2.0</li>
</ol>
</div>
</div>
</div>
</div>
<div style="text-align: justify;">
<b>1) Selenium-IDE:</b><br />
<div style="text-align: justify;">
<ul>
<li>Selenium-IDE is the Integrated Development Environment for building Selenium test cases. </li>
<li>It is Firefox add-on and provides an easy-to-use interface for developing and running individual test cases or entire test suites. </li>
<li>Selenium-IDE has a recording feature, which will keep account of user actions as they are performed and store them as a reusable script to play back. </li>
<li>It also has a context menu (right-click) integrated with the Firefox browser, which allows the user to pick from a list of assertions and verifications for the selected location. </li>
<li>Selenium-IDE also offers full editing of test cases for more precision and control. </li>
<li>Although Selenium-IDE is a Firefox add-on, tests created in it can also be run against other browsers by using Selenium-RC and specifying the name of the test suite on the command line.</li>
</ul>
</div>
<div style="text-align: justify;">
<b>2) Selenium-IDE:</b><br />
<ul>
<li>Selenium-RC allows the test automation developer to use a programming language for maximum flexibility and extensibility in developing test logic.</li>
<li>For instance, if the application under test returns a result set, and if the automated test program needs to run tests on each element in the result set, the programming language’s iteration support can be used to iterate through the result set, calling Selenium commands to run tests on each item.</li>
<li>Selenium-RC provides an API (Application Programming Interface) and library for each of its supported languages: HTML, Java, C#, Perl, PHP, Python, and Ruby.</li>
</ul>
<b>3) Selenium-Grid:</b><br />
<ul>
<li>Selenium-Grid allows the Selenium-RC solution to scale for large test suites or test suites that must be run in multiple environments.</li>
<li>With Selenium-Grid, multiple instances of Selenium-RC are running on various operating system and browser configurations;</li>
<li>Each of these when launching register with a hub.</li>
<li>When tests are sent to the hub they are then redirected to an available Selenium-RC, which will launch the browser and run the test.</li>
<li>This allows for running tests in parallel, with the entire test suite theoretically taking only as long to run as the longest individual test.</li>
</ul>
<b>4) Selenium web driver/selenium 2.0:</b><br />
<ul>
<li>Selenium 2.0 has many new exciting features and improvements over Selenium 1. 0</li>
<li>The primary new feature is the integration of the WebDriver API. This addresses a number of limitations along with providing an alternative, and simpler, programming interface.</li>
<li>The goal is to develop an object-oriented API that provides additional support for a larger number of browsers along with improved support for modern advanced web-app testing problems.</li>
</ul>
<b><br /></b></div>
</div>
</div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.comtag:blogger.com,1999:blog-8281255614362562168.post-19010051987744616552018-03-01T16:44:00.003+05:302018-03-08T23:35:55.654+05:30Creating a Simple Maven Project<div dir="ltr" style="text-align: left;" trbidi="on">
<h4 id="CreatingaSimpleMavenProject-CreatingtheMavenProjectinEclipseusingarchetypes" style="background-color: white; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
<span style="color: white;">
Creating a Simple Maven Project</span></h4>
<h4 id="CreatingaSimpleMavenProject-CreatingtheMavenProjectinEclipseusingarchetypes" style="background-color: white; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
Creating the Maven Project in Eclipse</h4>
<div>
<br /></div>
<div>
<h5 id="CreatingaSimpleMavenProject-Prerequisite" style="background-color: white; color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
Prerequisite</h5>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; margin-top: 10px; padding: 0px;">
You will need to install the Eclipse IDE, Maven plugin found at the Eclipse Marketplace</div>
<h5 id="CreatingaSimpleMavenProject-Step1.CreateaNewMavenProject" style="background-color: white; color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
Step 1. Create a New Maven Project</h5>
<ol style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; margin: 10px 0px 0px;">
<li>Click 'File' -> 'New' -> 'Other' -> 'Maven Project' and then click 'Next'.</li>
</ol>
<div>
<span style="color: #333333; font-family: "arial" , sans-serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0O76kn9Ypi1b_gXSh_0ytfL8douQ_9sBjX1VFBNPC4L0MuWhm8FOvYcu5tvVr1zR4We-BedLwgqaNFHTaaOR5oQDnj0b93pQgDqo01-gpHu8Educjy0j1Wfs89S5yPsbUw6MUf_MVZLw/s1600/Screen+Shot+2017-09-25+at+10.36.11+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1010" data-original-width="1064" height="378" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0O76kn9Ypi1b_gXSh_0ytfL8douQ_9sBjX1VFBNPC4L0MuWhm8FOvYcu5tvVr1zR4We-BedLwgqaNFHTaaOR5oQDnj0b93pQgDqo01-gpHu8Educjy0j1Wfs89S5yPsbUw6MUf_MVZLw/s400/Screen+Shot+2017-09-25+at+10.36.11+PM.png" width="400" /></a></div>
<div>
<h5 id="CreatingaSimpleMavenProject-Step2.Selectprojectnameandlocation." style="background-color: white; color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
Step 2. Select project name and location. </h5>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; margin-top: 10px; padding: 0px;">
Use the default Workspace location or specify the location if necessary.<br />
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhynn8oRD7G8pXi4Dl_YtNcCOUjYochUxhiMcIDQK3rPbj84ow9HSPxXk1ELcTpQvpqNCXBXjiJGljc4pozNrVtYn7h_sqjCyVA_N-HzKTAMCT6TWHZ4h-krD5GhCIFdXTFB6OWmyz7M0s/s1600/Screen+Shot+2017-09-25+at+10.41.11+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1092" data-original-width="1490" height="292" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhynn8oRD7G8pXi4Dl_YtNcCOUjYochUxhiMcIDQK3rPbj84ow9HSPxXk1ELcTpQvpqNCXBXjiJGljc4pozNrVtYn7h_sqjCyVA_N-HzKTAMCT6TWHZ4h-krD5GhCIFdXTFB6OWmyz7M0s/s400/Screen+Shot+2017-09-25+at+10.41.11+PM.png" width="400" /></a></div>
</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; margin-top: 10px; padding: 0px;">
<h5 id="CreatingaSimpleMavenProject-Step3.Selectanarchetype" style="color: #3d3d3d; font-family: arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px; text-align: justify;">
Step 3. Select an archetype</h5>
<div style="font-family: Arial, sans-serif; margin-top: 10px; padding: 0px;">
<div style="text-align: justify;">
Select the maven-archetype-quickstart archetype from the list. It's a simple Maven web structure that will help get you started.</div>
</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMLtOkTuCqt32kWItcbrK_U984IVI3iUGq7MvZ1sxgbS-Iix2P5ASDe9zrfsg6BF65Zz2Kv3mfBUnWFDdgfHW28UnYG_YHsEgHTueAgQXIf8L4KXeQVIVd-hzpqydL8WZe_JzwrQGDQNE/s1600/Screen+Shot+2017-09-25+at+10.43.15+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1076" data-original-width="1490" height="288" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMLtOkTuCqt32kWItcbrK_U984IVI3iUGq7MvZ1sxgbS-Iix2P5ASDe9zrfsg6BF65Zz2Kv3mfBUnWFDdgfHW28UnYG_YHsEgHTueAgQXIf8L4KXeQVIVd-hzpqydL8WZe_JzwrQGDQNE/s400/Screen+Shot+2017-09-25+at+10.43.15+PM.png" width="400" /></a></div>
<div>
<h5 id="CreatingaSimpleMavenProject-Step4.EntertheGroupidandArtifactId" style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
Step 4. Enter the Group id and Artifact Id</h5>
<div style="font-family: Arial, sans-serif; margin-top: 10px; padding: 0px;">
Enter the Group Id and Artifact Id and click 'Finish'<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRpT3nPiljsHfXhtTZaEToga_jGKdlaZWjEqvfdQfkjz_fQKpc6M13ocZtAmqfwRVOfyTprd9ld53IwMhxn4VArbg-RhOFke2D-i8T19CYmNnN-bBxe2AooNSVUnLMGP7CekjQ22jIZ_w/s1600/Screen+Shot+2017-09-25+at+10.47.34+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1080" data-original-width="1484" height="290" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRpT3nPiljsHfXhtTZaEToga_jGKdlaZWjEqvfdQfkjz_fQKpc6M13ocZtAmqfwRVOfyTprd9ld53IwMhxn4VArbg-RhOFke2D-i8T19CYmNnN-bBxe2AooNSVUnLMGP7CekjQ22jIZ_w/s400/Screen+Shot+2017-09-25+at+10.47.34+PM.png" width="400" /></a></div>
<h5 id="CreatingaSimpleMavenProject-Step5.YourNewMavenProject" style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
</h5>
<h5 id="CreatingaSimpleMavenProject-Step5.YourNewMavenProject" style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
</h5>
<h5 id="CreatingaSimpleMavenProject-Step5.YourNewMavenProject" style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
</h5>
<h5 id="CreatingaSimpleMavenProject-Step5.YourNewMavenProject" style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
</h5>
<h5 id="CreatingaSimpleMavenProject-Step5.YourNewMavenProject" style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
</h5>
<h5 id="CreatingaSimpleMavenProject-Step5.YourNewMavenProject" style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
</h5>
<h5 id="CreatingaSimpleMavenProject-Step5.YourNewMavenProject" style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
</h5>
<h5 id="CreatingaSimpleMavenProject-Step5.YourNewMavenProject" style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
</h5>
<h5 id="CreatingaSimpleMavenProject-Step5.YourNewMavenProject" style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
Step 5. Your New Maven Project</h5>
<div style="font-family: Arial, sans-serif; margin-top: 10px; padding: 0px;">
Below is what your sample structure looks like after you perform all the steps. This should help as a starting point.<br />
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOLIcJ0XLEw9Dq2DH1M2qu3eNZ9rA42YuFZFzzuySiVAgR7aAjLKeZDMhtPzBTwFx315031lOVkW0kaCSnEwEV4k9AtU60svFl08oLWK3fAugcx-w4c9JeHbdpXPFs5ZOho7E_h5QYjsM/s1600/Screen+Shot+2017-09-25+at+10.51.24+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="488" data-original-width="790" height="246" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOLIcJ0XLEw9Dq2DH1M2qu3eNZ9rA42YuFZFzzuySiVAgR7aAjLKeZDMhtPzBTwFx315031lOVkW0kaCSnEwEV4k9AtU60svFl08oLWK3fAugcx-w4c9JeHbdpXPFs5ZOho7E_h5QYjsM/s400/Screen+Shot+2017-09-25+at+10.51.24+PM.png" width="400" /></a></div>
<div style="font-family: Arial, sans-serif; margin-top: 10px; padding: 0px;">
<br /></div>
</div>
<div style="font-family: Arial, sans-serif; margin-top: 10px; padding: 0px;">
<br /></div>
</div>
</div>
</div>
</div>
Shubham Patilhttp://www.blogger.com/profile/09377645046336003815noreply@blogger.com