<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-824067517881717442</atom:id><lastBuildDate>Mon, 07 Sep 2026 15:44:33 +0000</lastBuildDate><title>BookOfTesting By Shailendra Trivedi</title><description>Total Solution for testing Manual and Automation</description><link>http://testingschoolst.blogspot.com/</link><managingEditor>noreply@blogger.com (ShailandraTrivedi)</managingEditor><generator>Blogger</generator><openSearch:totalResults>187</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-4620014382737958820</guid><pubDate>Thu, 31 Jan 2019 06:14:00 +0000</pubDate><atom:updated>2019-01-30T22:14:00.267-08:00</atom:updated><title>Python Features</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;box-sizing: border-box; font-family: Verdana, Geneva, Tahoma, Arial, Helvetica, sans-serif; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
Python&#39;s features include −&lt;/div&gt;
&lt;ul class=&quot;list&quot; style=&quot;box-sizing: border-box; color: #313131; font-family: Verdana, Geneva, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px;&quot;&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Easy-to-learn&lt;/span&gt;&amp;nbsp;− Python has few keywords, simple structure, and a clearly defined syntax. This allows the student to pick up the language quickly.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Easy-to-read&lt;/span&gt;&amp;nbsp;− Python code is more clearly defined and visible to the eyes.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Easy-to-maintain&lt;/span&gt;&amp;nbsp;− Python&#39;s source code is fairly easy-to-maintain.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;A broad standard library&lt;/span&gt;&amp;nbsp;− Python&#39;s bulk of the library is very portable and cross-platform compatible on UNIX, Windows, and Macintosh.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Interactive Mode&lt;/span&gt;&amp;nbsp;− Python has support for an interactive mode which allows interactive testing and debugging of snippets of code.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Portable&lt;/span&gt;&amp;nbsp;− Python can run on a wide variety of hardware platforms and has the same interface on all platforms.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Extendable&lt;/span&gt;&amp;nbsp;− You can add low-level modules to the Python interpreter. These modules enable programmers to add to or customize their tools to be more efficient.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Databases&lt;/span&gt;&amp;nbsp;− Python provides interfaces to all major commercial databases.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;GUI Programming&lt;/span&gt;&amp;nbsp;− Python supports GUI applications that can be created and ported to many system calls, libraries and windows systems, such as Windows MFC, Macintosh, and the X Window system of Unix.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Scalable&lt;/span&gt;&amp;nbsp;− Python provides a better structure and support for large programs than shell scripting.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;box-sizing: border-box; font-family: Verdana, Geneva, Tahoma, Arial, Helvetica, sans-serif; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
Apart from the above-mentioned features, Python has a big list of good features, few are listed below −&lt;/div&gt;
&lt;ul class=&quot;list&quot; style=&quot;box-sizing: border-box; color: #313131; font-family: Verdana, Geneva, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px;&quot;&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
It supports functional and structured programming methods as well as OOP.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
It can be used as a scripting language or can be compiled to byte-code for building large applications.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
It provides very high-level dynamic data types and supports dynamic type checking.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
It supports automatic garbage collection.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2019/01/python-features.html</link><author>noreply@blogger.com (ShailandraTrivedi)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-6494759153089460420</guid><pubDate>Thu, 31 Jan 2019 06:13:00 +0000</pubDate><atom:updated>2019-01-30T22:13:01.308-08:00</atom:updated><title>Python-Overview</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Geneva, Tahoma, Arial, Helvetica, sans-serif; font-size: 15px; text-align: justify;&quot;&gt;Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum during 1985- 1990. Like Perl, Python source code is also available under the GNU General Public License (GPL). This tutorial gives enough understanding on Python programming language.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Geneva, Tahoma, Arial, Helvetica, sans-serif; font-size: 15px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Geneva, Tahoma, Arial, Helvetica, sans-serif; font-size: 15px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;box-sizing: border-box; font-family: Verdana, Geneva, Tahoma, Arial, Helvetica, sans-serif; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages.&lt;/div&gt;
&lt;ul class=&quot;list&quot; style=&quot;box-sizing: border-box; color: #313131; font-family: Verdana, Geneva, Tahoma, Arial, Helvetica, sans-serif; font-size: 14px;&quot;&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Python is Interpreted&lt;/span&gt;&amp;nbsp;− Python is processed at runtime by the interpreter. You do not need to compile your program before executing it. This is similar to PERL and PHP.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Python is Interactive&lt;/span&gt;&amp;nbsp;− You can actually sit at a Python prompt and interact with the interpreter directly to write your programs.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Python is Object-Oriented&lt;/span&gt;&amp;nbsp;− Python supports Object-Oriented style or technique of programming that encapsulates code within objects.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: url(&amp;quot;/images/icon-bullet.png&amp;quot;); background-origin: initial; background-position: 0px 4px; background-repeat: no-repeat; background-size: initial; box-sizing: border-box; color: black; line-height: 24px; list-style: none; margin-bottom: 5px; padding: 0px 0px 0px 19px;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-size: 15px !important; line-height: 24px; margin: 0em 0.2em 0.6em; overflow-wrap: break-word; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 640;&quot;&gt;Python is a Beginner&#39;s Language&lt;/span&gt;&amp;nbsp;− Python is a great language for the beginner-level programmers and supports the development of a wide range of applications from simple text processing to WWW browsers to games.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2019/01/python-overview.html</link><author>noreply@blogger.com (ShailandraTrivedi)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-4424552460288950904</guid><pubDate>Tue, 24 Jul 2018 06:58:00 +0000</pubDate><atom:updated>2018-07-23T23:58:43.144-07:00</atom:updated><title>Read it out for TESTNG before going for an iterview</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;How
to run a group of test cases using TestNG?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;TestNG
allows you to perform sophisticated groupings of test methods. Not only can you
declare that methods belong to groups, but you can also specify groups that
contain other groups. Then TestNG can be invoked and asked to include a certain
set of groups (or regular expressions) while excluding another set.&amp;nbsp; This
gives you maximum flexibility in how you partition your tests and doesn’t
require you to recompile anything if you want to run two different sets of
tests back to back.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;Groups
are specified in your&amp;nbsp;testng.xml&amp;nbsp;file and can be found either under
the&amp;nbsp;&amp;lt;test&amp;gt;&amp;nbsp;or&amp;nbsp;&amp;lt;suite&amp;gt;&amp;nbsp;tag. Groups specified in
the&amp;nbsp;&amp;lt;suite&amp;gt;&amp;nbsp;tag apply to all the&amp;nbsp;&amp;lt;test&amp;gt;&amp;nbsp;tags
underneath.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;@Test
(groups = { &quot;smokeTest&quot;, &quot;functionalTest&quot; })&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;public
void loginTest(){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;System.out.println(&quot;Logged
in successfully&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; margin-bottom: 19.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;How to create Group of Groups in TestNG?&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; margin-bottom: 19.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Groups
can also include other groups. These groups are called&amp;nbsp;&lt;i&gt;MetaGroups&lt;/i&gt;.
For example, you might want to define a group&amp;nbsp;&lt;i&gt;all&lt;/i&gt;&amp;nbsp;that
includes&amp;nbsp;&lt;i&gt;smokeTest&amp;nbsp;&lt;/i&gt;and&amp;nbsp;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;functionalTest&lt;/span&gt;&lt;/em&gt;.
Let’s modify our testng.xml file as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;lt;groups&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;define name=&quot;all&quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;lt;include name=&quot;smokeTest&quot;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;lt;include
name=&quot;functionalTest&quot;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/define&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;run&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;include name=&quot;all&quot; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/run&amp;gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;lt;/groups&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;How to&amp;nbsp;run test
cases in parallel using TestNG?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;we can&amp;nbsp;use
“parallel” attribute in testng.xml to accomplish parallel test execution in
TestNG&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;The parallel attribute of
suite tag can accept four values:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;tests –&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;All the test cases inside &amp;lt;test&amp;gt; tag of
testng.xml file will run parallel&lt;br /&gt;
&lt;i&gt;classes –&amp;nbsp;&lt;/i&gt;All the test cases inside a java class will run parallel&lt;br /&gt;
&lt;i&gt;methods&lt;/i&gt;&amp;nbsp;– All the methods with&amp;nbsp;&lt;i&gt;@Test&lt;/i&gt;&amp;nbsp;annotation
will execute parallel&lt;i&gt;instance –&amp;nbsp;&lt;/i&gt;Test cases in same instance will
execute parallel but two methods of two different instances will run in
different thread.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;lt;suite
name=&quot;softwaretestingmaterial&quot; parallel=&quot;methods&quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; margin-bottom: 19.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;How
to exclude a particular test method from a test case execution?&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; margin-bottom: 19.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;By
adding the exclude tag in the&amp;nbsp;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;testng.xml&lt;/span&gt;&lt;/em&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;lt;classes&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;&amp;lt;class name=&quot;TestCaseName&quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&amp;lt;methods&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&amp;lt;exclude name=&quot;TestMethodNameToExclude&quot;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&amp;lt;/methods&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;&amp;lt;/class&amp;gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;lt;/classes&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; margin-bottom: 19.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;How
to exclude a particular test group from a test case execution?&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; margin-bottom: 19.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;By
adding the exclude tag in the&amp;nbsp;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;testng.xml&lt;/span&gt;&lt;/em&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;lt;groups&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&amp;lt;run&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;lt;exclude name=&quot;TestGroupNameToExclude&quot;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&amp;lt;/run&amp;gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;lt;/groups&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; margin-bottom: 19.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;How to disable a test case in TestNG ?&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; margin-bottom: 19.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;To
disable the test case we&amp;nbsp;use the parameter enabled = false to the @Test
annotation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;@Test(enabled = false)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;How to skip a @Test method from execution&amp;nbsp;in TestNG?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;By using&lt;i&gt;&amp;nbsp;throw new SkipException()&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Once&amp;nbsp;&lt;i&gt;SkipException()&lt;/i&gt;&amp;nbsp;thrown, remaining part
of that test method will&amp;nbsp;not be executed and control will goes directly to
next test method execution.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;throw new SkipException(&quot;Skipping - This is not
ready for testing &quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;How to Ignore a test
case in TestNG?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;To ignore the test case we&amp;nbsp;use the parameter enabled =
false to the @Test annotation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;@Test(enabled = false)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;How to
write regular expression In testng.xml file to search&amp;nbsp;@Test methods
containing “smoke” keyword.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Regular
expression to find&amp;nbsp;@Test methods containing keyword “smoke” is as
mentioned below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;lt;methods&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&amp;lt;include name=&quot;.*smoke.*&quot;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;span style=&quot;color: #222222; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;lt;/methods&amp;gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 19.5pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2018/07/read-it-out-for-testng-before-going-for.html</link><author>noreply@blogger.com (ShailandraTrivedi)</author><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-7996048008999063136</guid><pubDate>Tue, 24 Jul 2018 06:44:00 +0000</pubDate><atom:updated>2018-07-23T23:44:09.209-07:00</atom:updated><title>Importance of testng.xml file</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: verdana, sans-serif; font-size: 18px; margin-bottom: 26px; padding: 0px;&quot;&gt;
In a Selenium TestNG project, we use&amp;nbsp;&lt;i style=&quot;box-sizing: border-box;&quot;&gt;testng.xml&lt;/i&gt;&amp;nbsp;file to configure the complete test suite in a single file. Some of the features are as follows.&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: verdana, sans-serif; font-size: 18px; margin: 0px 0px 26px 40px; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: disc;&quot;&gt;testng.xml file allows to include or exclude the execution of test methods and test groups&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: disc;&quot;&gt;It allows to pass parameters to the test cases&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: disc;&quot;&gt;Allows to add group dependencies&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: disc;&quot;&gt;Allows to add priorities to the test cases&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: disc;&quot;&gt;Allows to configure parallel execution of test cases&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: disc;&quot;&gt;Allows to parameterize the test cases&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: verdana, sans-serif; font-size: 18px; margin-bottom: 26px; padding: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: 700;&quot;&gt;7. How to pass parameter through&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;testng.xml&lt;/em&gt;&amp;nbsp;file to a test case?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: verdana, sans-serif; font-size: 18px; margin-bottom: 26px; padding: 0px;&quot;&gt;
We could&amp;nbsp;define the parameters in the&amp;nbsp;&lt;i style=&quot;box-sizing: border-box;&quot;&gt;testng.xml&lt;/i&gt;&amp;nbsp;file and then reference those parameters in the source files.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: verdana, sans-serif; font-size: 18px; margin-bottom: 26px; padding: 0px;&quot;&gt;
Create a java test class, say,&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;ParameterizedTest.&lt;code style=&quot;background: rgb(225, 225, 225); border-radius: 4px; box-sizing: border-box; color: #1e1e1e; font-family: monospace, serif; font-size: 1em; position: relative;&quot;&gt;java&amp;nbsp;&lt;/code&gt;&lt;/em&gt;and add a test method say&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;parameterizedTest()&lt;/em&gt;&amp;nbsp;to the test class. This method takes a string as input parameter.&amp;nbsp;Add the annotation @Parameters(“browser”) to this method.&lt;/div&gt;
&lt;div class=&quot;crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; id=&quot;crayon-5b56c86a239a4989321360&quot; style=&quot;background: rgb(253, 253, 253) !important; border-color: rgb(153, 153, 153) !important; border-style: solid !important; border-width: 1px !important; box-sizing: border-box; color: #222222; direction: ltr !important; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px !important; height: auto; line-height: 15px !important; margin: 12px 0px; overflow: hidden !important; padding: 0px; position: relative !important; text-shadow: none !important; text-size-adjust: none; width: 540px;&quot;&gt;
&lt;div class=&quot;crayon-plain-wrap&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; font-family: Monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace !important; height: auto !important; margin: 0px !important; padding: 0px !important;&quot;&gt;
&lt;textarea class=&quot;crayon-plain print-no&quot; data-settings=&quot;dblclick&quot; readonly=&quot;&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-color: initial; border-radius: 0px; border-style: initial; border-width: 0px; box-shadow: none; color: black; font-family: Monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace !important; font-size: 12px !important; height: 181px; line-height: 15px !important; margin: 0px; opacity: 0; overflow: hidden; padding-left: 5px; padding-right: 5px; padding-top: 0px; position: absolute; resize: none; tab-size: 4; vertical-align: top; white-space: pre; width: 538px; word-wrap: normal; z-index: 0;&quot; wrap=&quot;soft&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-main&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; font-family: Monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace !important; margin: 0px; overflow: hidden; padding: 0px; position: relative; width: 538px; z-index: 1;&quot;&gt;
&lt;table class=&quot;crayon-table&quot; style=&quot;background: none !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; box-sizing: border-box; font-size: 12px; line-height: 2; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;border-bottom: 1px solid rgb(221, 221, 221); box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;crayon-row&quot; style=&quot;background: 0px center; border: none !important; box-sizing: border-box; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;td class=&quot;crayon-nums &quot; data-settings=&quot;show&quot; style=&quot;background: rgb(223, 239, 255) !important; border: 0px; box-sizing: border-box; color: rgb(84, 153, 222) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;&quot;&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-1&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; 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;&quot;&gt;
1&lt;/div&gt;
&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-2&quot; style=&quot;background: rgb(200, 225, 250) !important; border: 0px; box-sizing: border-box; color: rgb(49, 124, 197) !important; 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;&quot;&gt;
2&lt;/div&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-3&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; 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;&quot;&gt;
3&lt;/div&gt;
&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-4&quot; style=&quot;background: rgb(200, 225, 250) !important; border: 0px; box-sizing: border-box; color: rgb(49, 124, 197) !important; 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;&quot;&gt;
4&lt;/div&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-5&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; 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;&quot;&gt;
5&lt;/div&gt;
&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-6&quot; style=&quot;background: rgb(200, 225, 250) !important; border: 0px; box-sizing: border-box; color: rgb(49, 124, 197) !important; 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;&quot;&gt;
6&lt;/div&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-7&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; 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;&quot;&gt;
7&lt;/div&gt;
&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-8&quot; style=&quot;background: rgb(200, 225, 250) !important; border: 0px; box-sizing: border-box; color: rgb(49, 124, 197) !important; 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;&quot;&gt;
8&lt;/div&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-9&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; 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;&quot;&gt;
9&lt;/div&gt;
&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-10&quot; style=&quot;background: rgb(200, 225, 250) !important; border: 0px; box-sizing: border-box; color: rgb(49, 124, 197) !important; 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;&quot;&gt;
10&lt;/div&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-11&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; 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;&quot;&gt;
11&lt;/div&gt;
&lt;div class=&quot;crayon-num crayon-striped-num&quot; data-line=&quot;crayon-5b56c86a239a4989321360-12&quot; style=&quot;background: rgb(200, 225, 250) !important; border: 0px; box-sizing: border-box; color: rgb(49, 124, 197) !important; 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;&quot;&gt;
12&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td class=&quot;crayon-code&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; margin: 0px !important; padding: 0px !important; vertical-align: top !important; width: 513px;&quot;&gt;&lt;div class=&quot;crayon-pre&quot; style=&quot;background: none !important; border: none !important; box-sizing: border-box; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;&quot;&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5b56c86a239a4989321360-1&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;box-sizing: border-box; color: rgb(255, 128, 0) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;// TestNG Interview Questions&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5b56c86a239a4989321360-2&quot; style=&quot;background: rgb(247, 247, 247) !important; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-m&quot; style=&quot;box-sizing: border-box; color: purple !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-t&quot; style=&quot;box-sizing: border-box; color: purple !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;ParameterizedTest&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5b56c86a239a4989321360-3&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;Test&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5b56c86a239a4989321360-4&quot; style=&quot;background: rgb(247, 247, 247) !important; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;Parameters&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-s&quot; style=&quot;box-sizing: border-box; color: green !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;&quot;browser&quot;&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5b56c86a239a4989321360-5&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-m&quot; style=&quot;box-sizing: border-box; color: purple !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-t&quot; style=&quot;box-sizing: border-box; color: purple !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;parameterizedTest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-t&quot; style=&quot;box-sizing: border-box; color: purple !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;box-sizing: border-box; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;browser&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5b56c86a239a4989321360-6&quot; style=&quot;background: rgb(247, 247, 247) !important; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-st&quot; style=&quot;box-sizing: border-box; color: purple !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;box-sizing: border-box; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;browser&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;equals&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-s&quot; style=&quot;box-sizing: border-box; color: green !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;&quot;firefox&quot;&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5b56c86a239a4989321360-7&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;box-sizing: border-box; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;box-sizing: border-box; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-s&quot; style=&quot;box-sizing: border-box; color: green !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;&quot;Open Firefox Driver&quot;&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5b56c86a239a4989321360-8&quot; style=&quot;background: rgb(247, 247, 247) !important; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;crayon-st&quot; style=&quot;box-sizing: border-box; color: purple !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-st&quot; style=&quot;box-sizing: border-box; color: purple !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;box-sizing: border-box; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;browser&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;equals&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-s&quot; style=&quot;box-sizing: border-box; color: green !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;&quot;chrome&quot;&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5b56c86a239a4989321360-9&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;box-sizing: border-box; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;box-sizing: border-box; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-s&quot; style=&quot;box-sizing: border-box; color: green !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;&quot;Open Chrome Driver&quot;&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5b56c86a239a4989321360-10&quot; style=&quot;background: rgb(247, 247, 247) !important; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5b56c86a239a4989321360-11&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-5b56c86a239a4989321360-12&quot; style=&quot;background: rgb(247, 247, 247) !important; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-sy&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: verdana, sans-serif; font-size: 18px; margin-bottom: 26px; padding: 0px;&quot;&gt;
The parameter would be passed a value from testng.xml, which we will see in the next step.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: verdana, sans-serif; font-size: 18px; margin-bottom: 26px; padding: 0px;&quot;&gt;
We could set the parameter using the below syntax in the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;testng.xml file.&amp;nbsp;&lt;/em&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; id=&quot;crayon-5b56c86a239a6215728293&quot; style=&quot;background: rgb(253, 253, 253) !important; border-color: rgb(153, 153, 153) !important; border-style: solid !important; border-width: 1px !important; box-sizing: border-box; color: #222222; direction: ltr !important; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px !important; height: auto; line-height: 15px !important; margin: 12px 0px; overflow: hidden !important; padding: 0px; position: relative !important; text-shadow: none !important; text-size-adjust: none; width: 540px;&quot;&gt;
&lt;div class=&quot;crayon-plain-wrap&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; font-family: Monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace !important; height: auto !important; margin: 0px !important; padding: 0px !important;&quot;&gt;
&lt;textarea class=&quot;crayon-plain print-no&quot; data-settings=&quot;dblclick&quot; readonly=&quot;&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-color: initial; border-radius: 0px; border-style: initial; border-width: 0px; box-shadow: none; color: black; font-family: Monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace !important; font-size: 12px !important; height: 16px; line-height: 15px !important; margin: 0px; opacity: 0; overflow: hidden; padding-left: 5px; padding-right: 5px; padding-top: 0px; position: absolute; resize: none; tab-size: 4; vertical-align: top; white-space: pre; width: 538px; word-wrap: normal; z-index: 0;&quot; wrap=&quot;soft&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-main&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; font-family: Monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace !important; margin: 0px; overflow: hidden; padding: 0px; position: relative; width: 538px; z-index: 1;&quot;&gt;
&lt;table class=&quot;crayon-table&quot; style=&quot;background: none !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; box-sizing: border-box; font-size: 12px; line-height: 2; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;border-bottom: 1px solid rgb(221, 221, 221); box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;crayon-row&quot; style=&quot;background: 0px center; border: none !important; box-sizing: border-box; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;td class=&quot;crayon-nums &quot; data-settings=&quot;show&quot; style=&quot;background: rgb(223, 239, 255) !important; border: 0px; box-sizing: border-box; color: rgb(84, 153, 222) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; line-height: 15px !important; margin: 0px; padding: 0px; white-space: nowrap;&quot;&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-5b56c86a239a6215728293-1&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; 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;&quot;&gt;
1&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td class=&quot;crayon-code&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; margin: 0px !important; padding: 0px !important; vertical-align: top !important; width: 520px;&quot;&gt;&lt;div class=&quot;crayon-pre&quot; style=&quot;background: none !important; border: none !important; box-sizing: border-box; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; white-space: pre;&quot;&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-5b56c86a239a6215728293-1&quot; style=&quot;background: 0px center; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px 5px;&quot;&gt;
&lt;span class=&quot;crayon-o&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;box-sizing: border-box; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;parameter &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;box-sizing: border-box; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;crayon-s&quot; style=&quot;box-sizing: border-box; color: green !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;&quot;browser&quot;&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;box-sizing: border-box; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;crayon-s&quot; style=&quot;box-sizing: border-box; color: green !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;&quot;firefox&quot;&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;box-sizing: border-box; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: verdana, sans-serif; font-size: 18px; margin-bottom: 26px; padding: 0px;&quot;&gt;
Here, name attribute represents the parameter name and value represents the value of that parameter.&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2018/07/importance-of-testngxml-file.html</link><author>noreply@blogger.com (ShailandraTrivedi)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-3736672933052002180</guid><pubDate>Tue, 24 Jul 2018 06:41:00 +0000</pubDate><atom:updated>2018-07-23T23:41:36.274-07:00</atom:updated><title>Annotations available in TestNG</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: verdana, sans-serif; font-size: 18px; margin-bottom: 26px; padding: 0px 0px 0px 30px;&quot;&gt;
@BeforeTest&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;@AfterTest&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;@BeforeClass&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;@AfterClass&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;@BeforeMethod&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;@AfterMethod&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;@BeforeSuite&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;@AfterSuite&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;@BeforeGroups&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;@AfterGroups&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;@Test&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2018/07/annotations-available-in-testng.html</link><author>noreply@blogger.com (ShailandraTrivedi)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-578138641225956337</guid><pubDate>Tue, 24 Jul 2018 06:39:00 +0000</pubDate><atom:updated>2018-07-23T23:39:54.287-07:00</atom:updated><title> Advantages of TestNG</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;ol style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: verdana, sans-serif; font-size: 18px; margin: 0px 0px 26px 40px; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: decimal;&quot;&gt;TestNG provides parallel execution of test methods&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: decimal;&quot;&gt;It allows to define dependency of one test method over other method&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: decimal;&quot;&gt;It allows to assign priority to test methods&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: decimal;&quot;&gt;It allows grouping of test methods into test groups&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: decimal;&quot;&gt;It has support for parameterizing test cases using @Parameters annotation&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: decimal;&quot;&gt;It allows data driven testing using @DataProvider annotation&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: decimal;&quot;&gt;It has&amp;nbsp;different assertions that helps in checking the expected and actual results&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style-type: decimal;&quot;&gt;Detailed (HTML) reports&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2018/07/advantages-of-testng.html</link><author>noreply@blogger.com (ShailandraTrivedi)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-3241931035130830046</guid><pubDate>Tue, 24 Jul 2018 06:18:00 +0000</pubDate><atom:updated>2018-07-23T23:18:51.688-07:00</atom:updated><title>What is Xpath &quot;Here is the answer&quot; with all type</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 18.6pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;What is XPath&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;XPath is defined
as&amp;nbsp;&lt;b&gt;XML path&lt;/b&gt;.&amp;nbsp;&lt;b&gt;It is a syntax or language for finding any
element on the web page using XML path expression&lt;/b&gt;. XPath is used to find
the location of any element on a webpage using HTML DOM structure. The basic
format of XPath is explained below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Syntax for XPath:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;XPath contains the
path of the element situated at the web page. Standard syntax for creating
XPath is.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//tagname[@attribute=&#39;value&#39;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;// :&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Select current node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Tagname:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Tagname of the particular node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;@:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Select attribute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Attribute:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Attribute name of the node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Value:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Value of the attribute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style=&quot;background: white; line-height: 18.6pt;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Types of X-path&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; box-sizing: inherit; font-variant-caps: normal; font-variant-ligatures: normal; margin: 1.3rem; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;There are two types of XPath:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; box-sizing: inherit; font-variant-caps: normal; font-variant-ligatures: normal; margin: 1.3rem; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;1) Absolute XPath .&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; box-sizing: inherit; font-variant-caps: normal; font-variant-ligatures: normal; margin: 1.3rem; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;2) Relative XPath .&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; box-sizing: inherit; font-variant-caps: normal; font-variant-ligatures: normal; margin: 1.3rem; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;Absolute XPath&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; box-sizing: inherit; font-variant-caps: normal; font-variant-ligatures: normal; margin: 1.3rem; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;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.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; box-sizing: inherit; font-variant-caps: normal; font-variant-ligatures: normal; margin: 1.3rem; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;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.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;background: #F7F7F7; line-height: 15.0pt; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;Exapmle:-&lt;/span&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: minor-latin;&quot;&gt; html/body/div[1]/section/div[1]/div/div/div/div[1]/div/div/div/div/div[3]/div[1]/div/h4[1]/b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Relative xpath:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;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.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;You can start from
the middle of the HTML DOM structure and no need to write long xpath.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;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.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Relative xpath: //*[@class=&#39;featured-box&#39;]//*[text()=&#39;Testing&#39;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;background: white; line-height: 18.6pt;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Using XPath Handling complex &amp;amp; Dynamic elements
in Selenium&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; box-sizing: inherit; font-variant-caps: normal; font-variant-ligatures: normal; margin: 1.3rem; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;1) Basic XPath:&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: white; box-sizing: inherit; font-variant-caps: normal; font-variant-ligatures: normal; margin: 1.3rem; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;XPath expression select nodes or list of nodes on the
basis of attributes like&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-hansi-theme-font: minor-latin;&quot;&gt;ID ,
Name, Classname&lt;/span&gt;&lt;/strong&gt;, etc. from the XML document as illustrated
below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//input[@name=&#39;uid&#39;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Some more basic
xpath expressions:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//input[@type=&#39;text&#39;]&lt;span style=&quot;mso-tab-count: 4;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;//label[@id=&#39;message23&#39;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;//input[@value=&#39;RESET&#39;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[@class=&#39;barone&#39;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//a[@href=&#39;http://demo.guru99.com/&#39;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath= //img[@src=&#39;//cdn.guru99.com/images/home/java.png&#39;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;2) Contains()&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;: Contains() is a method used in XPath expression. It is used
when the value of any attribute changes dynamically, for example, login
information.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;The contain feature
has an ability to find the element with partial text as shown in below example.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In this example, we
tried to identify the element by just using partial text value of the
attribute. In the below XPath expression partial value &#39;sub&#39; is used in place
of submit button. It can be observed that the element is found successfully.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Complete value of
&#39;Type&#39; is &#39;submit&#39; but using only partial value &#39;sub&#39;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[contains(@type,&#39;sub&#39;)]&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=.//*[contains(@name,&#39;btn&#39;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Similarly, in the
below expression, we have taken the &#39;id&#39; as an attribute and &#39;message&#39; as a
partial value. This will find 2 elements (&#39;User-ID must not be blank&#39; &amp;amp;
&#39;Password must not be blank&#39;) as its &#39;name&#39; attribute begins with &#39;message&#39;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[contains(@id,&#39;message&#39;)]&lt;span style=&quot;mso-tab-count: 4;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;3) Using OR &amp;amp; AND:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In OR expression,
two conditions are used, whether 1st condition OR 2nd condition should be true.
It is also applicable if any one condition is true or maybe both. Means any one
condition should be true to find the element.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In the below XPath
expression, it identifies the elements whose single or both conditions are
true.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[@type=&#39;submit&#39; OR @name=&#39;btnReset&#39;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In AND expression,
two conditions are used, both conditions should be true to find the element. It
fails to find element if any one condition is false.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//input[@type=&#39;submit&#39; and @name=&#39;btnLogin&#39;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;4) Start-with function:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Start-with function finds the element whose attribute value
changes on refresh or any operation on the webpage.&lt;b&gt;&amp;nbsp;&lt;/b&gt;In this
expression, match the starting text of the attribute is used to find the
element whose attribute changes dynamically. You can also find the element
whose attribute value is static (not changes).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;For example -:
Suppose the ID of particular element changes dynamically like:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Id=&quot;
message12&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Id=&quot;
message345&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Id=&quot;
message8769&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;and so on.. but the
initial text is same. In this case, we use Start-with expression.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In the below
expression, there are two elements with an id starting
&quot;message&quot;(i.e., &#39;User-ID must not be blank&#39; &amp;amp; &#39;Password must not
be blank&#39;). In below example, XPath finds those element whose &#39;ID&#39; starting
with &#39;message&#39;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//label[starts-with(@id,&#39;message&#39;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;5) Text():&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In this expression, with text function, we find the element with
exact text match as shown below. In our case, we find the element with text
&quot;UserID&quot;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//td[text()=&#39;UserID&#39;]&lt;span style=&quot;mso-tab-count: 4;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;6) XPath axes methods&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;: These XPath axes methods are used to find the complex or
dynamic elements. Below we will see some of these methods.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;For illustrating
these XPath axes method, we will use the Guru99 bank demo site.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;a)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;b&gt;Following:&lt;/b&gt;&amp;nbsp;Selects
all elements in the document of the current node( ) [ UserID input box is the
current node] as shown in the below screen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[@type=&#39;text&#39;]//following::input&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;There are 3
&quot;input&quot; nodes matching by using &quot;following&quot; axis- password,
login and reset button. If you want to focus on any particular element then you
can use the below XPath method:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[@type=&#39;text&#39;]//following::input[1]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;You can change the
XPath according to the requirement by putting [1],[2]…………and so on.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;With the input as
&#39;1&#39;, the below screen shot finds the particular node that is &#39;Password&#39; input
box element.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;b) Ancestor:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; The ancestor axis
selects all ancestors element (grandparent, parent, etc.) of the current node
as shown in the below screen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In the below
expression, we are finding ancestors element of the current
node(&quot;ENTERPRISE TESTING&quot; node).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[text()=&#39;Enterprise Testing&#39;]//ancestor::div&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;c) Child&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;: Selects all children elements of the current node (Java) as
shown in the below screen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[@id=&#39;java_technologies&#39;]/child::li&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;d) Preceding:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Select all nodes that come before the current node as
shown in the below screen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In the below
expression, it identifies all the input elements before &quot;LOGIN&quot;
button that is&amp;nbsp;&lt;b&gt;Userid&lt;/b&gt;&amp;nbsp;and&amp;nbsp;&lt;b&gt;password&lt;/b&gt;&amp;nbsp;input
element.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[@type=&#39;submit&#39;]//preceding::input&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;e) Following-sibling:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; Select the following siblings of the context node. Siblings are
at the same level of the current node as shown in the below screen. It will
find the element after the current node.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;xpath=//*[@type=&#39;submit&#39;]//following-sibling::input&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;f) Parent:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Selects the
parent of the current node as shown in the below screen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[@id=&#39;rt-feature&#39;]//parent::div&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;g) Self:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Selects the
current node or &#39;self&#39; means it indicates the node itself as shown in the below
screen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;One node matching
by using &quot;self &quot; axis. It always finds only one node as it represents
self-element.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath =//*[@type=&#39;password&#39;]//self::input&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;h) Descendant:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Selects the descendants of the current node as shown in
the below screen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In the below
expression, it identifies all the element descendants to current element (
&#39;Main body surround&#39; frame element) which means down under the node (child node
, grandchild node, etc.).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[@id=&#39;rt-feature&#39;]//descendant::a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;There are 12
&quot;link&quot; nodes matching by using &quot;descendant&quot; axis. If you
want to focus on any particular element then you can use the below XPath:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #F7F7F7; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: #343434; font-size: 10.0pt; mso-bidi-font-family: Consolas; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Xpath=//*[@id=&#39;rt-feature&#39;]//descendant::a[1]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2018/07/what-is-xpath-here-is-answer-with-all.html</link><author>noreply@blogger.com (ShailandraTrivedi)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-4446416217952993987</guid><pubDate>Sat, 14 Oct 2017 17:30:00 +0000</pubDate><atom:updated>2017-10-14T10:30:09.376-07:00</atom:updated><title>Top 100 Selenium Interview Questions &amp; Answers</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;)&amp;nbsp;What is Selenium and what is composed of?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Selenium is a suite of tools for automated web testing.&amp;nbsp; It is composed of&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Selenium IDE (Integrated Development Environment) :&amp;nbsp;&amp;nbsp;&lt;/strong&gt;It is a tool for recording and playing back.&amp;nbsp; It is a firefox plugin&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;WebDriver and RC:&lt;/strong&gt;&amp;nbsp; It provide the APIs for a variety of languages like Java, .NET, PHP, etc. With most of the browsers Webdriver and RC works.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Grid:&amp;nbsp;&lt;/strong&gt;With the help of Grid you can distribute tests on multiple machines so that test can be run parallel which helps in cutting down the time required for running in browser test suites&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot; /&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;2)&amp;nbsp;What is Selenium 2.0 ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Web&amp;nbsp;Testing&amp;nbsp;tools Selenium RC and WebDriver are consolidated in single tool in Selenium 2.0&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/SeleniumSuite.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img src=&quot;https://cdn.guru99.com/images/SeleniumSuite.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;3) Mention what is Selenium 3.0?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Selenium 3.0 is the latest version of Selenium. It has released 2 beta versions of selenium 3.0 with few of the below changes:&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Here are few new features added to Selenium 3.0&lt;/div&gt;
&lt;table class=&quot;table table-striped&quot; style=&quot;background-color: white; border-collapse: collapse; border-color: rgba(231, 232, 234, 0.25) rgba(231, 232, 234, 0.25) rgba(231, 232, 234, 0.25) transparent; border-image: initial; border-spacing: 0px; border-style: solid; border-width: 0px; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 20px; max-width: 100%; width: 741px;&quot;&gt;&lt;tbody style=&quot;box-sizing: inherit;&quot;&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Beta 1 updates&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Beta 2 updates (Only for Java)&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Minimum&amp;nbsp;Java&amp;nbsp;version is now 8+&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;System property webdriver.firefox.marionette now forces the server in marionette or legacy firefox driver mode, ignoring any related Desired Capability&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It will support for Firefox Via Mozilla’s geckodriver&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Grid fixes NPE’s on registration when -browser not specified&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Support for Edge is provided by MS&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It now supports Safari on MacOS via Apple’s own Safari driver&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Update GeckoDriver –port argument in all bindings&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;4)&amp;nbsp;How will you find an element using Selenium?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In Selenium every object or control in a web page is referred as an elements, there are different ways to find an element in a web page they are&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;ID&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Name&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Tag&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Attribute&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;CSS&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Linktext&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;PartialLink Text&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Xpath etc&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;5)&amp;nbsp;List out the test types that are supported by Selenium?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
For web based application testing selenium can be used&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The test types can be supported are&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
a) Functional, Learn More about&amp;nbsp;Functional Testing.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
b)&amp;nbsp;Regression&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
For post release validation with continuous integration automation tool could be used&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
a)&amp;nbsp;Jenkins&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
b)&amp;nbsp;Hudson&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
c)&amp;nbsp;Quick Build&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
d)&amp;nbsp;CruiseCont&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;6)&amp;nbsp;Explain what is assertion in Selenium and what are the types of assertion?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Assertion is used as a &amp;nbsp;verification point. It verifies that the state of the application conforms to what is expected.&amp;nbsp; The types of assertion are “assert” , “verify” and “waifFor”.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;7)&amp;nbsp;Mention what is the use of X-path?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
X-Path is used to find the WebElement in web pages. It is also useful in identifying the dynamic elements.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Refer Complete Guide on&amp;nbsp;XPath&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;8)&amp;nbsp;Explain the difference between single and double slash in X-path?&lt;/strong&gt;&amp;nbsp;Single slash ‘/ ’&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Single slash ( / ) start selection from the document node&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It allows you to create ‘absolute’ path expressions&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;font-size: 16.8px; font-weight: normal;&quot;&gt;Double Slash ‘// ’&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Double slash ( // ) start selection matching anywhere in the document&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It enables to create ‘relative’ path expressions&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;9)&amp;nbsp;List out the technical challenges with Selenium?&lt;/strong&gt;&amp;nbsp;Technical challenges with Selenium are&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium supports only web based applications&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It does not support the Bitmap comparison&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;For any reporting related capabilities have to depend on third party tools&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;No vendor support for tool compared to commercial tools like HP UFT&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;As there is no object repository concept in Selenium, maintainability of objects becomes difficult&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;10)&amp;nbsp;What is the difference between type keys and type commands ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
TypeKeys() will trigger&amp;nbsp;JavaScript&amp;nbsp;event in most of the cases whereas .type() won’t. Type key populates the value attribute using JavaScript whereas .typekeys() emulates like actual user typing&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;11)&amp;nbsp;What is the difference between verify and assert commands?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Assert:&lt;/strong&gt;&amp;nbsp;&amp;nbsp;Assert allows to check whether an element is on the page or not. The test will stop on the step failed, if the asserted element is not available. In other words, the test will terminated at the point where check fails.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Verify:&lt;/strong&gt;&amp;nbsp;Verify command will check whether the element is on the page, if it is not then the test will carry on executing.&amp;nbsp; In verification, all the commands are going to run guaranteed even if any of test fails.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;12)&amp;nbsp;What is JUnit Annotations and what are different types of annotations which are useful ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In JAVA a special form of syntactic meta-data can be added to Java source code, this is know as Annotations.&amp;nbsp; Variables, parameters, packages, methods and classes are annotated some of theJunit&amp;nbsp;annotations which can be useful are&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Test&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Before&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;After&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Ignore&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;BeforeClass&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;AfterClass&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;RunWith&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;13)&amp;nbsp;While using click command can you use screen coordinate?&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To click on specific part of element, you would need to use clickAT command.&amp;nbsp; ClickAt command accepts element locator and x, y co-ordinates as arguments- clickAt (locator, cordString)&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;14)&amp;nbsp;&amp;nbsp;What are the advantages of Selenium?&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It supports C#, PHP, Java, Perl, Phython&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It supports different OS like Windows,&amp;nbsp;Linux&amp;nbsp;and Mac OS&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It has got powerful methods to locate elements (Xpath, DOM , CSS)&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It has highly developer community supported by Google&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;15)&amp;nbsp;Why testers should opt for Selenium and not QTP?&lt;/strong&gt;&amp;nbsp;Selenium is more popular than&amp;nbsp;QTP&amp;nbsp;as&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium is an open source whereas QTP is a commercial tool&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium is used specially for testing web based applications while QTP can be used for testing client server application also&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium supports Firefox, IE, Opera, Safari &amp;nbsp;on operating systems like Windows, Mac, Linux etc. however QTP is limited to Internet Explorer on Windows.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium supports many programming languages like Ruby, Perl,&amp;nbsp;Python&amp;nbsp;whereas QTP supports only VB script&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;16)&amp;nbsp;What are the four parameter you have to pass in Selenium?&lt;/strong&gt;&amp;nbsp;Four parameters that you have to pass in Selenium are&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Host&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Port Number&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Browser&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;URL&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;17)&amp;nbsp;What is the difference between setSpeed() and sleep() methods?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Both will delay the speed of execution.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Thread.sleep () :&amp;nbsp; It will stop the current (java) thread for the specified period of time.&amp;nbsp; Its done only once&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It takes a single argument in integer format&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;font-size: 16.8px; font-weight: normal;&quot;&gt;Ex: thread.sleep(2000)- It will wait for 2 seconds&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It waits only once at the command given at sleep&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;font-size: 16.8px; font-weight: normal;&quot;&gt;SetSpeed () :&amp;nbsp; For specific amount of time it will stop the execution for every selenium command.&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It takes a single argument in integer format&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;font-size: 16.8px; font-weight: normal;&quot;&gt;Ex: selenium.setSpeed(“2000”)- It will wait for 2 seconds&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Runs each command &amp;nbsp;after setSpeed delay by the number of milliseconds mentioned in set Speed&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;font-size: 16.8px; font-weight: normal;&quot;&gt;This command is useful for&amp;nbsp; demonstration purpose or if you are using a slow web application&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;18)&amp;nbsp;What is same origin policy? How you can avoid same origin policy?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;“Same Origin Policy”&lt;/strong&gt;&amp;nbsp;is introduced for security reason, and it ensures that content of your site will never be accessible by a script from another site.&amp;nbsp; As per the policy, any code loaded within the browser can only operate within that website’s domain.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To avoid “Same Origin Policy” proxy injection method is used, in proxy injection mode the Selenium Server acts as a client configured&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;HTTP proxy&lt;/strong&gt;&amp;nbsp;, which sits between the browser and application under test and then masks the AUT under a fictional URL&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;19)&amp;nbsp;What is heightened privileges browsers?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The purpose of heightened privileges is similar to Proxy Injection, allows websites to do something that are not commonly permitted.&amp;nbsp; The key difference is that the browsers are launced in a special mode called heightened privileges.&amp;nbsp; By using these browser mode, Selenium core can open the AUT directly and also read/write its content without passing the whole AUT through the Selenium RC server.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;20)&amp;nbsp;How you can use “submit” a form using Selenium ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can use “submit” method on element to submit form-&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
element.submit () ;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Alternatively you can use click method on the element which does form submission&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;21)&amp;nbsp;What are the features of TestNG and list some of the functionality in TestNG which makes it more effective?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
TestNG is a testing framework based on JUnit and NUnit to simplify a broad range of testing needs, from unit testing to&amp;nbsp;Integration Testing. And the functionality which makes it efficient testing framework are&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Support for annotations&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Support for data-driven testing&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Flexible test configuration&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Ability to re-execute failed test cases&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;22)&amp;nbsp;Mention what is the difference between Implicit wait and Explicit wait?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Implicit Wait: Sets a timeout for all successive Web Element searches. For the specified amount of time it will try looking for element again and again before throwing a NoSuchElementException.&amp;nbsp; It waits for elements to show up.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Explicit Wait : &amp;nbsp;It is a one-timer, used for a particular search.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;23)&amp;nbsp;Which attribute you should consider throughout the script in frame for “if no frame Id as well as no frame name”?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can use…..driver.findElements(By.xpath(“//iframe”))….&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
This will return list of frames.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You will ned to &amp;nbsp;switch to each and every frame and search for locator which we want.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Then break the loop&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;24)&amp;nbsp;Explain what is the difference between find elements () and find element () ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
find element ():&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
It finds the first element within the current page using the given “locating mechanism”.&amp;nbsp; It returns a single WebElement&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
findElements () : Using the given “locating mechanism” find all the elements within the current page.&amp;nbsp; It returns a list of web elements.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;25)&amp;nbsp;Explain what are the JUnits annotation linked with Selenium?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The JUnits annotation linked with Selenium are&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;@Before public void method() – It will perform the method () before each test, this method can prepare the test&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;@Test public void method() – Annotations @Test identifies that this method is a test method environment&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;@After public void method()- To execute a method before this annotation is used, test method must start with test@Before&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;26)&amp;nbsp;Explain what is Datadriven framework and Keyword driven?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Datadriven framework:&lt;/strong&gt;&amp;nbsp; In this framework, the test data is separated and kept outside the Test Scripts, while&amp;nbsp;Test Case&amp;nbsp;logic resides in Test Scripts.&amp;nbsp; Test data is read from the external files ( Excel Files) and are loaded into the variables inside the Test Script.&amp;nbsp; Variables are used for both for input values and for verification values.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Keyworddriven framework:&lt;/strong&gt;&amp;nbsp;The keyword driven frameworks requires the development of data tables and keywords, independent of the test automation.&amp;nbsp; In a keyword driven test, the functionality of the application under test is documented in a table as well as step by step instructions for each test.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;27)&amp;nbsp;Explain how you can login into any site if it’s showing any authentication popup for password and username?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Pass the username and password with url&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Syntax-http://username:password@url&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;ex- http://creyate:&lt;span id=&quot;cloak37ab43046900a7b4e0549ac247113b48&quot; style=&quot;box-sizing: inherit;&quot;&gt;tom@www.gmail.com&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;28)&amp;nbsp;Explain how to assert text of webpage using selenium 2.0 ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
WebElement el = driver.findElement(By.id(“ElementID”))&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
//get test from element and stored in text variable&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
String text = el.getText();&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
//assert text from expected&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Assert.assertEquals(“Element Text”, text);&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;29)&amp;nbsp;Explain what is the difference between Borland Silk and Selenium?&lt;/strong&gt;&lt;/div&gt;
&lt;table class=&quot;table table-striped&quot; style=&quot;background-color: white; border-collapse: collapse; border-color: rgba(231, 232, 234, 0.25) rgba(231, 232, 234, 0.25) rgba(231, 232, 234, 0.25) transparent; border-image: initial; border-spacing: 0px; border-style: solid; border-width: 0px; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 20px; max-width: 100%; width: 741px;&quot;&gt;&lt;tbody style=&quot;box-sizing: inherit;&quot;&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Silk Test Tool&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Selenium Test Tool&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Borland Silk test is not a free testing tool&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium is completely free test automation tool&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Silk test supports only Internet Explorer and Firefox&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium supports many browsers like Internet Explorer, Firefox, Safari, Opera and so on&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Silk test uses test scripting language&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium suite has the flexibility to use many languages like Java, Ruby,Perl and so on&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Silk test can be used for client server applications&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium can be used for only web application&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;30)&amp;nbsp;What is Object Repository ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
An object repository is an essential entity in any UI automations which allows a tester to store all object that will be used in the scripts in one or more centralized locations rather than scattered all over the test scripts.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;31)&amp;nbsp;Explain how Selenium Grid works?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Selenium Grid&amp;nbsp;sent the tests to the hub. These tests are redirected to Selenium Webdriver, which launch the browser and run the test.&amp;nbsp; With entire test suite, it allows for running tests in parallel.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;32)&amp;nbsp;Can we use Selenium grid for performance testing?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Yes. But not as effectively as a dedicated&amp;nbsp;Performance Testing&amp;nbsp;tool like Loadrunner.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;33)&amp;nbsp;&amp;nbsp;List the advantages of Webdriver over Selenium Server?&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;If you are using Selenium-WebDriver, you don’t need the Selenium Server as it is using totally different technology&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium Server provides Selenium RC functionality which is used for Selenium 1.0 backwards compatibility&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium Web driver makes direct calls to browser using each browsers native support for automation, while Selenium RC requires selenium server to inject Javascript into the browser&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;34)&amp;nbsp;&amp;nbsp;Mention what are the capabilities of Selenium WebDriver or Selenium 2.0 ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
WebDriver should be used when requiring improvement support for&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Handling multiple frames, pop ups , multiple browser windows and alerts&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Page navigation and drag &amp;amp; drop&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Ajax based UI elements&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Multi browser testing including improved functionality for browser not well supported by Selenium 1.0&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;35)&amp;nbsp;&amp;nbsp;While injecting capabilities in webdriver to perform tests on a browser which is not supported by a webdriver what is the limitation that one can come across?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Major limitation of injecting capabilities is that “findElement” command may not work as expected.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;36)&amp;nbsp;&amp;nbsp;Explain how you can find broken images in a page using Selenium Web driver ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To find the broken images in a page using Selenium web driver is&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Get XPath and get all the links in the page using tag name&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;In the page click on each and every link&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Look for 404/500 in the target page title&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;37)&amp;nbsp;&amp;nbsp;Explain how you can handle colors in web driver?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To handle colors in web driver you can use&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Use getCssValue(arg0) function to get the colors by sending ‘color’ string as an argument&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;38)&amp;nbsp;&amp;nbsp;Using web driver how you can store a value which is text box?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can use following command to store a value which is text box using web driver&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
driver.findElement(By.id(“your Textbox”)).sendKeys(“your keyword”);&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;39)&amp;nbsp;&amp;nbsp;Explain how you can switch between frames?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To switch between frames webdrivers&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;[ driver.switchTo().frame() ]&lt;/strong&gt;&amp;nbsp;method takes one of the three possible arguments&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;A number:&amp;nbsp; It selects the number by its (zero-based) index&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;A number or ID: Select a frame by its name or ID&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Previously found WebElement: Using its previously located WebElement select a frame&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;40)&amp;nbsp;&amp;nbsp;Mention 5 different exceptions you had in Selenium web driver?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The 5 different exceptions you had in Selenium web drivers are&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;WebDriverException&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;NoAlertPresentException&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;NoSuchWindowException&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;NoSuchElementException&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;TimeoutException&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;41)&amp;nbsp;&amp;nbsp;Explain using Webdriver how you can perform double click ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can perform double click by using&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Syntax- Actions act = new Actions (driver);&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;act.doubleClick(webelement);&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;42)&amp;nbsp;How will you use &amp;nbsp;Selenium to upload a file ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can use “type”command to type in a file input box of upload file. Then, you have to use “Robot” class in JAVA to make file upload work.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;43)&amp;nbsp;Which web driver implementation is fastest?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
HTMLUnit Driver implementation is fastest, HTMLUnitDriver does not execute tests on browser but plain http request, which is far quick than launching a browser and executing tests&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;44)&amp;nbsp;Explain how you can handle frames using Selenium 2.0 ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To bring control on HTML frame you can use “SwitchTo” frame method-&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
driver.switchTo().frame(“frameName”);&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To specify a frame you can use index number&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
driver.switchTo().frame(“parentFrame.4.frameName”);&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
This would bring control on frame named- “frameName” of the 4&lt;span style=&quot;box-sizing: inherit; font-size: 0.75rem; line-height: 0; position: relative; top: -0.5em; vertical-align: baseline;&quot;&gt;th&lt;/span&gt;&amp;nbsp;sub frame names “parentFrame”&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;45)&amp;nbsp;What is the difference between getWindowhandles() and getwindowhandle() ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
getwindowhandles(): It is used to get the address of all the open browser and its return type is Set&amp;lt;String&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
getwindowhandle(): It is used to get the address of the current browser where the control is and return type is string&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;46)&amp;nbsp;Explain how you can switch back from a frame?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To switch back from a frame use method defaultContent()&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Syntax-driver.switchTo().defaultContent();&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;47)&amp;nbsp;List out different types of locators?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Different types of locators are&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;By.id()&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;By.name()&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;By.tagName()&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;By.className()&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;By.linkText()&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;By.partialLinkText()&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;By.xpath&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;By.cssSelector()&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;48)&amp;nbsp;What is the command that is used in order to display the values of a variable into the output console or log?&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;In order to display a constant string, command can be used is echo &amp;lt;constant string&amp;gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;If order to display the value of a variable you can use command like echo ${variable name&amp;gt;&amp;gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Above is using PHP. If you are using Java, replace echo with System.out.println&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;49)&amp;nbsp;&amp;nbsp;&amp;nbsp;Explain how you can use recovery scenario with Selenium?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Recovery scenarios depends upon the programming language you use.&amp;nbsp; If you are using Java then you can use exception handling to overcome same.&amp;nbsp; By using “Try Catch Block” within your Selenium WebDriver Java tests&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;50)&amp;nbsp;Explain how to iterate through options in test script?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To iterate through options in test script you can loop features of the programming language, for example to type different test data in a text box you can use “for” loop in Java&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
// test data collection in an array&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
String[ ] testData = { “test1” , “test2” , “test3” } ;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
// iterate through each test data&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
For&amp;nbsp; (string s: test data) { selenium.type ( “elementLocator”, testData) ; }&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;51)&amp;nbsp;How can you prepare customized html report using TestNG in hybrid framework ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
There are three ways&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Junit: With the help of ANT&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;TestNG: Using inbuilt default.html to get the HTML report. Also XST reports from ANT, Selenium,Testng&amp;nbsp;combinations&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Using our own customized reports using XSL jar for converting XML content to HTML&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;52)&amp;nbsp;From your test script how you can create html test report?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To create html test report there are three ways&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;TestNG:&amp;nbsp; Using inbuilt default.html to get the HTML report. Also XLST reports from ANT, Selenium, TestNG combination&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;JUnit: With the help of ANT&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Using our own customized reports using XSL jar for converting XML content to HTML&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;53)&amp;nbsp;&amp;nbsp;Explain how you can insert a break point in Selenium IDE ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In&amp;nbsp;Selenium IDE&amp;nbsp;to insert a break point&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Select “Toggle break point” by right click on the command in Selenium IDE&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Press “B” on the keyboard and select the command in Selenium IDE&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Multiple break points can be set in Selenium IDE&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;54)&amp;nbsp;&amp;nbsp;Explain in Selenium IDE how can you debug the tests?&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Insert a break point from the location from where you want to execute test step by step&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Run the test case&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;At the given break point execution will be paused&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;To continue with the next statement click on the blue button&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Click on the “Run” button to continue executing all the commands at a time&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;55)&amp;nbsp;&amp;nbsp;What is Selenese and what are the types of Selenese ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Selenese is a selenium set of command which are used for running the test&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
There are three types of Selenese&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Actions: It is used for performing the operations and interactions with the target elements&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Assertions: It is used as a check points&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Accessors: It is used for storing the values in a variable&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;56)&amp;nbsp;&amp;nbsp;Explain what are the limitations of Selenium IDE?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The limitations of Selenium IDE&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Exceptional handling is not present&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium IDE uses only HTML languages&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;External databases reading is not possible with IDE&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Reading from the external files like .txt, .xls is not possible&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Conditional or branching statements execution like if,else, &amp;nbsp;select statements is not possible&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;57)&amp;nbsp;&amp;nbsp;What are the two modes of views in Selenium IDE ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Either Selenium IDE can be opened as a pop up window or in side bar&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;58)&amp;nbsp;&amp;nbsp;In selenium IDE what are the element locators that can be used to locate elements on web page?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In selenium there are mainly 4 locators that are used&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;X-path locators&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Css locators&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Html id&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Html name&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;59)&amp;nbsp;&amp;nbsp;In Selenium IDE how you can generate random numbers and dates for test data ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In Selenium IDE you can generate random numbers by using Java Script&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
type&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
css=input#s&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
javascript{Math.random()}&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
And for&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
type&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
css=input#s&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
javascript{new Date()}&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;60)&amp;nbsp;&amp;nbsp;How you can convert any Selenium IDE tests from Selenese to another language?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can use the format option of Selenium IDE to convert tests into another programming language&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;61)&amp;nbsp;&amp;nbsp;Using Selenium IDE is it possible to get data from a particular html table cell ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can use the “storeTable” command&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Example store text from cell 0,2 from an html table&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
storeTable&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Css=#table 0.2&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
textFromCell&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;62)&amp;nbsp;&amp;nbsp;Explain what can cause a Selenium IDE test to fail?&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;When a locator has changed and Selenium IDE cannot locate the element&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;When element Selenium IDE waiting to access did not appear on the web page and the operation timed out&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;When element Selenium IDE was trying to access was not created&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;63)&amp;nbsp;&amp;nbsp;Explain how you can debug the tests in Selenium IDE ?&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Insert a break point from the location where you want to execute step by step&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Run the test case&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;At the given break point execution will be paused&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;To continues with the next step click on the Blue button&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;To run commands at a time click on run button&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;64)&amp;nbsp;&amp;nbsp;From Selenium IDE how you can execute a single line?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
From Selenium IDE single line command can be executed in two ways&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Select “Execute this command” by right clicking on the command in Selenium IDE&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Press “X” key on the keyboard after selecting the command in Selenium IDE&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;65)&amp;nbsp;&amp;nbsp;In which format does source view shows your script in Selenium IDE ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In Selenium IDE source view shows your script in XML format&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;66)&amp;nbsp;&amp;nbsp;Explain how you can insert a start point in Selenium IDE?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In two ways selenium IDE can be set&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Press “S” key on the keyboard and select the command in Selenium IDE&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;In Seleniun IDE right click on the command and the select&amp;nbsp; “Set / Clear Start Point”&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;67)&amp;nbsp;&amp;nbsp;What if you have written your own element locator and how would you test it?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To test the locator one can use “Find Button” of Selenium IDE, as you click on it, you would see on screen an element being highlighted provided your element locator is right or or else an error message will be displayed&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;68)&amp;nbsp;&amp;nbsp;What is regular expressions? How you can use regular expressions in Selenium ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
A regular expression is a special text string used for describing a search pattern. In Selenium IDE regular expression can be used with the keyword-&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;regexp:&amp;nbsp;&lt;/strong&gt;as a prefix to the value and patterns needs to be included for the expected values.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;69)&amp;nbsp;&amp;nbsp;What are core extension ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
If you want to “extend” the defualt functionality provided by Selenium Function Library , you can create a Core Extension. They are also called “User Extension”. You can even download ready-made Core Extension created by other Selenium enthusiats.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;70)&amp;nbsp;&amp;nbsp;How will you handle working with multiple windows in Selenium ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
We can use the command&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;selectWindow&amp;nbsp;&lt;/strong&gt;to switch between windows. This command uses the title of Windows to identify which window to switch to.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;71)&amp;nbsp;&amp;nbsp;How will you verify the specific position of an web element&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can use verifyElementPositionLeft &amp;amp; verifyElementPositionTop. It does a pixel comparison of the position of the element from the Left and Top of page respectively&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;72)&amp;nbsp;&amp;nbsp;How can you retrive the message in an alert box ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can use the storeAlert command which will fetch the message of the alert pop up and store it in a variable.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;73)&amp;nbsp;What is selenium RC (Remote Control)?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Selenium IDE have limitations in terms of browser support and language support. By using Selenium RC limitation can be diminished.&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;On different platforms and &amp;nbsp;different web browser for automating web application&amp;nbsp; selenium RC is used with languages like Java, C#, Perl, Python&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium RC is a java based and using any language it can interact with the web application&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Using server you can bypass the restriction and run your automation script running against any web application&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;74)&amp;nbsp;Why Selenium RC is used?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Selenium IDE does not directly support many functions like condition statements, Iteration, logging and reporting of test results, unexpected error handling and so on as IDE supports only HTML language.&amp;nbsp; To handle such issues Selenium RC is used&amp;nbsp; it supports the language like Perl, Ruby, Python,&amp;nbsp;PHP&amp;nbsp;using these languages we can write the program to achieve the IDE issues.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;75)&amp;nbsp;Explain what is the main difference between web-driver and RC ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The main difference between Selenium RC and Webdriver is that, selenium RC injects javascript function into browsers when the page is loaded. On the other hand, Selenium Webdriver drives the browser using browsers built in support&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;76)&amp;nbsp;What are the advantages of RC?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Advantages of RC are&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Can read or write data from/ to .xls, .txt, etc&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It can handle dynamic objects and Ajax based UI elements&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Loops and conditions can be used for better performance and flexibility&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Support many Programming languages and Operating Systems&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;For any JAVA script enabled browser Selenium RC can be used&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;77)&amp;nbsp;Explain what is framework and what are the frameworks available in RC?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
A collection of libraries and classes is known as Framework and they are helpful when testers has to automate test cases. NUnit, JUnit, TestNG, Bromine, RSpec, unittest are some of the frameworks available in RC .&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;78)&amp;nbsp;How can we handle pop-ups in RC ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To handle pop-ups in RC , using selectWindow method, pop-up window will be selected and windowFocus method will let the control from current window to pop-up windows and perform actions according to script&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;79)&amp;nbsp;What are the technical limitations while using Selenium RC?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Apart from “same origin policy” restriction from js, Selenium is also restricted from exercising anything that is outside browser.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;80)&amp;nbsp;Can we use Selenium RC to drive tests on two different browsers on one operating system without Selenium Grid?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Yes, it is possible when you are not using JAVA testing framework.&amp;nbsp; Instead of using Java testing framework if you are using java client driver of selenium then TestNG allows you to do this.&amp;nbsp; By using “parallel=test” attribute you can set tests to be executed in parallel and can define two different tests, each using different browser.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;81)&amp;nbsp;Why to use TestNG with Selenium RC ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
If you want full automation against different server and client platforms, You need a way to invoke the tests from a command line process, reports that tells you what happened and flexibility in how you create your test suites. TestNG gives that flexibility.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;82)&amp;nbsp;Explain how you can capture server side log Selenium Server?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To capture server side log in Selenium Server, you can use command&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;java –jar .jar –log selenium.log&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;83)&amp;nbsp;Other than the default port 4444 how you can run Selenium Server?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can run Selenium server on java-jar selenium-server.jar-port other than its default port&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;84)&amp;nbsp;How Selenium grid hub keeps in touch with RC slave machine?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
At predefined time selenium grid hub keeps polling all RC slaves to make sure it is available for testing.&amp;nbsp; The deciding parameter is called “remoteControlPollingIntervalSeconds” and is defined in “grid_configuration.yml”file&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;85)&amp;nbsp;Using Selenium how can you handle network latency ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To handle network latency you can use driver.manage.pageloadingtime for network latency&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;86)&amp;nbsp;To enter values onto text boxes what is the command that can be used?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To enter values onto text boxes we can use command&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;sendkeys()&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;87)&amp;nbsp;How do you identify an object using selenium?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To identify an object using Selenium you can use&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
isElementPresent(String locator)&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
isElementPresent takes a locator as the argument and if found returns a Boolean&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;88) In Selenium what are Breakpoints and Startpoints?&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Breakpoints:&amp;nbsp;&lt;/strong&gt;When you implement a breakpoint in your code, the execution will stop right there. This helps you to verify that your code is working as expected.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Startpoints&lt;/strong&gt;Startpoint indicates the point from where the execution should begin. Startpoint can be used when you want to run the testscript from the middle of the code or a breakpoint.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;89) Mention why to choose Python over Java in Selenium?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Few points that favor&amp;nbsp;Python&amp;nbsp;over Java to use with Selenium is,&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Java programs tend to run slower compared to Python programs.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Java uses traditional braces to start and ends blocks, while Python uses indentation.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Java employs static typing, while Python is dynamically typed.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Python is simpler and more compact compared to Java.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;90) Mention what are the challenges in Handling Ajax Call in Selenium Webdriver?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The challenges faced in Handling Ajax Call in Selenium Webdriver are&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Using &quot;pause&quot; command for handling Ajax call is not completely reliable. Long pause time makes the test unacceptably slow and increases the testing time. Instead, &quot;waitforcondition&quot; will be more helpful in testing Ajax applications.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It is difficult to assess the risk associated with particular Ajax applications&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Given full freedom to developers to modify Ajax application makes the testing process challenging&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Creating automated test request may be difficult for testing tools as such AJAX application often use different encoding or serialization technique to submit POST data.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;91) Mention what is IntelliJ?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Intellij is an IDE that helps you to write better and faster code for Selenium. Intellij can be used in the option to Java bean and Eclipse.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;92) Mention in what ways you can customize TestNG report?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can customize TestNG report in two ways,&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Using ITestListener Interface&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Using IReporter Interface&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;93) To generate pdf reports mention what Java API is required?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To generate pdf reports, you need Java API IText.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;94) Mention what is Listeners in Selenium WebDriver?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In Selenium WebDriver, Listeners &quot;listen&quot; to the event defined in the selenium script and behave accordingly. It allows customizing TestNG reports or logs. There are two main listeners i.e. WebDriver Listeners and TestNG Listeners.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;95) Mention what are the types of&amp;nbsp;Listeners in TestNG?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The types of Listeners in TestNG are,&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;IAnnotationTransformer&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;IAnnotationTransformer2&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;IConfigurable&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;IConfigurationListener&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;IExecutionListener&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;IHookable&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;IInvokedMethodListener&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;IInvokedMethodListener2&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;IMethodInterceptor&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;IReporter&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;ISuiteListener&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;ITestListener&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;96) Mention what is desired capability? How is it useful in terms of Selenium?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The desired capability is a series of key/value pairs that stores the browser properties like browser name, browser version, the path of the browser driver in the system, etc. to determine the behavior of the browser at run time.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
For Selenium,&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It can be used to configure the driver instance of Selenium WebDriver.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;When you want to run the test cases on a different browser with different operating systems and versions.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;97) For Database Testing in Selenium Webdriver what API is required?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
For&amp;nbsp;Database Testing&amp;nbsp;in Selenium Webdriver, you need JDBC (Java Database Connectivity) API. It allows you to execute&amp;nbsp;SQL&amp;nbsp;statements.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;98) Mention when to use AutoIT?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Selenium is designed to automate web-based applications on different browsers. But to handle window GUI and non-HTML popups in the application you need AutoIT. know more about&amp;nbsp;How to use AutoIT with Selenium&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;99) Mention why do you need Session Handling while working with Selenium?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
While working with Selenium, you need Session Handling. This is because, during test execution, the Selenium WebDriver has to interact with the browser all the time to execute given commands. At the time of execution, it is also possible that, before current execution completes, someone else starts execution of another script, in the same machine and in the same type of browser. So to avoid such situation you need Session Handling.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;100) Mention what are the advantages of Using Git Hub For Selenium?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The advantages of Using Git Hub for Selenium are&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Multiple people when they work on the same project they can update project details and inform other team members simultaneously.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Jenkins can help you to build the project from the remote repository regularly. This helps you to keep track of failed builds.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/10/top-100-selenium-interview-questions.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-6581784809794226913</guid><pubDate>Sat, 14 Oct 2017 17:18:00 +0000</pubDate><atom:updated>2017-10-14T10:18:34.302-07:00</atom:updated><title>XPath in Selenium WebDriver: Complete Tutorial</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In Selenium automation, if the elements are not found by the general locators like id, class, name, etc. then XPath is used to find an element on the web page .&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In this tutorial, we will learn about the xpath and different XPath expression to find the complex or dynamic elements, whose attributes changes dynamically on refresh or any operations.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In this tutorial, you will learn-&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
What is XPath&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
XPath is defined as&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;XML path&lt;/strong&gt;.&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;It is a syntax or language for finding any element on the web page using XML path expression&lt;/strong&gt;. XPath is used to find the location of any element on a webpage using HTML DOM structure. The basic format of XPath is explained below with screen shot.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele1.png&quot; style=&quot;background: transparent; box-sizing: inherit; outline: 0px; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele1.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Syntax for XPath:&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
XPath contains the path of the element situated at the web page. Standard syntax for creating XPath is.&lt;/div&gt;
&lt;pre style=&quot;background: rgb(247, 247, 247); border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; color: #343434; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//tagname[@attribute=&#39;value&#39;]&lt;/pre&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;// :&lt;/strong&gt;&amp;nbsp;Select current node.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Tagname:&amp;nbsp;&lt;/strong&gt;Tagname of the particular node.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;@:&lt;/strong&gt;&amp;nbsp;Select attribute.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Attribute:&lt;/strong&gt;&amp;nbsp;Attribute name of the node.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Value:&lt;/strong&gt;&amp;nbsp;Value of the attribute.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To find the element on web pages accurately there are different types of locators:&lt;/div&gt;
&lt;table class=&quot;table table-striped&quot; style=&quot;background-color: white; border-collapse: collapse; border-color: rgba(231, 232, 234, 0.25) rgba(231, 232, 234, 0.25) rgba(231, 232, 234, 0.25) transparent; border-image: initial; border-spacing: 0px; border-style: solid; border-width: 0px; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 20px; max-width: 100%; width: 741px;&quot;&gt;&lt;tbody style=&quot;box-sizing: inherit;&quot;&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;XPath Locators&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Find different elements on web page&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;ID&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;To find the element by ID of the element&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Classname&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;To find the element by Classname of the element&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Name&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;To find the element by name of the element&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Link text&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;To find the element by text of the link&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;XPath&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;background-color: transparent; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;XPath required for finding the dynamic element and traverse between various elements of the web page&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit; vertical-align: middle;&quot;&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;CSS path&lt;/strong&gt;&lt;/td&gt;&lt;td style=&quot;background: rgb(249, 249, 249); border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: inherit; line-height: 20px; padding: 8px; vertical-align: top;&quot;&gt;CSS path also locates elements having no name, class or ID.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;2&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; transition: all 0.2s;&quot;&gt;&lt;/a&gt;Types of X-path&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
There are two types of XPath:&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;1) Absolute XPath .&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;2) Relative XPath .&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Absolute XPath&amp;nbsp;&lt;/strong&gt;:&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
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.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
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.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Below is the example of an absolute xpath expression of the element shown in the below screen.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Absolute xpath:&lt;/strong&gt;&lt;/div&gt;
&lt;pre style=&quot;background: rgb(247, 247, 247); border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; color: #343434; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;html/body/div[1]/section/div[1]/div/div/div/div[1]/div/div/div/div/div[3]/div[1]/div/h4[1]/b&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele2.png&quot; style=&quot;background: transparent; box-sizing: inherit; outline: 0px; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele2.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Relative xpath:&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
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.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
You can starts from the middle of the HTML DOM structure and no need to write long xpath.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
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.&lt;/div&gt;
&lt;pre style=&quot;background: rgb(247, 247, 247); border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; color: #343434; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Relative xpath: //*[@class=&#39;featured-box&#39;]//*[text()=&#39;Testing&#39;]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele3.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele3.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;What are XPath axes.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
XPath axes search different nodes in XML document from current context node. XPath Axes are the methods used to find dynamic elements, which otherwise not possible by normal XPath method having no ID , Classname, Name, etc.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Axes methods are used to find those elements, which dynamically change on refresh or any other operations. There are few axes methods commonly used in Selenium Webdriver like child, parent, ancestor, sibling, preceding, self, etc.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;3&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; transition: all 0.2s;&quot;&gt;&lt;/a&gt;Using XPath Handling complex &amp;amp; Dynamic elements in Selenium&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;1) Basic XPath:&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
XPath expression select nodes or list of nodes on the basis of attributes like&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;ID , Name, Classname&lt;/strong&gt;, etc. from the XML document as illustrated below.&lt;/div&gt;
&lt;pre style=&quot;background: rgb(247, 247, 247); border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; color: #343434; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//input[@name=&#39;uid&#39;&lt;/pre&gt;
&lt;pre style=&quot;background: rgb(247, 247, 247); border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; color: #343434; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
Here is a link to access the page&amp;nbsp;&lt;a href=&quot;http://demo.guru99.com/v1/&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;http://demo.guru99.com/v1/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele4.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele4.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
Some more basic xpath expressions:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//input[@type=&#39;text&#39;]    
Xpath= //label[@id=&#39;message23&#39;]
Xpath= //input[@value=&#39;RESET&#39;]
Xpath=//*[@class=&#39;barone&#39;]
Xpath=//a[@href=&#39;http://demo.guru99.com/&#39;]
Xpath= //img[@src=&#39;//cdn.guru99.com/images/home/java.png&#39;]
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;2) Contains()&amp;nbsp;&lt;/strong&gt;: Contains() is a method used in XPath expression. It is used when the value of any attribute changes dynamically, for example, login information.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
The contain feature has an ability to find the element with partial text as shown in below example.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
In this example, we tried to identify the element by just using partial text value of the attribute. In the below XPath expression partial value &#39;sub&#39; is used in place of submit button. It can be observed that the element is found successfully.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
Complete value of &#39;Type&#39; is &#39;submit&#39; but using only partial value &#39;sub&#39;.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[contains(@type,&#39;sub&#39;)]  &lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
Complete value of &#39;name&#39; is &#39;btnLogin&#39; but using only partial value &#39;btn&#39;.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=.//*[contains(@name,&#39;btn&#39;)]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
In the above expression, we have taken the &#39;name&#39; as an attribute and &#39;btn&#39; as an partial value as shown in the below screenshot. This will find 2 elements (LOGIN &amp;amp; RESET) as their &#39;name&#39; attribute&amp;nbsp;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele5.png&quot; style=&quot;font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; white-space: pre-wrap;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;span style=&quot;font-size: 16.8px;&quot;&gt;begins with &#39;btn&#39;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;span style=&quot;font-size: 16.8px;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
Similarly, in the below expression, we have taken the &#39;id&#39; as an attribute and &#39;message&#39; as a partial value. This will find 2 elements (&#39;User-ID must not be blank&#39; &amp;amp; &#39;Password must not be blank&#39;) as its &#39;name&#39; attribute begins with &#39;message&#39;.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[contains(@id,&#39;message&#39;)]    &lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele6.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele6.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
In the below expression, we have taken the &quot;text&quot; of the link as an attribute and &#39;here&#39; as a partial value as shown in the below screenshot. This will find the link (&#39;here&#39;) as it displays the text &#39;here&#39;.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[contains(text(),&#39;here&#39;)]
Xpath=//*[contains(@href,&#39;guru99.com&#39;)]    &lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele7.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele7.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;3) Using OR &amp;amp; AND:&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
In OR expression, two conditions are used, whether 1st condition OR 2nd condition should be true. It is also applicable if any one condition is true or maybe both. Means any one condition should be true to find the element.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
In the below XPath expression, it identifies the elements whose single or both conditions are true.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[@type=&#39;submit&#39; OR @name=&#39;btnReset&#39;]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
Highlighting both elements as &quot;LOGIN &quot; element having attribute &#39;type&#39; and &quot;RESET&quot; element having attribute &#39;name&#39;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele8.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele8.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
In AND expression, two conditions are used, both conditions should be true to find the element. It fails to find element if any one condition is false.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//input[@type=&#39;submit&#39; AND @name=&#39;btnLogin&#39;]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;In below expression, highlighting &#39;LOGIN&#39; element as it having both attribute &#39;type&#39; and &#39;name&#39;.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele9.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele9.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;4) Start-with function:&amp;nbsp;&lt;/strong&gt;Start-with function finds the element whose attribute value changes on refresh or any operation on the webpage.&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&amp;nbsp;&lt;/strong&gt;In this expression, match the starting text of the attribute is used to find the element whose attribute changes dynamically. You can also find the element whose attribute value is static (not changes).&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
For example -: Suppose the ID of particular element changes dynamically like:&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
Id=&quot; message12&quot;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
Id=&quot; message345&quot;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
Id=&quot; message8769&quot;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
and so on.. but the initial text is same. In this case, we use Start-with expression.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
In the below expression, there are two elements with an id starting &quot;message&quot;(i.e., &#39;User-ID must not be blank&#39; &amp;amp; &#39;Password must not be blank&#39;). In below example, XPath finds those element whose &#39;ID&#39; starting with &#39;message&#39;.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//label[starts-with(@id,&#39;message&#39;)]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele10.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele10.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;5) Text():&amp;nbsp;&lt;/strong&gt;In this expression, with text function, we find the element with exact text match as shown below. In our case, we find the element with text &quot;UserID&quot;.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//td[text()=&#39;UserID&#39;]    &lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele11.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele11.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;6) XPath axes methods&lt;/strong&gt;: These XPath axes methods are used to find the complex or dynamic elements. Below we will see some of these methods.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
For illustrating these XPath axes method, we will use the Guru99 bank demo site.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;a)&lt;/strong&gt;&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Following:&lt;/strong&gt;&amp;nbsp;Selects all elements in the document of the current node( ) [ UserID input box is the current node] as shown in the below screen.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[@type=&#39;text&#39;]//following::input&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele12.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele12.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
There are 3 &quot;input&quot; nodes matching by using &quot;following&quot; axis- password, login and reset button. If you want to focus on any particular element then you can use the below XPath method:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[@type=&#39;text&#39;]//following::input[1]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
You can change the XPath according to the requirement by putting [1],[2]…………and so on.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
With the input as &#39;1&#39;, the below screen shot finds the particular node that is &#39;Password&#39; input box element.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele13.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele13.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;b) Ancestor:&lt;/strong&gt; The ancestor axis selects all ancestors element (grandparent, parent, etc.) of the current node as shown in the below screen.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
In the below expression, we are finding ancestors element of the current node(&quot;ENTERPRISE TESTING&quot; node).&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[text()=&#39;Enterprise Testing&#39;]//ancestor::div&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele14.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele14.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
There are 13 &quot;div&quot; nodes matching by using &quot;ancestor&quot; axis. If you want to focus on any particular element then you can use the below XPath, where you change the number 1, 2 as per your requirement:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[text()=&#39;Enterprise Testing&#39;]//ancestor::div[1]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
You can change the XPath according to the requirement by putting [1], [2]…………and so on.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;c) Child&amp;nbsp;&lt;/strong&gt;: Selects all children elements of the current node (Java) as shown in the below screen.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[@id=&#39;java_technologies&#39;]/child::li&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele15.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele15.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
There are 71 &quot;li&quot; nodes matching by using &quot;child&quot; axis. If you want to focus on any particular element then you can use the below xpath:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[@id=&#39;java_technologies&#39;]/child::li[1]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
You can change the xpath according to the requirement by putting [1],[2]…………and so on.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;d) Preceding:&lt;/strong&gt;&amp;nbsp;Select all nodes that come before the current node as shown in the below screen.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
In the below expression, it identifies all the input elements before &quot;LOGIN&quot; button that is&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Userid&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;password&lt;/strong&gt;&amp;nbsp;input element.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[@type=&#39;submit&#39;]//preceding::input&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele16.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele16.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
There are 2 &quot;input&quot; nodes matching by using &quot;preceding&quot; axis. If you want to focus on any particular element then you can use the below XPath:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[@type=&#39;submit&#39;]//preceding::input[1]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
You can change the xpath according to the requirement by putting [1],[2]…………and so on.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;e) Following-sibling:&lt;/strong&gt; Select the following siblings of the context node. Siblings are at the same level of the current node as shown in the below screen. It will find the element after the current node.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt; xpath=//*[@type=&#39;submit&#39;]//following-sibling::input&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele17.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele17.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
One input nodes matching by using &quot;following-sibling&quot; axis.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;f) Parent:&lt;/strong&gt;&amp;nbsp;Selects the parent of the current node as shown in the below screen.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[@id=&#39;rt-feature&#39;]//parent::div&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele18.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele18.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
There are 65 &quot;div&quot; nodes matching by using &quot;parent&quot; axis. If you want to focus on any particular element then you can use the below XPath:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[@id=&#39;rt-feature&#39;]//parent::div[1]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
You can change the XPath according to the requirement by putting [1],[2]…………and so on.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;g) Self:&lt;/strong&gt;&amp;nbsp;Selects the current node or &#39;self&#39; means it indicates the node itself as shown in the below screen.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele19.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele19.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
One node matching by using &quot;self &quot; axis. It always finds only one node as it represents self-element.&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath =//*[@type=&#39;password&#39;]//self::input&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;h) Descendant:&lt;/strong&gt;&amp;nbsp;Selects the descendants of the current node as shown in the below screen.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
In the below expression, it identifies all the element descendants to current element ( &#39;Main body surround&#39; frame element) which means down under the node (child node , grandchild node, etc.).&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[@id=&#39;rt-feature&#39;]//descendant::a&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; text-align: center; white-space: normal;&quot;&gt;
&lt;a class=&quot;jh-image-popup-colorbox cboxElement&quot; href=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele20.png&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&lt;img alt=&quot;XPath in Selenium WebDriver: Complete Tutorial&quot; src=&quot;https://cdn.guru99.com/images/3-2016/032816_0758_XPathinSele20.png&quot; style=&quot;border: 0px; box-sizing: content-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; title=&quot;XPath in Selenium: Complete Guide&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
There are 12 &quot;link&quot; nodes matching by using &quot;descendant&quot; axis. If you want to focus on any particular element then you can use the below XPath:&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Xpath=//*[@id=&#39;rt-feature&#39;]//descendant::a[1]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
You can change the XPath according to the requirement by putting [1],[2]…………and so on.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Summary:&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
XPath is required to find an element on the web page as to do an operation on that particular element.&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px; white-space: normal;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;There are two types of XPath:&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 0px; margin-left: 1.5rem; margin-top: 0px; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Absolute XPath&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Relative XPath&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px; white-space: normal;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;XPath Axes are the methods used to find dynamic elements, which otherwise not possible to find by normal XPath method&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;XPath expression select nodes or list of nodes on the basis of attributes like ID , Name, Classname, etc. from the XML document .&lt;/li&gt;
&lt;/ul&gt;
&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/10/xpath-in-selenium-webdriver-complete.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-8229771358880217273</guid><pubDate>Sat, 14 Oct 2017 17:11:00 +0000</pubDate><atom:updated>2017-10-14T10:11:41.642-07:00</atom:updated><title>Handling Dynamic Web Tables Using Selenium WebDriver</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
There are two types of HTML tables published on the web-&lt;/div&gt;
&lt;ol style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-top: 1.5rem; padding-left: 1.5rem;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Static tables&lt;/strong&gt;: Data is static i.e. Number of rows and columns are fixed.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Dynamic tables&lt;/strong&gt;: Data is dynamic i.e. Number of rows and columns are NOT&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;color: #343434; font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-top: 1.5rem; padding-left: 1.5rem;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;fixed.Handling static table is easy, but dynamic table is a little bit difficult as rows and columns are not constant.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
Using X-Path to Locate Web Table Elements&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Before we locate web element, first let&#39;s understands-&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;What is a web element?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Web elements are nothing but HTML elements like textbox, dropdowns radio buttons, submit buttons, etc. These HTML elements are written with&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;start&lt;/strong&gt;&amp;nbsp;tag and ends with an&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;end&lt;/strong&gt;&amp;nbsp;tag.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
For Example,&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&amp;lt;p&amp;gt;&lt;/strong&gt;&amp;nbsp;My First HTML Document&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&amp;lt;/p&amp;gt;.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Steps for getting X-path of web element that we want to locate.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Step 1)&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;In Chrome, Go to&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://money.rediff.com/gainers/bsc/daily/groupa&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: inherit; color: #04b8e6; font-size: 16.8px; text-decoration-line: none; transition: all 0.2s;&quot;&gt;http://money.rediff.com/gainers/bsc/daily/groupa&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;img src=&quot;https://cdn.guru99.com/images/2-2017/050217_0717_HandlingDyn2.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Step 2)&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;Right click on web element whose x-path is to be fetched. In our case, right click on &quot;Company&quot; Select Inspect option. The following screen will be shown -&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;img src=&quot;https://cdn.guru99.com/images/2-2017/050217_0717_HandlingDyn3.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Step 3)&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;&amp;nbsp;Right Click on highlighted web element &amp;gt; Select Copy -&amp;gt; Copy x-path option.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;img src=&quot;https://cdn.guru99.com/images/2-2017/050217_0717_HandlingDyn4.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Step 4)&lt;/strong&gt;&amp;nbsp;Use the copied X-path &quot;//*[@id=&quot;leftcontainer&quot;]/table/thead/tr/th [1]&quot; in Selenium WebDriver to locate the element.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;2&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; transition: all 0.2s;&quot;&gt;&lt;/a&gt;Example: Fetch number of rows and columns from Dynamic WebTable&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
When the table is dynamic in nature, we cannot predict its number of rows and columns.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Using Selenium web driver, we can find&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Number of Rows and columns of web table&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;X row or Y column&#39;s data.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Below is program for fetching total number of rows and columns of web table&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;https://cdn.guru99.com/images/2-2017/050217_0717_HandlingDyn5.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;ScreenShot&lt;br /&gt;&lt;pre style=&quot;background: rgb(247, 247, 247); border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; color: #343434; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; text-align: start; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;import java.text.ParseException;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.chrome.ChromeDriver;
public class Noofrowsandcols {
    public static void main(string[] args) throws ParseException {
        WebDriver wd;
        System.setProperty(&quot;webdriver.chrome.driver&quot;, &quot;D:\\ chromedriver.exe&quot;) ;
        wd = new ChromeDriver();
        wd.get(&quot;http://money.rediff.com/gainers/bsc/dailygroupa?&quot;);         
        //No.of Columns
        List &amp;lt;WebElement&amp;gt; col = wd.findElements(By.xpath(&quot;.//*@id=&quot;leftcontainer&#39;]/table/thead/tr/th&quot;));
        System.out.println(&quot;No of cols are : &quot; +col.size()); 
        //No.of rows 
        List &amp;lt;WebElement&amp;gt; rows = wd.findElements(By.xpath(&quot;.//*[@id=&quot;leftcontainer&#39;]/table/tbody/tr/td[1]&quot;)); 
        System.out.println(&quot;No of rows are : &quot; + rows.size());
        wd.close();
    }
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Code Explanation:&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px; white-space: normal;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Here we have first declared Web Driver object &quot;wd&quot; &amp;amp;initialized it to chrome driver.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;We use List &amp;lt;WebElement&amp;gt; to total number of columns in &quot;col&quot;.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;findElements commands returns a list of ALL the elements matching the specified locator&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;using findElements and X-path //*@id=&quot;leftcontainer&#39;]/table/thead/tr/th&quot;)); we get all the columns&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Similarly, we repeat the process for rows.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
.&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Output:&lt;/strong&gt;&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: inherit; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility; white-space: normal;&quot;&gt;
Example: Fetch cell value of a particular row and column of the Dynamic Table&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;img src=&quot;https://cdn.guru99.com/images/2-2017/050217_0717_HandlingDyn6.png&quot; style=&quot;font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; white-space: pre-wrap;&quot; /&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/10/handling-dynamic-web-tables-using.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>14</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-7924418262020697445</guid><pubDate>Sat, 14 Oct 2017 17:04:00 +0000</pubDate><atom:updated>2017-10-14T10:04:49.303-07:00</atom:updated><title>How to handle Selenium Pop-up window using Webdriver</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In automation, when we have multiple windows in any web application, the activity may need to switch control among several windows from one to other in order to complete the operation. After completion of the operation, it has to return to the main window i.e. parent window. We will see this further in the article with an example.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
In selenium web driver there are methods through which we can handle multiple windows.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Driver.getWindowHandles();&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
To handle all opened windows by web driver, we can use &quot;Driver.getWindowHandles()&quot; and then we can switch window from one window to another in a web application. Its return type is Iterator&amp;lt;String&amp;gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Driver.getWindowHandle();&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
When the site opens, we need to handle the main window by&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;driver.getWindowHandle()&lt;/strong&gt;. This will handle the current window that uniquely identifies it within this driver instance. Its return type is String.&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/10/how-to-handle-selenium-pop-up-window.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-707879152749292098</guid><pubDate>Sat, 14 Oct 2017 17:02:00 +0000</pubDate><atom:updated>2017-10-14T10:02:35.641-07:00</atom:updated><title>Alert &amp; Popup Handling in Selenium WebDriver</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
What is Alert?&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Alert is a small message box which displays on-screen notification to give the user some kind of information or ask for permission to perform certain kind of operation. It may be also used for warning purpose.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Here are few alert types:&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;1) Simple Alert&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
This simple alert displays some information or warning on the screen.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;2) Prompt Alert.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
This Prompt Alert asks some input from the user and selenium webdriver can enter the text using sendkeys(&quot; input…. &quot;).&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;3) Confirmation Alert.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
This confirmation alert asks permission to do some type of operation.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
How to handle Alert in Selenium WebDriver&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Alert interface provides the below few methods which are widely used in Selenium Webdriver.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
1) void dismiss()&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;// To click on the &#39;Cancel&#39; button of the alert.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; color: #343434; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #38761d;&quot;&gt;driver.switchTo().alert().dismiss();&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; color: #343434; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
2) void accept()&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;// To click on the &#39;OK&#39; button of the alert.&lt;/strong&gt;&lt;/div&gt;
&lt;pre style=&quot;background: rgb(247, 247, 247); border-radius: 0.1875rem; border: 1px solid rgba(0, 0, 0, 0.1); box-sizing: inherit; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 20px; margin-bottom: 1.5rem; overflow: auto; padding: 0.938rem; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;driver.switchTo().alert().accept();&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
3) String getText&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;() // To capture the alert message.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem; white-space: normal;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;font-size: 16.8px; font-weight: normal;&quot;&gt;We can easily switch to alert from the main window by using Selenium&#39;s&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;.switchTo()&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px; font-weight: normal;&quot;&gt;&amp;nbsp;method.&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/10/alert-popup-handling-in-selenium.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-4138579720089272473</guid><pubDate>Sat, 14 Oct 2017 16:56:00 +0000</pubDate><atom:updated>2017-10-14T09:56:08.943-07:00</atom:updated><title> What are Locators  in selenium</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Locators&amp;nbsp; in selenium&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;Selenium uses different types of locators to identify the UI elements on the page.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;The following is the list of locators based on the priority and recommendations to use:&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;1. ID&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;2. Name&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;3. Link&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;4. DOM&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;5. XPath&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;6. CSS&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;7. UI-element&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;i.e. You have to follow the below steps while finding the Locator for the selected UI element:&lt;/span&gt;&lt;br /&gt;
&lt;ol style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;First we&#39;ve to find out if there is any locator which can locate the UI element by ID else you have to go to the next step&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;Find out if there is any locator which can locate the UI element by Name else you have to go to the next step&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;Find out if there is any locator which can locate the UI element by Link else you have to go to the next step&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;Find out if there is any locator which can locate the UI element by DOM else you have to go to the next step&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;Find out if there is any locator which can locate the UI element by XPath else you have to go to the next step&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;Find out if there is any locator which can locate the UI element by CSS else you have to go to the next step&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;Find out if there is any locator which can locate the UI element by UI-element&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;Why there are different types of locators instead of having only one kind of locator to identify the UI elements ?&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #606060; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;While building the application code, it is seen as a good practice to make sure that every element you need to interact with has an ID attribute and a Name attribute. Unfortunately, this best practice is difficult to implement for the UI elements which dynamically change. This is the reason for having different types of locators instead of having only the ID locator to identify the elements.&lt;/span&gt;&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/10/what-are-locators-in-selenium.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-5903021639404792714</guid><pubDate>Tue, 05 Sep 2017 08:24:00 +0000</pubDate><atom:updated>2017-09-05T01:24:48.673-07:00</atom:updated><title>Introduction to Selenium</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
What is Selenium?&lt;/h2&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Selenium is a free (open source) automated testing suite for web applications across different browsers and platforms. It is quite similar to HP Quick Test Pro (QTP now UFT) only that Selenium focuses on automating web-based applications. Testing done using Selenium tool is usually referred as Selenium Testing.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Selenium is not just a single tool but a suite of software&#39;s, each catering to different testing needs of an organization.&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;It has four components.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.3rem;&quot;&gt;
Selenium Integrated Development Environment (IDE)&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.3rem;&quot;&gt;
Selenium Remote Control (RC)&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.3rem;&quot;&gt;
WebDriver&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.3rem;&quot;&gt;
Selenium Grid&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.3rem;&quot;&gt;
&lt;span style=&quot;font-size: 16.8px;&quot;&gt;At the moment, Selenium RC and WebDriver are merged into a single framework to form&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Selenium 2&lt;/b&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;. Selenium 1, by the way, refers to Selenium RC.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; font-size: 16.8px;&quot;&gt;
&lt;h2 style=&quot;box-sizing: inherit; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
Who developed Selenium?&lt;/h2&gt;
&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Since Selenium is a collection of different tools, it had different developers as well. Below are the key persons who made notable contributions to the Selenium Project&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Primarily, Selenium was&amp;nbsp;&lt;b style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;created by Jason Huggins in 2004&lt;/b&gt;. An engineer at ThoughtWorks, he was working on a web application that required frequent testing. Having realized that the repetitious&amp;nbsp;&lt;a href=&quot;https://www.guru99.com/manual-testing.html&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;Manual Testing&lt;/a&gt;&amp;nbsp;of their application was becoming more and more inefficient, he created a&lt;a href=&quot;https://www.guru99.com/interactive-javascript-tutorials.html&quot; style=&quot;background: transparent; box-sizing: inherit; color: #04b8e6; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&amp;nbsp;JavaScript&amp;nbsp;&lt;/a&gt;program that would automatically control the browser&#39;s actions. He named this program as the &quot;&lt;b style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;JavaScriptTestRunner&lt;/b&gt;.&quot;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Seeing potential in this idea to help automate other web applications, he made JavaScriptRunner open-source which was later re-named as&amp;nbsp;&lt;b style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Selenium Core&lt;/b&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; font-size: 16.8px;&quot;&gt;
&lt;h2 style=&quot;box-sizing: inherit; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
The Same Origin Policy Issue&lt;/h2&gt;
&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Same Origin policy prohibits JavaScript code from accessing elements from a domain that is different from where it was launched&lt;/strong&gt;. Example, the HTML code in www.google.com uses a JavaScript program &quot;randomScript.js&quot;. The same origin policy will only allow randomScript.js to access pages within google.com such as google.com/mail, google.com/login, or google.com/signup. However, it cannot access pages from different sites such as yahoo.com/search or guru99.com because they belong to different domains.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRn8OG6WlZDPE-F03s3gWNOeneKKelZcNfPh0feOQKuvt6neGvL7HbPldpQPW5OOUL-D0CsdR9y6x49XrHtikwHOtZFepOFVobpNTsmlGGDIoCmvfPuX2FJahljrbfeMTHagTizOq46vs/s1600/same_origin_policy.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;459&quot; data-original-width=&quot;636&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRn8OG6WlZDPE-F03s3gWNOeneKKelZcNfPh0feOQKuvt6neGvL7HbPldpQPW5OOUL-D0CsdR9y6x49XrHtikwHOtZFepOFVobpNTsmlGGDIoCmvfPuX2FJahljrbfeMTHagTizOq46vs/s320/same_origin_policy.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2 style=&quot;box-sizing: inherit; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
Birth of Selenium Remote Control (Selenium RC)&lt;/h2&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div&gt;
&lt;span style=&quot;font-size: 16.8px;&quot;&gt;Unfortunately; testers using Selenium Core had to install the whole application under test and the web server on their own local computers because of the restrictions imposed by the&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;same origin policy.&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;So another ThoughtWork&#39;s engineer,&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Paul Hammant&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;, decided to create a server that will act as an HTTP proxy to &quot;trick&quot; the browser into believing that Selenium Core and the web application being tested come from the same domain. This system became known as the&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Selenium Remote Control&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Selenium 1&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div&gt;
&lt;span style=&quot;font-size: 16.8px;&quot;&gt;&lt;h2 style=&quot;box-sizing: inherit; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
Birth of Selenium Grid&lt;/h2&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div&gt;
&lt;span style=&quot;font-size: 16.8px;&quot;&gt;Selenium Grid was developed by&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Patrick Lightbody&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;&amp;nbsp;to address the need of minimizing test execution times as much as possible. He initially called the system &quot;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Hosted QA&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;.&quot; It was capable of capturing browser screenshots during significant stages, and also of&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;sending out Selenium commands to different machines simultaneously&lt;/strong&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div&gt;
&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Shinya Kasatani&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px; font-weight: normal;&quot;&gt;of Japan created&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Selenium IDE&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px; font-weight: normal;&quot;&gt;, a Firefox extension that can automate the browser through a record-and-playback feature. He came up with this idea to further increase the speed in creating test cases. He donated Selenium IDE to the Selenium Project in&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;2006&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px; font-weight: normal;&quot;&gt;.&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div&gt;
&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;&lt;span style=&quot;font-size: 16.8px; font-weight: normal;&quot;&gt;&lt;h2 style=&quot;box-sizing: inherit; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
Birth of WebDriver&lt;/h2&gt;
&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div&gt;
&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;Simon Stewart&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;created WebDriver circa&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;2006&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;&amp;nbsp;when browsers and web applications were becoming more powerful and more restrictive with JavaScript programs like Selenium Core.&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: inherit; font-size: 16.8px; line-height: inherit;&quot;&gt;It was the first cross-platform testing framework that could control the browser from the OS level.&lt;/strong&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div&gt;
&lt;span style=&quot;font-size: 16.8px;&quot;&gt;&lt;h2 style=&quot;box-sizing: inherit; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
So, Why the Name Selenium?&lt;/h2&gt;
&lt;div style=&quot;box-sizing: inherit; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
It came from a joke which Jason cracked one time to his team. Another automated testing framework was popular during Selenium&#39;s development, and it was by the company called&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;Mercury Interactive&amp;nbsp;&lt;/strong&gt;(yes, the company who originally made QTP before it was acquired by HP). Since Selenium is a well-known antidote for Mercury poisoning, Jason suggested that name. His teammates took it, and so that is how we got to call this framework up to the present.&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/09/introduction-to-selenium.html</link><author>noreply@blogger.com (ShailandraTrivedi)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRn8OG6WlZDPE-F03s3gWNOeneKKelZcNfPh0feOQKuvt6neGvL7HbPldpQPW5OOUL-D0CsdR9y6x49XrHtikwHOtZFepOFVobpNTsmlGGDIoCmvfPuX2FJahljrbfeMTHagTizOq46vs/s72-c/same_origin_policy.png" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-5071130037690558557</guid><pubDate>Mon, 29 May 2017 09:01:00 +0000</pubDate><atom:updated>2017-05-29T02:01:28.569-07:00</atom:updated><title>Installing TestNG in Eclipse</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Step 1:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 12.5pt;&quot;&gt;Launch Eclipse.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 12.5pt;&quot;&gt;On the menu bar, click Help.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 12.5pt;&quot;&gt;Choose the &quot;Eclipse Marketplace...&quot; option.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH8ej5pYwouNaBuo-fEhBtbmQKB81h-z8DZKYevI_rnQ8F0O5Ym4W6pfbTjSri4dvkS5wqCeaePoZ83JkTwxWriEORaxbA_ICySzAZp0IKpWJCoI8RoQyHXKyL0feZuy2wQ-m8-UCENLaf/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;387&quot; data-original-width=&quot;318&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH8ej5pYwouNaBuo-fEhBtbmQKB81h-z8DZKYevI_rnQ8F0O5Ym4W6pfbTjSri4dvkS5wqCeaePoZ83JkTwxWriEORaxbA_ICySzAZp0IKpWJCoI8RoQyHXKyL0feZuy2wQ-m8-UCENLaf/s320/5.png&quot; width=&quot;262&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Step 2:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In the Eclipse Marketplace dialog box, type TestNG in the search
box and press the search button( magnifying glass) or press enter key&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizSgJ-jcrUz82GxdClA2JGEgbsllt9KjhSmGZDF8nXfrZguCcPzUoAzJFBf1ObOFgmWASP7lxElLTsXozQqdorNohohdtZXmMEoTFdRPAjW8xtjAMZ7zCzj1w8BxmqA8rDvBoX8dCbeaTQ/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;853&quot; data-original-width=&quot;512&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizSgJ-jcrUz82GxdClA2JGEgbsllt9KjhSmGZDF8nXfrZguCcPzUoAzJFBf1ObOFgmWASP7lxElLTsXozQqdorNohohdtZXmMEoTFdRPAjW8xtjAMZ7zCzj1w8BxmqA8rDvBoX8dCbeaTQ/s320/6.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;Step 3:&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;Click Install&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNW8TZa629ct1gRWFYahVQP9QQDJUKRADkz4LMpq6TsoJz9Mw3f98ztYT5jjCtSqKaaF2Z8NmKLJI1Ul6dCrgPuyMq6m7hN0iMdCF6JytaBvswpGcLiIFxu4iQL0HkkEplhPh_v7kpwFIp/s1600/7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;638&quot; data-original-width=&quot;512&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNW8TZa629ct1gRWFYahVQP9QQDJUKRADkz4LMpq6TsoJz9Mw3f98ztYT5jjCtSqKaaF2Z8NmKLJI1Ul6dCrgPuyMq6m7hN0iMdCF6JytaBvswpGcLiIFxu4iQL0HkkEplhPh_v7kpwFIp/s320/7.png&quot; width=&quot;256&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;Step 4:&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;A new window for feature selection will open, Do not change
anything and&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;Click on confirm
button&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk9haaiuS-SzqKG3m2QxKOMYV_0-5iBYAYSrC_Qr0QgJIMxRyt7UaXcjX37aNZXI9xmIdUoUv7IbmLA0FTCia742vwhz3MNBmfMgyrPSEjtW15efaJWp4sxwLKMh3WwJDkdrYSKoO9AycU/s1600/8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;302&quot; data-original-width=&quot;512&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk9haaiuS-SzqKG3m2QxKOMYV_0-5iBYAYSrC_Qr0QgJIMxRyt7UaXcjX37aNZXI9xmIdUoUv7IbmLA0FTCia742vwhz3MNBmfMgyrPSEjtW15efaJWp4sxwLKMh3WwJDkdrYSKoO9AycU/s320/8.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Step 5:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 12.5pt;&quot;&gt;Click Next again on the succeeding dialog box until you reach the License Agreement dialog.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 12.5pt;&quot;&gt;Click &quot;I accept the terms of the license agreement&quot; then click Finish.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimtNyKuXVGKZNrJYV2FDrI9mipW1JLgYHCmLiAK-Kd-UuVLEPeKvUv9Et3amIokw9EmSmLw6phL0X2YlyFEYDtlzwSPMDzNjy-RScq3guoqSkxLTLBNG2vWS9jloDSokEipefzdhb7FQ7e/s1600/9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;440&quot; data-original-width=&quot;707&quot; height=&quot;199&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimtNyKuXVGKZNrJYV2FDrI9mipW1JLgYHCmLiAK-Kd-UuVLEPeKvUv9Et3amIokw9EmSmLw6phL0X2YlyFEYDtlzwSPMDzNjy-RScq3guoqSkxLTLBNG2vWS9jloDSokEipefzdhb7FQ7e/s320/9.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;Step 6:&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;If you encounter a Security warning, just click OK&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYJpjPtTFAMByG3uAxDyOO0K0oNBE40V4tgz5RDTBTUPq818jNflanm1W2LtKbZYhQXBsCiFPuL1PCnqGc9rOh93W45rhROVtOQWEL5q81fuCSj4Z7-QyDlu8k-pVk_BBapAfcV_tINkbo/s1600/10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;162&quot; data-original-width=&quot;534&quot; height=&quot;97&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYJpjPtTFAMByG3uAxDyOO0K0oNBE40V4tgz5RDTBTUPq818jNflanm1W2LtKbZYhQXBsCiFPuL1PCnqGc9rOh93W45rhROVtOQWEL5q81fuCSj4Z7-QyDlu8k-pVk_BBapAfcV_tINkbo/s320/10.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;Wait for the installation
to finish&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz_F260rJvC058gQHqEsDq2ico0TMFMhnxx_wRC0X_MhE_k_grm09sr0TKQdl_sdfn67IpXNi8-0GojkABDjLKIvlu14Q1DZsmlhEAr1CJUQAL2NBVcCGibIKQ3gmheL9EtluAGfJXiJ7T/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;224&quot; data-original-width=&quot;514&quot; height=&quot;139&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz_F260rJvC058gQHqEsDq2ico0TMFMhnxx_wRC0X_MhE_k_grm09sr0TKQdl_sdfn67IpXNi8-0GojkABDjLKIvlu14Q1DZsmlhEAr1CJUQAL2NBVcCGibIKQ3gmheL9EtluAGfJXiJ7T/s320/11.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;Step 7:&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;When Eclipse prompts you for a restart, just click Yes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdTQhQm9aAwxa6iWOoowUUBpnXEcgzRLeHdQvI3ac61vQlgYewzrvsnd5Sp3mon_RmmOh9YmLcJWFMR6x_II0Sxw8mf6Kh6RCUpNYQ6TBkVlVpOdgodDing4qmeusOSK1SWITwA1bh9rsA/s1600/12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;141&quot; data-original-width=&quot;518&quot; height=&quot;87&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdTQhQm9aAwxa6iWOoowUUBpnXEcgzRLeHdQvI3ac61vQlgYewzrvsnd5Sp3mon_RmmOh9YmLcJWFMR6x_II0Sxw8mf6Kh6RCUpNYQ6TBkVlVpOdgodDing4qmeusOSK1SWITwA1bh9rsA/s320/12.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;Step 8:&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;After the restart, verify if TestNG was indeed successfully
installed. Click Window &amp;gt; Preferences and see if TestNG is included on the
Preferences list.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsEJ2drcFnSeWMh7AnSGHlGfARChsKu1qFfgtKNHOop6mBsAqgqJ4WgM2YHWN21jfh4WIm5x0Xs3HULdjguVXyzKOtk5_bHNW9jRHDwgm40eIVz-a0rZS2_hIu0r4gKfJSt39YWyXB6vk-/s1600/13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;400&quot; data-original-width=&quot;377&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsEJ2drcFnSeWMh7AnSGHlGfARChsKu1qFfgtKNHOop6mBsAqgqJ4WgM2YHWN21jfh4WIm5x0Xs3HULdjguVXyzKOtk5_bHNW9jRHDwgm40eIVz-a0rZS2_hIu0r4gKfJSt39YWyXB6vk-/s320/13.png&quot; width=&quot;301&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white; color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/05/installing-testng-in-eclipse.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH8ej5pYwouNaBuo-fEhBtbmQKB81h-z8DZKYevI_rnQ8F0O5Ym4W6pfbTjSri4dvkS5wqCeaePoZ83JkTwxWriEORaxbA_ICySzAZp0IKpWJCoI8RoQyHXKyL0feZuy2wQ-m8-UCENLaf/s72-c/5.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-2010713461074655136</guid><pubDate>Mon, 29 May 2017 08:17:00 +0000</pubDate><atom:updated>2017-05-29T01:17:12.776-07:00</atom:updated><title>What is TestNG?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;So
far we had been doing Selenium tests without generating a proper format for the
test results. From this point on, we shall tackle how to make these reports
using a test framework called TestNG.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;TestNG
is a&lt;/span&gt;&lt;span style=&quot;color: #40a2b5; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Testing&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;framework that overcomes the limitations of
another popular testing framework called JUnit. The &quot;NG&quot; means
&quot;Next Generation.&quot; Most Selenium users use this more than&lt;/span&gt;&lt;span style=&quot;color: #40a2b5; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Junit&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;because of its advantages. There are so many
features of TestNG, but we will only focus on the most important ones that we
can use in Selenium.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;background: white; mso-line-height-alt: 13.2pt;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 23.5pt;&quot;&gt;Advantages of TestNG
over JUnit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;background: white; box-sizing: inherit; margin: 1.3rem;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt;&quot;&gt;There
are three major advantages of TestNG over JUnit:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; box-sizing: inherit; color: #343434; line-height: normal; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt;&quot;&gt;Annotations are easier to understand&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; box-sizing: inherit; color: #343434; line-height: normal; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt;&quot;&gt;Test cases can be grouped more easily&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; box-sizing: inherit; color: #343434; line-height: normal; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt;&quot;&gt;Parallel testing is possible&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background: white; box-sizing: inherit; margin: 1.3rem;&quot;&gt;
&lt;strong style=&quot;box-sizing: inherit; line-height: inherit;&quot;&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt;&quot;&gt;Annotations
in TestNG are lines of code that can control how the method below them will be
executed&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt;&quot;&gt;. They are always preceded by the @ symbol. A very early and
quick example is the one shown below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfnoozj6ousJUGJ-StjBmiC3NIV2Rv1W71C5L0Y4O4gtEpvbx6hZvQtn0PvAO1reLYyRqY_jSEpyQ5v-PnB8RyFQu2HtBA-mEOIgohcqK621Zg0UXlFfL6d9jIa3S6IXxKtzWPqGwoOtqx/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;364&quot; data-original-width=&quot;515&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfnoozj6ousJUGJ-StjBmiC3NIV2Rv1W71C5L0Y4O4gtEpvbx6hZvQtn0PvAO1reLYyRqY_jSEpyQ5v-PnB8RyFQu2HtBA-mEOIgohcqK621Zg0UXlFfL6d9jIa3S6IXxKtzWPqGwoOtqx/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background: white; box-sizing: inherit; margin: 1.3rem;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;!--[if gte vml 1]&gt;&lt;v:shapetype
 id=&quot;_x0000_t75&quot; coordsize=&quot;21600,21600&quot; o:spt=&quot;75&quot; o:preferrelative=&quot;t&quot;
 path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; filled=&quot;f&quot; stroked=&quot;f&quot;&gt;
 &lt;v:stroke joinstyle=&quot;miter&quot;/&gt;
 &lt;v:formulas&gt;
  &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 1 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum 0 0 @1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @2 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 0 1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @6 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;sum @8 21600 0&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @10 21600 0&quot;/&gt;
 &lt;/v:formulas&gt;
 &lt;v:path o:extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot;/&gt;
 &lt;o:lock v:ext=&quot;edit&quot; aspectratio=&quot;t&quot;/&gt;
&lt;/v:shapetype&gt;&lt;v:shape id=&quot;Picture_x0020_1&quot; o:spid=&quot;_x0000_i1028&quot; type=&quot;#_x0000_t75&quot;
 alt=&quot;http://cdn.guru99.com/images/annotations_1-0000.png&quot; style=&#39;width:386.25pt;
 height:273pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\strivedi\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png&quot;
  o:title=&quot;annotations_1-0000&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; mso-line-height-alt: 18.6pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #343434; font-size: 19.5pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-hansi-font-family: Calibri;&quot;&gt;Why do we need TestNG in Selenium?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;TestNG
can generate reports based on our Selenium test results.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;WebDriver has no native
     mechanism for generating reports.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;TestNG can generate the report
     in a readable format like the one shown below.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi4dDBHppm6iaM_EaXGymDtfa3VXVYtoW3oaRwj8JEureETRHZ2dQ3kAMdexgZe93oR9UC2ubtbHrtBLiElfplw2ZGNwHB6Zaewy2MW8COIok2HKjBNWahFJo-zdKbqtjMajZi90NprSlA/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;147&quot; data-original-width=&quot;260&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi4dDBHppm6iaM_EaXGymDtfa3VXVYtoW3oaRwj8JEureETRHZ2dQ3kAMdexgZe93oR9UC2ubtbHrtBLiElfplw2ZGNwHB6Zaewy2MW8COIok2HKjBNWahFJo-zdKbqtjMajZi90NprSlA/s1600/2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #343434; font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 16.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_2&quot; o:spid=&quot;_x0000_i1027&quot; type=&quot;#_x0000_t75&quot; alt=&quot;TestNG Tutorial: Install, Annotations, Framework, Examples in SELENIUM&quot;
 style=&#39;width:195pt;height:110.25pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\strivedi\AppData\Local\Temp\msohtmlclip1\01\clip_image002.png&quot;
  o:title=&quot; Install, Annotations, Framework, Examples in SELENIUM&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;color: #343434; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;TestNG
simplifies the way the tests are coded&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 12.5pt;&quot;&gt;There is no more need for a static main method in our tests. The sequence of actions is regulated by easy-to-understand annotations that do not require methods to be static.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKSTwniHmVWzt3L4N5KDJ5_SSjUVw-yRO2zAkFyhZq63WJ0AbhtmFAEX7cqfGKKKMS0WCEpFW1BE_Oa4FZtNV-F9ulGibAiIEHuOfXjZENj8K9XVS6g9yADtb2764mwM4Ft4c4m3w2tjOl/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;432&quot; data-original-width=&quot;462&quot; height=&quot;299&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKSTwniHmVWzt3L4N5KDJ5_SSjUVw-yRO2zAkFyhZq63WJ0AbhtmFAEX7cqfGKKKMS0WCEpFW1BE_Oa4FZtNV-F9ulGibAiIEHuOfXjZENj8K9XVS6g9yADtb2764mwM4Ft4c4m3w2tjOl/s320/3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaeODcuCp7JMRraiSwTu7eGAU9V2LRLAjiJAgON-zlIUG0kgRZnIK6VYyJUp4BvyChqltlNcDBI4w1y5Z7N-aEkB27aSMYMMh0vlumalwXiU09pVEQ-UM1tqcH8fs25znVuhFk-OdKCJQp/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;471&quot; data-original-width=&quot;423&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaeODcuCp7JMRraiSwTu7eGAU9V2LRLAjiJAgON-zlIUG0kgRZnIK6VYyJUp4BvyChqltlNcDBI4w1y5Z7N-aEkB27aSMYMMh0vlumalwXiU09pVEQ-UM1tqcH8fs25znVuhFk-OdKCJQp/s320/4.png&quot; width=&quot;287&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_3&quot; o:spid=&quot;_x0000_i1026&quot; type=&quot;#_x0000_t75&quot; alt=&quot;TestNG Tutorial: Install, Annotations, Framework, Examples in SELENIUM&quot;
 style=&#39;width:346.5pt;height:324pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\strivedi\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png&quot;
  o:title=&quot; Install, Annotations, Framework, Examples in SELENIUM&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;!--[if gte vml 1]&gt;&lt;v:shape
 id=&quot;Picture_x0020_4&quot; o:spid=&quot;_x0000_i1025&quot; type=&quot;#_x0000_t75&quot; alt=&quot;TestNG Tutorial: Install, Annotations, Framework, Examples in SELENIUM&quot;
 style=&#39;width:317.25pt;height:353.25pt;visibility:visible;mso-wrap-style:square&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\strivedi\AppData\Local\Temp\msohtmlclip1\01\clip_image004.png&quot;
  o:title=&quot; Install, Annotations, Framework, Examples in SELENIUM&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #343434; line-height: normal; mso-list: l3 level1 lfo4; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Uncaught exceptions are
     automatically handled by TestNG without terminating the test prematurely.
     These exceptions are reported as failed steps in the report.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/05/what-is-testng.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfnoozj6ousJUGJ-StjBmiC3NIV2Rv1W71C5L0Y4O4gtEpvbx6hZvQtn0PvAO1reLYyRqY_jSEpyQ5v-PnB8RyFQu2HtBA-mEOIgohcqK621Zg0UXlFfL6d9jIa3S6IXxKtzWPqGwoOtqx/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-653575183501509893</guid><pubDate>Tue, 23 May 2017 10:11:00 +0000</pubDate><atom:updated>2017-05-23T03:11:34.071-07:00</atom:updated><title>APPIUM Tutorial For Beginners</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;APPIUM is a freely distributed open source mobile application UI&lt;/span&gt;&lt;a href=&quot;http://www.guru99.com/software-testing.html&quot; style=&quot;background: rgb(255, 255, 255); box-sizing: inherit; color: #40a2b5; font-family: Arial, sans-serif; font-size: 16.8px; text-decoration-line: none; transition: all 0.2s;&quot;&gt;&amp;nbsp;&lt;/a&gt;Testing&amp;nbsp;&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;framework.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;Appium allows native, hybrid and web application testing and supports automation test on physical devices as well as on emulator or simulator both.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;It offers cross-platform application testing i.e. single API works for both Android and iOS platform test scripts.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;It has&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; line-height: inherit;&quot;&gt;NO&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&amp;nbsp;dependency on Mobile device OS. Because, APPIUM has framework or wrapper that translate&lt;/span&gt;&amp;nbsp;Selenium&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;Webdriver commands into UIAutomation (iOS) or UIAutomator (Android) commands depending on the device type not any OS type.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;Appium supports all languages that have Selenium client libraries like- Java, Objective-C,&lt;/span&gt;&amp;nbsp;JavaScript&amp;nbsp;&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;with node.js, PHP, Ruby, Python,&lt;/span&gt;&amp;nbsp;C#&amp;nbsp;&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;etc.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;h4 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 21.84px; line-height: 0.9em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
APPIUM Design Concepts&lt;/h4&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Appium is an &#39;HTTP Server&#39; written using&amp;nbsp;Node.js&amp;nbsp;platform and drives iOS and Android session using Webdriver JSON wire protocol. Hence, before initializing the Appium Server, Node.js must be pre-installed on the system.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;When Appium is downloaded and installed, then a server is setup on our machine that exposes a REST API.&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It receives connection and command request from the client and execute that command on mobile devices (Android / iOS).&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;It responds back with HTTP responses. Again, to execute this request, it uses the mobile test automation frameworks to drive the user interface of the apps. Framework like:-&lt;/li&gt;
&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 0px; margin-left: 40px; margin-top: 0px; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Apple Instruments for iOS (Instruments are available only in Xcode 3.0 or later with OS X v10.5 and later)&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Google UIAutomator for Android API level 16 or higher&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selendroid for Android API level 15 or less&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;h4 style=&quot;box-sizing: inherit; font-family: calibri, Arial, sans-serif; font-size: 21.84px; line-height: 0.9em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
Prerequisite to use APPIUM&lt;/h4&gt;
&lt;ol style=&quot;box-sizing: inherit; font-size: 16.8px; margin-bottom: 1.5rem; margin-top: 1.5rem; padding-left: 1.5rem;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;ANDROID SDK [&lt;a href=&quot;http://developer.android.com/sdk/index.html&quot; style=&quot;background: transparent; box-sizing: inherit; color: #40a2b5; text-decoration-line: none; transition: all 0.2s;&quot;&gt;Link&lt;/a&gt;]-&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;JDK (Java Development Kit) [&lt;a href=&quot;http://www.oracle.com/technetwork/java/javase/downloads/index.html&quot; style=&quot;background: transparent; box-sizing: inherit; color: #40a2b5; text-decoration-line: none; transition: all 0.2s;&quot;&gt;Link&lt;/a&gt;]&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;TestNG [&lt;a href=&quot;http://testng.org/doc/download.html&quot; style=&quot;background: transparent; box-sizing: inherit; color: #40a2b5; text-decoration-line: none; transition: all 0.2s;&quot;&gt;Link&lt;/a&gt;]&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Eclipse [&lt;a href=&quot;http://www.eclipse.org/downloads/&quot; style=&quot;background: transparent; box-sizing: inherit; color: #40a2b5; text-decoration-line: none; transition: all 0.2s;&quot;&gt;Link&lt;/a&gt;]&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Selenium Server JAR [&lt;a href=&quot;http://docs.seleniumhq.org/download/&quot; style=&quot;background: transparent; box-sizing: inherit; color: #40a2b5; text-decoration-line: none; transition: all 0.2s;&quot;&gt;Link&lt;/a&gt;]&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Webdriver Language Binding Library [&lt;a href=&quot;http://docs.seleniumhq.org/download/&quot; style=&quot;background: transparent; box-sizing: inherit; color: #40a2b5; text-decoration-line: none; transition: all 0.2s;&quot;&gt;Link&lt;/a&gt;]&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;APPIUM For Windows [&lt;a href=&quot;https://bitbucket.org/appium/appium.app/downloads/&quot; style=&quot;background: transparent; box-sizing: inherit; color: #40a2b5; text-decoration-line: none; transition: all 0.2s;&quot;&gt;Link&lt;/a&gt;]&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;APK App Info On Google Play [&lt;a href=&quot;https://play.google.com/store/apps/details?id=de.migali.soft.apkinfo&amp;amp;hl=en&quot; style=&quot;background: transparent; box-sizing: inherit; color: #40a2b5; text-decoration-line: none; transition: all 0.2s;&quot;&gt;Link&lt;/a&gt;]&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Node.js (Not Required - Whenever Appium server is installed, it by default comes with &quot;Node.exe&quot; &amp;amp; NPM. It&#39;s included in Current version of Appium.)&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/05/appium-tutorial-for-beginners.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-9128309093102825985</guid><pubDate>Mon, 08 May 2017 15:58:00 +0000</pubDate><atom:updated>2017-05-08T08:58:29.287-07:00</atom:updated><title>identification of components must be included in performance testing:</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;1.&lt;/strong&gt;&amp;nbsp;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Functional, business critical features&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
Components that have a Customer Service Level Agreement or those having complex business logic (and are critical for the business’s success) should be included.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Example:&lt;/span&gt;&amp;nbsp; Checkout and Payment for an E-commerce site like eBay.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;#2.&lt;/strong&gt;&amp;nbsp;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Components that process high volumes of data&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
Components, especially background jobs are to be included for sure.&amp;nbsp;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Example:&lt;/span&gt;&amp;nbsp;Upload and download feature on a file sharing website.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;#3.&lt;/strong&gt;&amp;nbsp;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Components which are commonly used&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
A component that is frequently used by end-users, jobs scheduled multiple times in a day, etc.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Example:&lt;/span&gt;&amp;nbsp;Login and Logout.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;#4.&lt;/strong&gt;&amp;nbsp;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Components interfacing with one or more application systems&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
In a system involving multiple applications that interact with one another, all the interface components must be deemed as critical for performance test.&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Example:&lt;/span&gt;&amp;nbsp;E-commerce sites interface with online banking sites for payments, which is an external third party application. This should be definitely the part of Perf testing.&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/05/identification-of-components-must-be.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-5289035042264591627</guid><pubDate>Mon, 08 May 2017 15:57:00 +0000</pubDate><atom:updated>2017-05-08T08:57:09.370-07:00</atom:updated><title>How does Functional Testing differ from Performance Testing?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
How does Functional Testing differ from Performance Testing?&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh01d1GnohDkc7-XlPBwdoSQjzmL5L6iaKNItgLbJvbTshU5pWAdSbPlfXKw0v3LALMkFI3VRUgbA4AeplKquSttJ6NIkFA1FdMK70TOwzTC0bkYM-fbu1AZDu5ghMQr-9cVZOanS2TL0bn/s1600/Functional-vs-Performance-Testing.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;438&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh01d1GnohDkc7-XlPBwdoSQjzmL5L6iaKNItgLbJvbTshU5pWAdSbPlfXKw0v3LALMkFI3VRUgbA4AeplKquSttJ6NIkFA1FdMK70TOwzTC0bkYM-fbu1AZDu5ghMQr-9cVZOanS2TL0bn/s640/Functional-vs-Performance-Testing.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/05/how-does-functional-testing-differ-from.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh01d1GnohDkc7-XlPBwdoSQjzmL5L6iaKNItgLbJvbTshU5pWAdSbPlfXKw0v3LALMkFI3VRUgbA4AeplKquSttJ6NIkFA1FdMK70TOwzTC0bkYM-fbu1AZDu5ghMQr-9cVZOanS2TL0bn/s72-c/Functional-vs-Performance-Testing.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-6046582729217039620</guid><pubDate>Mon, 08 May 2017 15:55:00 +0000</pubDate><atom:updated>2017-05-08T08:55:33.988-07:00</atom:updated><title>Types of Performance Testing</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuZdKrZAmXgMzNXtb9Gti404dEUVa0Pw9NA443oVJR9Y9N3YZu3SQ4zaT2m6YYmpjyb3Uji8WeiqYFJZDWI4kzDvsIZgIaOj-ygMk2YYT-kJq0wkyrgMQwT9w5bSkp0p6DPZRku4oTgR6t/s1600/Per.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuZdKrZAmXgMzNXtb9Gti404dEUVa0Pw9NA443oVJR9Y9N3YZu3SQ4zaT2m6YYmpjyb3Uji8WeiqYFJZDWI4kzDvsIZgIaOj-ygMk2YYT-kJq0wkyrgMQwT9w5bSkp0p6DPZRku4oTgR6t/s640/Per.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Load Testing&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
Load testing is a type of performance test where the application is tested for its performance on normal and peak usage. Performance of an application is checked with respect to its response to the user request, its ability to respond consistently within accepted tolerance on different user loads.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;The key considerations are:&lt;/strong&gt;&lt;/div&gt;
&lt;ol style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin: 0px 0px 1.5385em 3em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;What is the max load the application is able to hold before the application starts behaving unexpectedly?&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;How much data the Database is able to handle before system slowness or the crash is observed?&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;Are there any network related issues to be addressed?&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Stress Testing&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
Stress testing is the test to find the ways to break the system. The test also gives the idea for the maximum load the system can hold.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
Generally Stress testing has incremental approach where the load is increased gradually. The test is started with good load for which application has been already tested. Then slowly more load is added to stress the system and the point when we start seeing servers not responding to the requests is considered as a break point.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
During this test all the functionality of the application are tested under heavy load and on back-end these functionality might be running complex queries, handling data, etc.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;The following questions are to be addressed:&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin: 0px 0px 1.5385em 3em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;What is the max load a system can sustain before it breaks down?&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;How is the system break down?&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;Is the system able to recover once it’s crashed?&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;In how many ways system can break and which are the weak node while handling the unexpected load?&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Volume Testing&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
Volume test is to verify the performance of the application is not affected by volume of data that is being handled by the application. Hence to execute Volume Test generally huge volume of data is entered into the database. This test can be incremental or steady test. In the incremental test volume of data is increased gradually.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
Generally with the application usage, the database size grows and it is necessary to test the application against heavy Database.&amp;nbsp; A good example of this could be a website of a new school or college having small data to store initially but after 5-10 years the data stores in database of website is much more.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
The most common recommendation of this test is tuning of DB queries which access the Database for data. In some cases the response of DB queries is high for big database, so it needs to be rewritten in a different way or index, joints etc need to be included.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;Capacity Testing&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;margin: 0px; padding: 0px; text-decoration-line: underline;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
=&amp;gt; Is the application capable of meeting business volume under both normal and peak load conditions?&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
Capacity testing is generally done for future prospects.&amp;nbsp;&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Capacity testing addresses the following:&lt;/strong&gt;&lt;/div&gt;
&lt;ol style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin: 0px 0px 1.5385em 3em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;Will the application able to support the future load?&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;Is the environment capable to stand for upcoming increased load?&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;What are the additional resources required to make environment capable enough?&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
Capacity testing is used to determine how many users and/or transactions a given web application will support and still meet performance. During this testing resources such as processor capacity, network bandwidth, memory usage, disk capacity, etc. are considered and altered to meet the goal.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
Online Banking is a perfect example of where capacity testing could play a major part.&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/05/types-of-performance-testing.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuZdKrZAmXgMzNXtb9Gti404dEUVa0Pw9NA443oVJR9Y9N3YZu3SQ4zaT2m6YYmpjyb3Uji8WeiqYFJZDWI4kzDvsIZgIaOj-ygMk2YYT-kJq0wkyrgMQwT9w5bSkp0p6DPZRku4oTgR6t/s72-c/Per.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-4886803597452758180</guid><pubDate>Mon, 08 May 2017 15:52:00 +0000</pubDate><atom:updated>2017-05-08T08:52:09.398-07:00</atom:updated><title>Why Performance testing?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Performance testing has proved itself to be crucial for the success of a business. Not only does a poor performing site face financial&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin: 0px; padding: 0px;&quot;&gt;&lt;span id=&quot;more-3080&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;losses, it also could lead to legal repercussions at times.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
No one wants to put up with a slow performing, unreliable site in cases of purchasing, online test taking, bill payment, etc. With the internet being so widely available, the alternates are immense. It is easier to lose clientele than gain them and performance is a key game changer.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: 13px; margin-bottom: 1.5385em; padding: 0px;&quot;&gt;
Therefore, performance testing is no longer a name sake checkpoint before going live. It is indeed a&amp;nbsp;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;comprehensive and detailed stage&lt;/strong&gt;&amp;nbsp;that would determine whether the performance of a site or an application meets the needs.&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/05/why-performance-testing.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-2857682128902020946</guid><pubDate>Mon, 08 May 2017 15:42:00 +0000</pubDate><atom:updated>2017-05-08T08:42:29.539-07:00</atom:updated><title>Product Backlog,Scrum Practices,Process flow of Scrum Methodologies:</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
Product Backlog&lt;/h3&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
This is a repository where requirements are tracked with details on the no of requirements to be completed for each release. It should be maintained and prioritized by scrum master, and it should be distributed to the scrum team. Team can also request for a new requirement addition or modification or deletion&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
Scrum Practices&lt;/h3&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Practices are described in detailed:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiet70poUdaIXxCzf-5qgwYKN84y3yGD51RTFoglHpXEOY6Z2S8CMU5pMBZ2VJQQJScT8BoTq1qykgciiJUh6T57FZVUAc8YyOetxwPgFEgBo-4AVT9zVjjhq67JGNwEXRN5503j6GmWsyj/s1600/Scrum.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiet70poUdaIXxCzf-5qgwYKN84y3yGD51RTFoglHpXEOY6Z2S8CMU5pMBZ2VJQQJScT8BoTq1qykgciiJUh6T57FZVUAc8YyOetxwPgFEgBo-4AVT9zVjjhq67JGNwEXRN5503j6GmWsyj/s400/Scrum.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 26.04px; line-height: 1.55em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
Process flow of Scrum Methodologies:&lt;/h3&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
Process flow of scrum testing is as follows:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
Each iteration of a scrum is known as Sprint&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
Product backlog is a list where all details are entered to get end product&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
During each Sprint, top items of Product backlog are selected and turned into Sprint backlog&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
Team works on the defined sprint backlog&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
Team checks for the daily work&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
At the end of the sprint, team delivers product functionality&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/05/product-backlogscrum-practicesprocess.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiet70poUdaIXxCzf-5qgwYKN84y3yGD51RTFoglHpXEOY6Z2S8CMU5pMBZ2VJQQJScT8BoTq1qykgciiJUh6T57FZVUAc8YyOetxwPgFEgBo-4AVT9zVjjhq67JGNwEXRN5503j6GmWsyj/s72-c/Scrum.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-1068616459035740505</guid><pubDate>Mon, 08 May 2017 15:37:00 +0000</pubDate><atom:updated>2017-05-08T08:37:49.777-07:00</atom:updated><title>Scrum consists of three roles, and their responsibilities are explained as follows</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;SCRUM is an agile development method which concentrates specifically on how to manage tasks within a team-based development environment. Basically, Scrum is derived from activity that occurs during a rugby match. Scrum believes in empowering the development team and advocates working in small teams (say- 7 to 9 members). It consists of three roles, and their responsibilities are explained as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyx9HMqf9JVHkyCetKGkm28wKqj3Mkb9_Q6N369hBClkOws4bPc3BNJS1CuV7wH8I8dG087z1W0lZyBurYvefX1N6c9AYC458ZRj4i_w7Smq_ag3YGFSlXlnwk6cYCZhEwampXjisX3i-j/s1600/Agile_Scrum.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyx9HMqf9JVHkyCetKGkm28wKqj3Mkb9_Q6N369hBClkOws4bPc3BNJS1CuV7wH8I8dG087z1W0lZyBurYvefX1N6c9AYC458ZRj4i_w7Smq_ag3YGFSlXlnwk6cYCZhEwampXjisX3i-j/s400/Agile_Scrum.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-left: 1.5rem; margin-top: 1.5rem; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
Scrum Master&lt;/div&gt;
&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 0px; margin-left: 1.5rem; margin-top: 0px; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
Master is responsible for setting up the team, sprint meeting and removes obstacles to progress&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
Product owner&lt;/div&gt;
&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 0px; margin-left: 1.5rem; margin-top: 0px; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
The Product Owner creates product backlog, prioritizes the backlog and is responsible for the delivery of the functionality at each iteration&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
Scrum Team&lt;/div&gt;
&lt;ul style=&quot;box-sizing: inherit; margin-bottom: 0px; margin-left: 1.5rem; margin-top: 0px; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;
Team manages its own work and organizes the work to complete the sprint or cycle&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/05/scrum-consists-of-three-roles-and-their.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyx9HMqf9JVHkyCetKGkm28wKqj3Mkb9_Q6N369hBClkOws4bPc3BNJS1CuV7wH8I8dG087z1W0lZyBurYvefX1N6c9AYC458ZRj4i_w7Smq_ag3YGFSlXlnwk6cYCZhEwampXjisX3i-j/s72-c/Agile_Scrum.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-7051578742164852755</guid><pubDate>Mon, 08 May 2017 15:34:00 +0000</pubDate><atom:updated>2017-05-08T08:34:02.758-07:00</atom:updated><title>Agile Testing Methodology</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: calibri, Arial, sans-serif; font-size: 21.84px; line-height: 0.9em; margin: 1.5rem 0px 0.75rem; text-rendering: optimizeLegibility;&quot;&gt;
Agile Testing Methodology&lt;/h4&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9MnnbhFXJ9-xxg95wfBNZyT2odsMWfHcDpZalWj_snuyL43oTCIyjCVRL7hWNBx8GK69Vnu83BBuIeOhXpBJXTc-Na00SGEI4fHUpKosJitXUXVNOmOvNdnzsovogmjE6-RVoniuSAip6/s1600/Agile.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;231&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9MnnbhFXJ9-xxg95wfBNZyT2odsMWfHcDpZalWj_snuyL43oTCIyjCVRL7hWNBx8GK69Vnu83BBuIeOhXpBJXTc-Na00SGEI4fHUpKosJitXUXVNOmOvNdnzsovogmjE6-RVoniuSAip6/s400/Agile.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/05/agile-testing-methodology.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9MnnbhFXJ9-xxg95wfBNZyT2odsMWfHcDpZalWj_snuyL43oTCIyjCVRL7hWNBx8GK69Vnu83BBuIeOhXpBJXTc-Na00SGEI4fHUpKosJitXUXVNOmOvNdnzsovogmjE6-RVoniuSAip6/s72-c/Agile.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-824067517881717442.post-4809238213888669322</guid><pubDate>Mon, 08 May 2017 15:31:00 +0000</pubDate><atom:updated>2017-05-08T08:31:57.717-07:00</atom:updated><title>What is Agile Methodology?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;AGILE methodology is a practice that promotes&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; line-height: inherit;&quot;&gt;continuous iteration&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&amp;nbsp;of development and testing throughout the software development lifecycle of the project. Both development and testing activities are concurrent unlike the Waterfall model.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.3rem;&quot;&gt;
The agile software development emphasizes on four core values.&lt;/div&gt;
&lt;ol style=&quot;background-color: white; box-sizing: inherit; color: #343434; font-family: Arial, sans-serif; font-size: 16.8px; margin-bottom: 1.5rem; margin-top: 1.5rem; padding-left: 1.5rem;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Individual and team interactions over processes and tools&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Working software over comprehensive documentation&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Customer collaboration over contract negotiation&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Responding to change over following a plan&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</description><link>http://testingschoolst.blogspot.com/2017/05/what-is-agile-methodology.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item></channel></rss>