<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9174045509955845375</id><updated>2026-08-29T15:15:04.250-07:00</updated><title type='text'>SeleniumTesting.com</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>169</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-7685196154423031428</id><published>2018-11-07T23:47:00.001-08:00</published><updated>2018-11-07T23:47:50.767-08:00</updated><title type='text'>Download Selenium Documentation, Selenium WebDriver, Selenium-RC, WebDriver and the Selenium-Server, Selenium-IDE, Selenium Notes, videos, Programs by www.laxmiroy.blogspot.in/</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;

&lt;br /&gt;
&lt;div style=&quot;margin: 0px 0px 10.66px 48px; text-indent: -18pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;color: #353535; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 107%; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;1.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #353535; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 107%; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;margin: 0px;&quot;&gt;What is Selenium and what is
composed of?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Selenium IDE (Integrated
Development Environment) :&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;It is a tool for
recording and playing back.&amp;nbsp; It is a firefox plugin&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;WebDriver and RC:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&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;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Grid: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&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;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 48px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;2.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;color: #353535; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;What is Selenium 2.0 ?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 48px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 48px; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-IN&quot; style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Web testing tools Selenium RC and WebDriver are consolidated in
single tool in Selenium 2.0&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0px 0px 10.66px 48px; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-IN&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 107%; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;3.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;color: #353535; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 107%; margin: 0px;&quot;&gt;Mention what is Selenium 3.0?&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 107%; margin: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 20px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&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;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;table align=&quot;left&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; margin: 0px 9px; width: 644px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr style=&quot;height: 10.2pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-image: none; border: 1.33px solid rgb(204, 204, 204); height: 10.2pt; margin: 0px; padding: 3.75pt 7.5pt;&quot; valign=&quot;bottom&quot;&gt;
  &lt;div style=&quot;line-height: normal; margin: 0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Beta 1 updates&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(204, 204, 204) rgb(0, 0, 0); border-image: none; border-style: solid solid solid none; border-width: 1.33px 1.33px 1.33px 0px; height: 10.2pt; margin: 0px; padding: 3.75pt 7.5pt;&quot; valign=&quot;bottom&quot;&gt;
  &lt;div style=&quot;line-height: normal; margin: 0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Beta 2 updates (Only for Java)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 21.1pt; mso-yfti-irow: 1;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) rgb(204, 204, 204) rgb(204, 204, 204); border-image: none; border-style: none solid solid; border-width: 0px 1.33px 1.33px; height: 21.1pt; margin: 0px; padding: 3.75pt 7.5pt;&quot; valign=&quot;bottom&quot;&gt;
  &lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Minimum java
  version is now 8+&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) rgb(204, 204, 204) rgb(204, 204, 204) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1.33px 1.33px 0px; height: 21.1pt; margin: 0px; padding: 3.75pt 7.5pt;&quot; valign=&quot;bottom&quot;&gt;
  &lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;System property
  webdriver.firefox.marionette now forces the server in marionette or legacy
  firefox driver mode, ignoring any related Desired Capability&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 20.45pt; mso-yfti-irow: 2;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) rgb(204, 204, 204) rgb(204, 204, 204); border-image: none; border-style: none solid solid; border-width: 0px 1.33px 1.33px; height: 20.45pt; margin: 0px; padding: 3.75pt 7.5pt;&quot; valign=&quot;bottom&quot;&gt;
  &lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;It will support
  for Firefox Via Mozilla’s geckodriver&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) rgb(204, 204, 204) rgb(204, 204, 204) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1.33px 1.33px 0px; height: 20.45pt; margin: 0px; padding: 3.75pt 7.5pt;&quot; valign=&quot;bottom&quot;&gt;
  &lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Grid fixes NPE’s
  on registration when -browser not specified&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 31.3pt; mso-yfti-irow: 3; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) rgb(204, 204, 204) rgb(204, 204, 204); border-image: none; border-style: none solid solid; border-width: 0px 1.33px 1.33px; height: 31.3pt; margin: 0px; padding: 3.75pt 7.5pt;&quot; valign=&quot;bottom&quot;&gt;
  &lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Support for Edge
  is provided by MS&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;It now supports
  Safari on MacOS via Apple’s own Safari driver&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) rgb(204, 204, 204) rgb(204, 204, 204) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1.33px 1.33px 0px; height: 31.3pt; margin: 0px; padding: 3.75pt 7.5pt;&quot; valign=&quot;bottom&quot;&gt;
  &lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Update
  GeckoDriver –port argument in all bindings&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 20px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Here are few new features added to Selenium 3.0&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0px 0px 0px 48px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0px 0px 10.66px 48px; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-IN&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 107%; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;4.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;color: #353535; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 107%; margin: 0px;&quot;&gt;How will you find an element using Selenium?&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 107%; margin: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 20px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&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;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;ID&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Name&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Tag&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Attribute&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;CSS&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Linktext&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;PartialLink Text&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: normal; margin: 0px 0px 0px 20px; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #3d3d3d; font-family: Symbol; font-size: 10pt; margin: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt &amp;quot;Times New Roman&amp;quot;; margin: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d3d3d; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; margin: 0px;&quot;&gt;Xpath etc&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0px 0px 10.66px 48px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0px 0px 10.66px 24px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0px 0px 10.66px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0px 0px 0px 48px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0px 0px 10.66px 48px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;i&gt;&lt;/i&gt;&lt;u&gt;&lt;/u&gt;&lt;sub&gt;&lt;/sub&gt;&lt;sup&gt;&lt;/sup&gt;&lt;strike&gt;&lt;/strike&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/7685196154423031428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2018/11/download-selenium-documentation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/7685196154423031428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/7685196154423031428'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2018/11/download-selenium-documentation.html' title='Download Selenium Documentation, Selenium WebDriver, Selenium-RC, WebDriver and the Selenium-Server, Selenium-IDE, Selenium Notes, videos, Programs by www.laxmiroy.blogspot.in/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-5197563150884720627</id><published>2016-03-02T04:48:00.003-08:00</published><updated>2018-11-07T23:25:08.525-08:00</updated><title type='text'>Selenium Latest Question and aswers.....</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.laxmiroy.blogspot.in/&quot; target=&quot;_blank&quot;&gt;Download Selenium Documentation, Selenium WebDriver, Selenium-RC, WebDriver and the Selenium-Server, Selenium-IDE, Selenium Notes, videos, Programs by www.laxmiroy.blogspot.in/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; line-height: 15pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;1)
What is Automation Testing?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.0pt; margin-bottom: 18.45pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;Automation testing or Test Automation is a
process of automating the manual process to test the application/system under
test. Automation testing involves use to a separate testing tool which lets you
create test scripts which can be executed repeatedly and doesn’t require any
manual intervention.&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: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;2)
What are the benefits of Automation Testing?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&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: 15.0pt; margin-bottom: 18.45pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;Benefits of Automation testing are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Supports execution of repeated
     test cases&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Aids in testing a large test
     matrix&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Enables parallel execution&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Encourages unattended execution&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Improves accuracy thereby reducing
     human generated errors&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Saves time and money&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;3) Why
should Selenium be selected as a test tool?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&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: 15.0pt; margin-bottom: 18.45pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;Selenium&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;is free and open source&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;have a large user base and helping
     communities&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;have cross Browser compatibility
     (Firefox, chrome, Internet Explorer, Safari etc.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;have great platform compatibility
     (Windows, Mac OS, Linux etc.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;supports multiple programming
     languages (Java, C#, Ruby, Python, Pearl etc.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;has fresh and regular repository
     developments&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;supports distributed testing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;4)
What is Selenium? What are the different Selenium components?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&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: 15.0pt; margin-bottom: 18.45pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;Selenium is one of the most popular automated
testing suites. Selenium is designed in a way to support and encourage
automation testing of functional aspects of web based applications and a wide
range of browsers and platforms. Due to its existence in the open source
community, it has become one of the most accepted tools amongst the testing
professionals.&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: 15.0pt; margin-bottom: 18.45pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;Selenium is not just a single tool or a
utility, rather a package of several testing tools and for the same reason it
is referred to as a Suite. Each of these tools is designed to cater different
testing and test environment requirements.&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: 15.0pt; margin-bottom: 18.45pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;The suite package constitutes of the following
sets of tools:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;a href=&quot;http://www.softwaretestinghelp.com/selenium-ide-download-and-installation-selenium-tutorial-2/&quot; title=&quot;Selenium IDE&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; text-decoration: none;&quot;&gt;Selenium
     Integrated Development Environment (IDE)&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;– Selenium IDE
     is a record and playback tool. It is distributed as a Firefox Plugin.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Selenium Remote
     Control (RC)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;– Selenium RC is
     a server that allows user to create test scripts in a desired programming
     language. It also allows executing test scripts within the large spectrum
     of browsers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;a href=&quot;http://www.softwaretestinghelp.com/selenium-webdriver-selenium-tutorial-8/&quot; title=&quot;Selenium WebDriver&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; text-decoration: none;&quot;&gt;Selenium
     WebDriver&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;– WebDriver is a
     different tool altogether that has various advantages over Selenium RC.
     WebDriver directly communicates with the web browser and uses its native
     compatibility to automate.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;a href=&quot;http://www.softwaretestinghelp.com/selenium-grid-selenium-tutorial-29/&quot; title=&quot;Selenium Grid&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; text-decoration: none;&quot;&gt;Selenium
     Grid&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;– Selenium Grid
     is used to distribute your test execution on multiple platforms and environments
     concurrently.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;5)
What are the testing types that can be supported by Selenium?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&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: 15.0pt; margin-bottom: 18.45pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;Selenium supports the following types of
testing:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Functional Testing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Regression Testing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.0pt; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;6)
What are the limitations of Selenium?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&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: 15.0pt; margin-bottom: 18.45pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 10pt;&quot;&gt;Following are the limitations of Selenium:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Selenium supports testing of only
     web based applications&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Mobile applications cannot be
     tested using Selenium&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Captcha and Bar code readers
     cannot be tested using Selenium&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;Reports can only be generated
     using third party tools like TestNG or Junit.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;As Selenium is a free tool, thus
     there is no ready vendor support though the user can find numerous helping
     communities.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15pt; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;User is expected to possess prior
     programming language knowledge.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/5197563150884720627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2016/03/selenium-latest-question-and-aswers.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/5197563150884720627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/5197563150884720627'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2016/03/selenium-latest-question-and-aswers.html' title='Selenium Latest Question and aswers.....'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-1777708538342982314</id><published>2012-09-23T01:15:00.002-07:00</published><updated>2012-09-23T01:15:17.470-07:00</updated><title type='text'>WebDriver: Advanced Usage</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.laxmiroy.blogspot.in/&quot; target=&quot;_blank&quot;&gt; Download Selenium Documentation,   Selenium WebDriver, Selenium-RC,   WebDriver and the   Selenium-Server, Selenium-IDE,   Selenium Notes, videos, Programs   by www.laxmiroy.blogspot.in/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
Explicit and Implicit Waits&lt;/h2&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;/span&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
Waiting is having the automated task execution elapse a certain amount of time before continuing with the next step.&lt;/div&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;/span&gt;
&lt;h3 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
Explicit Waits&lt;/h3&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;/span&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
An explicit waits is code you define to wait for a certain condition to occur before proceeding further in the code.
The worst case of this is Thread.sleep(), which sets the condition to an exact time period to wait.
There are some convenience methods provided that help you write code that will wait only as long as required.
WebDriverWait in combination with ExpectedCondition is one way this can be accomplished.&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Java&lt;/span&gt;&lt;/h2&gt;
&lt;pre style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span class=&quot;n&quot;&gt;WebDriver&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;FirefoxDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;http://somedomain/url_that_delays_loading&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;WebElement&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;myDynamicElement&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;WebDriverWait&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;))&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;until&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ExpectedCondition&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;WebElement&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;(){&lt;/span&gt;
 &lt;span class=&quot;nd&quot;&gt;@Override&lt;/span&gt;
 &lt;span class=&quot;kd&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;WebElement&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;apply&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;WebDriver&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;findElement&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;By&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;myDynamicElement&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
 &lt;span class=&quot;o&quot;&gt;}});&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span class=&quot;o&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h3 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
Implicit Waits&lt;/h3&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
An implicit wait is to tell WebDriver to poll the DOM for a certain 
amount of time when trying to find an element or elements if they are 
not immediately available.
The default setting is 0. Once set, the implicit wait is set for the 
life of the WebDriver object instance.&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
Java&lt;/h2&gt;
&lt;pre style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span class=&quot;n&quot;&gt;WebDriver&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;FirefoxDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;manage&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;timeouts&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;implicitlyWait&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;TimeUnit&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;SECONDS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;http://somedomain/url_that_delays_loading&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;WebElement&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;myDynamicElement&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;findElement&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;By&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;myDynamicElement&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span class=&quot;o&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
RemoteWebDriver&lt;/h2&gt;
&lt;pre style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.io.File&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.net.URL&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;org.openqa.selenium.OutputType&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;org.openqa.selenium.TakesScreenshot&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;org.openqa.selenium.WebDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;org.openqa.selenium.remote.Augmenter&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;org.openqa.selenium.remote.DesiredCapabilities&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;org.openqa.selenium.remote.RemoteWebDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kd&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kd&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Testing&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;kd&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;myTest&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;kd&quot;&gt;throws&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Exception&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;WebDriver&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;RemoteWebDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;
                                &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;URL&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;http://localhost:4444/wd/hub&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;),&lt;/span&gt; 
                                &lt;span class=&quot;n&quot;&gt;DesiredCapabilities&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;firefox&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;());&lt;/span&gt;
            &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;http://www.google.com&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
            &lt;span class=&quot;c&quot;&gt;// RemoteWebDriver does not implement the TakesScreenshot class&lt;/span&gt;
        &lt;span class=&quot;c&quot;&gt;// if the driver does have the Capabilities to take a screenshot&lt;/span&gt;
        &lt;span class=&quot;c&quot;&gt;// then Augmenter will add the TakesScreenshot methods to the instance&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;WebDriver&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;augmentedDriver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Augmenter&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;augment&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;File&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;screenshot&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TakesScreenshot&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;augmentedDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;).&lt;/span&gt;
                            &lt;span class=&quot;n&quot;&gt;getScreenshotAs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OutputType&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;FILE&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span class=&quot;o&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Using a FirefoxProfile&lt;/pre&gt;
&lt;h2 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
Java &lt;/h2&gt;
&lt;pre style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span class=&quot;n&quot;&gt;FirefoxProfile&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fp&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;FirefoxProfile&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;// set something on the profile...&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;DesiredCapabilities&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dc&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;DesiredCapabilities&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;firefox&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;dc&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;setCapability&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;FirefoxDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;PROFILE&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fp&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;WebDriver&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;RemoteWebDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dc&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span class=&quot;o&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h3 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
Using ChromeOptions&lt;/h3&gt;
&lt;h2 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
Java &lt;/h2&gt;
&lt;pre style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span class=&quot;n&quot;&gt;ChromeOptions&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;options&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ChromeOptions&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;// set some options&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;DesiredCapabilities&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dc&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;DesiredCapabilities&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;chrome&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;dc&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;setCapability&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ChromeOptions&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;CAPABILITY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;options&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;WebDriver&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;RemoteWebDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dc&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;h3 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&amp;nbsp;Browser Startup Manipulation&lt;/h3&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
Topics to be included:&lt;/div&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;/span&gt;&lt;ul class=&quot;simple&quot; style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;li&gt;restoring cookies&lt;/li&gt;
&lt;li&gt;changing firefox profile&lt;/li&gt;
&lt;li&gt;running browsers with plugins&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;/span&gt;
&lt;h3 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
Using a Proxy&lt;/h3&gt;
&lt;h4 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
Internet Explorer&lt;/h4&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;/span&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
The easiest and recommended way is to manually set the proxy on the machine that will be running the test.
If that is not possible or you want your test to run with a different configuration or proxy,
then you can use the following technique that uses a Capababilities object. This temporarily changes the system’s
proxy settings and changes them back to the original state when done.&lt;/div&gt;
&lt;h2 style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
Java &lt;/h2&gt;
&lt;pre style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span class=&quot;n&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;PROXY&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;localhost:8080&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;org&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;openqa&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;selenium&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;Proxy&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;proxy&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;org&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;openqa&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;selenium&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;Proxy&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;proxy&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;setHttpProxy&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PROXY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
     &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;setFtpProxy&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PROXY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
     &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;setSslProxy&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PROXY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;DesiredCapabilities&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cap&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;DesiredCapabailities&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;cap&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;setPreference&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CapabilityType&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;PROXY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;proxy&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;WebDriver&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;InternetExplorerDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cap&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;h3&gt;
&amp;nbsp;&lt;/h3&gt;
&lt;h2&gt;
&amp;nbsp;&lt;/h2&gt;
&lt;pre&gt;&lt;span class=&quot;o&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;o&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;h2&gt;
&amp;nbsp;&lt;/h2&gt;
&lt;pre&gt;&lt;span class=&quot;o&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;h3&gt;
&amp;nbsp;&lt;/h3&gt;
&lt;pre&gt;&lt;span class=&quot;o&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/1777708538342982314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2012/09/webdriver-advanced-usage.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/1777708538342982314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/1777708538342982314'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2012/09/webdriver-advanced-usage.html' title='WebDriver: Advanced Usage'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-2504866308958198709</id><published>2012-09-23T01:04:00.001-07:00</published><updated>2012-09-23T01:04:23.833-07:00</updated><title type='text'>How to Setting Up a Selenium-WebDriver Project</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.laxmiroy.blogspot.in/&quot; target=&quot;_blank&quot;&gt; Download Selenium Documentation,   Selenium WebDriver, Selenium-RC,   WebDriver and the   Selenium-Server, Selenium-IDE,   Selenium Notes, videos, Programs   by www.laxmiroy.blogspot.in/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
 &lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; LatentStyleCount=&quot;156&quot;&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin:0in;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;
 mso-ansi-language:#0400;
 mso-fareast-language:#0400;
 mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;Setting Up a
Selenium-WebDriver Project&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;To install Selenium means
to set up a project in a development so you can write a program using Selenium.
How you do this depends on your programming language and your development
environment.&lt;/span&gt;&lt;br /&gt;


&lt;h3&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;Java&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;The easiest way to set up
a Selenium 2.0 Java project is to use Maven. Maven will download the java
bindings (the Selenium 2.0 java client library) and all its dependencies, and
will create the project for you, using a maven pom.xml (project configuration)
file. Once you’ve done this, you can import the maven project into your
preferred IDE, IntelliJ IDEA or Eclipse.&lt;/span&gt;&lt;br /&gt;


&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;First, create a folder to
contain your Selenium project files. Then, to use Maven, you need a pom.xml
file. This can be created with a text editor. We won’t teach the details of
pom.xml files or for using Maven since there are already excellent references
on this. Your pom.xml file will look something like this. Create this file in
the folder you created for your project.&lt;/span&gt;&lt;br /&gt;


&lt;pre&gt;&lt;span class=&quot;cp&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;nt&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;project span=&quot;span&quot;&gt;&lt;/project&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; &lt;span class=&quot;na&quot;&gt;xmlns=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;http://maven.apache.org/POM/4.0.0&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;na&quot;&gt;xmlns:xsi=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;xsi:schemaLocation=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;modelversion&gt;&lt;/modelversion&gt;&lt;/span&gt;4.0.0&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;groupid&gt;&lt;/groupid&gt;&lt;/span&gt;MySel20Proj&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;artifactid&gt;&lt;/artifactid&gt;&lt;/span&gt;MySel20Proj&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;version&gt;&lt;/version&gt;&lt;/span&gt;1.0&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;dependencies&gt;&lt;/dependencies&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;dependency&gt;&lt;/dependency&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;nt&quot;&gt;&lt;groupid&gt;&lt;/groupid&gt;&lt;/span&gt;org.seleniumhq.selenium&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;nt&quot;&gt;&lt;artifactid&gt;&lt;/artifactid&gt;&lt;/span&gt;selenium-java&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;nt&quot;&gt;&lt;version&gt;&lt;/version&gt;&lt;/span&gt;2.25.0&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;dependency&gt;&lt;/dependency&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;nt&quot;&gt;&lt;groupid&gt;&lt;/groupid&gt;&lt;/span&gt;com.opera&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;nt&quot;&gt;&lt;artifactid&gt;&lt;/artifactid&gt;&lt;/span&gt;operadriver&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;dependencymanagement&gt;&lt;/dependencymanagement&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;dependencies&gt;&lt;/dependencies&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;nt&quot;&gt;&lt;dependency&gt;&lt;/dependency&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;groupid&gt;&lt;/groupid&gt;&lt;/span&gt;com.opera&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;nt&quot;&gt;&lt;artifactid&gt;&lt;/artifactid&gt;&lt;/span&gt;operadriver&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;nt&quot;&gt;&lt;version&gt;&lt;/version&gt;&lt;/span&gt;0.16&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;nt&quot;&gt;&lt;exclusions&gt;&lt;/exclusions&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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;span class=&quot;nt&quot;&gt;&lt;exclusion&gt;&lt;/exclusion&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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;span class=&quot;nt&quot;&gt;&lt;groupid&gt;&lt;/groupid&gt;&lt;/span&gt;org.seleniumhq.selenium&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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;span class=&quot;nt&quot;&gt;&lt;artifactid&gt;&lt;/artifactid&gt;&lt;/span&gt;selenium-remote-driver&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&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 class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;nt&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;

&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;Be sure you specify the
most current version. At the time of writing, the version listed above was the
most current, however there were frequent releases immediately after the
release of Selenium 2.0. Check the &lt;a href=&quot;http://seleniumhq.org/download/maven.html&quot;&gt;Maven download page&lt;/a&gt; for
the current release and edit the above dependency accordingly.&lt;/span&gt;&lt;br /&gt;


&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/2504866308958198709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2012/09/how-to-setting-up-selenium-webdriver.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/2504866308958198709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/2504866308958198709'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2012/09/how-to-setting-up-selenium-webdriver.html' title='How to Setting Up a Selenium-WebDriver Project'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-7013937867262535195</id><published>2012-09-23T00:14:00.002-07:00</published><updated>2012-09-23T00:14:51.309-07:00</updated><title type='text'>How Does WebDriver ‘Drive’ the Browser Compared to Selenium-RC?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.laxmiroy.blogspot.in/&quot; target=&quot;_blank&quot;&gt; Download Selenium Documentation,   Selenium WebDriver, Selenium-RC,   WebDriver and the   Selenium-Server, Selenium-IDE,   Selenium Notes, videos, Programs   by www.laxmiroy.blogspot.in&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
 &lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; LatentStyleCount=&quot;156&quot;&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin:0in;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;
 mso-ansi-language:#0400;
 mso-fareast-language:#0400;
 mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;How Does WebDriver ‘Drive’
the Browser Compared to Selenium-RC?&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;Selenium-WebDriver makes
direct calls to the browser using each browser’s native support for automation.
How these direct calls are made, and the features they support depends on the
browser you are using. Information on each ‘browser driver’ is provided later
in this chapter.&lt;/span&gt;&lt;br /&gt;


&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;For those familiar with
Selenium-RC, this is quite different from what you are used to. Selenium-RC
worked the same way for each supported browser. It ‘injected’ javascript
functions into the browser when the browser was loaded and then used its
javascript to drive the AUT within the browser. WebDriver does not use this
technique. Again, it drives the browser directly using the browser’s built in
support for automation.&lt;/span&gt;&lt;br /&gt;


&lt;h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;WebDriver and the
Selenium-Server&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;You may, or may not, need
the Selenium Server, depending on how you intend to use Selenium-WebDriver. If
you will be only using the WebDriver API you do not need the Selenium-Server.
If your browser and tests will all run on the same machine, and your tests only
use the WebDriver API, then you do not need to run the Selenium-Server;
WebDriver will run the browser directly.&lt;/span&gt;&lt;br /&gt;


&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;There are some reasons
though to use the Selenium-Server with Selenium-WebDriver.&lt;/span&gt;&lt;br /&gt;


&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;You are using Selenium-Grid to distribute your tests
     over multiple machines or virtual machines (VMs).&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;You want to connect to a remote machine that has a
     particular browser version that is not on your current machine.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;You are not using the Java bindings (i.e. Python, C#,
     or Ruby) and would like to use &lt;a href=&quot;http://seleniumhq.org/docs/03_webdriver.html#htmlunit-driver&quot;&gt;HtmlUnit
     Driver&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span id=&quot;setting-up-webdriver-project&quot;&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/7013937867262535195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2012/09/how-does-webdriver-drive-browser.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/7013937867262535195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/7013937867262535195'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2012/09/how-does-webdriver-drive-browser.html' title='How Does WebDriver ‘Drive’ the Browser Compared to Selenium-RC?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-6694729933485558280</id><published>2012-09-23T00:10:00.000-07:00</published><updated>2012-09-23T00:10:47.333-07:00</updated><title type='text'>What is Selenium WebDriver?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.laxmiroy.blogspot.in/&quot; target=&quot;_blank&quot;&gt; Download Selenium Documentation,   Selenium WebDriver, Selenium-RC,   WebDriver and the   Selenium-Server, Selenium-IDE,   Selenium Notes, videos, Programs   by www.laxmiroy.blogspot.in&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
 &lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; LatentStyleCount=&quot;156&quot;&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin:0in;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;
 mso-ansi-language:#0400;
 mso-fareast-language:#0400;
 mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;h1&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;Selenium WebDriver&lt;/span&gt;&lt;/h1&gt;
&lt;div id=&quot;chapter03-reference&quot;&gt;
&lt;em&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;We’re currently working on documenting these sections. We believe the
information here is accurate, however be aware we are also still working on
this chapter. Additional information will be provided as we go which should
make this chapter more solid.&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;Introducing WebDriver&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 11.0pt;&quot;&gt;The primary new feature
in Selenium R C is the integration of the WebDriver API. WebDriver is designed
to providing an simpler, more concise programming interface along with
addressing some limitations in the Selenium-RC API. Selenium-WebDriver was
developed to better support dynamic web pages where elements of a page may
change without the page itself being reloaded. WebDriver’s goal is to supply a
well-designed object-oriented API that provides improved support for modern
advanced web-app testing problems.&lt;/span&gt;&lt;br /&gt;


&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/6694729933485558280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2012/09/what-is-selenium-webdriver.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/6694729933485558280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/6694729933485558280'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2012/09/what-is-selenium-webdriver.html' title='What is Selenium WebDriver?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-5379331518688501666</id><published>2012-07-23T20:46:00.003-07:00</published><updated>2012-07-23T20:46:53.149-07:00</updated><title type='text'>Generating selenium reports using TestNG-xslt through Ant</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.laxmiroy.blogspot.in/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Generating selenium reports using TestNG-xslt through Ant &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
 &lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; LatentStyleCount=&quot;156&quot;&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin:0in;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:10.0pt;
 font-family:&quot;Times New Roman&quot;;
 mso-ansi-language:#0400;
 mso-fareast-language:#0400;
 mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;h3&gt;
Generating selenium reports using TestNG-xslt through Ant &lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;TestNG-xslt generates user
friendly reports using the TestNG results output (testng-results.xml). Its uses
the pure XSL for report generation and Saxon as an XSL2.0 implementation.&lt;br /&gt;
&lt;br /&gt;
Most of the material is taken from the original site.&lt;br /&gt;
&amp;nbsp;http://code.google.com/p/testng-xslt/&lt;br /&gt;
&lt;br /&gt;
I will tell in this blog how to implement this report for your project. This
implementation will tell you how to generate the testng-xslt report using ant.
If your current project does not use ant build then you can use ant only for
the report generation purpose.&lt;br /&gt;
&lt;br /&gt;
If you dont know &lt;b&gt;ant &lt;/b&gt;please check the Apache ant website
http://ant.apache.org/.&lt;br /&gt;
&lt;br /&gt;
For generating testng-xslt report for your project do the following:&lt;br /&gt;
1. Download the testng-xslt&lt;br /&gt;
2. Unzip and copy the testng-results.xsl from the testng-xslt folder(testng-xslt-1.1\src\main\resources)
to your own project folder.&lt;br /&gt;
3. Now copy the saxon library from (testng-xslt-1.1\lib\saxon-8.7.jar)to your
project lib folder.&lt;br /&gt;
4. Modify your build.xml of ant and add the following target to it.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;lt;project&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;name=&quot;test&quot;&lt;/span&gt;&lt;/code&gt; &lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;basedir=&quot;.&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;name=&quot;LIB&quot;&lt;/span&gt;&lt;/code&gt; &lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;value=&quot;${basedir}/libs&quot;&lt;/span&gt;&lt;/code&gt; &lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;name=&quot;BIN&quot;&lt;/span&gt;&lt;/code&gt; &lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;value=&quot;${basedir}/bin&quot;&lt;/span&gt;&lt;/code&gt; &lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;path&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;id=&quot;master-classpath&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;pathelement&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;location=&quot;${BIN}&quot;&lt;/span&gt;&lt;/code&gt; &lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;fileset&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;dir=&quot;${LIB}&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&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;lt;include&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;name=&quot;**/*.jar&quot;&lt;/span&gt;&lt;/code&gt; &lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/fileset&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/path&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;target&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;name=&quot;testng-xslt-report&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;delete&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;dir=&quot;${basedir}/testng-xslt&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/delete&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;mkdir&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;dir=&quot;${basedir}/testng-xslt&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/mkdir&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xslt&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;in=&quot;${basedir}/test-output/testng-results.xml&quot;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;style=&quot;${basedir}/testng-results.xsl&quot;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;out=&quot;${basedir}/testng-xslt/index.html&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&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;lt;param&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;expression=&quot;${basedir}/testng-xslt/&quot;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;name=&quot;testNgXslt.outputDir&quot;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&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;lt;param&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;expression=&quot;true&quot;&lt;/span&gt;&lt;/code&gt; &lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;name=&quot;testNgXslt.sortTestCaseLinks&quot;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&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;lt;param&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;expression=&quot;FAIL,SKIP,PASS,CONF,BY_CLASS&quot;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;name=&quot;testNgXslt.testDetailsFilter&quot;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&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;lt;param&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;expression=&quot;true&quot;&lt;/span&gt;&lt;/code&gt; &lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;name=&quot;testNgXslt.showRuntimeTotals&quot;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&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;lt;classpath&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;refid=&quot;master-classpath&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&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;lt;/classpath&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xslt&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/target&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&amp;lt;/project&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 12.0pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;The
XSL transformation can be configured using the parameters described below.&lt;/span&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;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-family: Verdana;&quot;&gt;testNgXslt.outputDir&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;
     - Sets the target output directory for the HTML content. This is mandatory
     and must be an absolute path. If you are using the Maven plugin this is
     set automatically so you don&#39;t have to provide it.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;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-family: Verdana;&quot;&gt;testNgXslt.cssFile&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt; -
     Specifies and alternative style sheet file overriding the default
     settings. This parameter is not required.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;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-family: Verdana;&quot;&gt;testNgXslt.showRuntimeTotals&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt; - Boolean flag indicating if the report should display the
     aggregated information about the methods durations. The information is
     displayed for each test case and aggregated for the whole suite.
     Non-mandatory parameter, defaults to false.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;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-family: Verdana;&quot;&gt;testNgXslt.reportTitle&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;
     - Use this setting to specify a title for your HTML reports. This is not a
     mandatory parameter and defaults to &quot;TestNG Results&quot;.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;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-family: Verdana;&quot;&gt;testNgXslt.sortTestCaseLinks &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;- Indicates whether the test case links (buttons) in the left
     frame should be sorted alphabetically. By default they are rendered in the
     order they are generated by TestNG so you should set this to true to
     change this behavior.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;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-family: Verdana;&quot;&gt;testNgXslt.chartScaleFactor&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt; - A scale factor for the SVG pie chart in case you want it
     larger or smaller. Defaults to 1.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;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-family: Verdana;&quot;&gt;testNgXslt.testDetailsFilter &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;- Specified the default settings for the checkbox filters at the
     top of the test details page. Can be any combination (comma-separated) of:
     FAIL,PASS,SKIP,CONF,BY_CLASS &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;You
need to provide the testng-xslt stylesheet the TestNG results
xml(testng-results.xml) , the path to the style sheet testng-results.xsl and
the output index.html path.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;apple-style-span&quot;&gt;Also dont forget to add the saxon library to your
target classpath else you will get an error. In my case it is the
master-classpath.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;apple-style-span&quot;&gt;Noe run the ant target for report generation (in
my case &quot;testng-xslt-report&quot;) and check the ouput folder configured
by you for testng-xslt report.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/5379331518688501666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2012/07/generating-selenium-reports-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/5379331518688501666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/5379331518688501666'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2012/07/generating-selenium-reports-using.html' title='Generating selenium reports using TestNG-xslt through Ant'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-5627956722365008708</id><published>2011-11-26T07:23:00.000-08:00</published><updated>2011-11-26T07:23:48.830-08:00</updated><title type='text'>Generating Test Result Report using Ant from Java eclipse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;Generating Test Result Report using Ant from Java eclipse&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Always Reporting is the most important thing in testing, here described is the steps to configure and generate the test result from java eclipse using Ant.&lt;br /&gt;
this post is for users who have already familiar with java and eclipse. There is another post you can find in the name of &quot;Selenium RC using Java with eclipse&quot; for the beginners.&lt;br /&gt;
Generating the ANT build:&lt;br /&gt;
Right click on the project and select Export --&amp;gt; Ant Buildfiles.--&amp;gt;Next--&amp;gt;Select the project--&amp;gt;Finish.&lt;br /&gt;
Configuring jar:&lt;br /&gt;
Select Windows menu--&amp;gt;Preference --&amp;gt;Global Entries --&amp;gt;Add External JARs--&amp;gt;Select the folder where the eclipse is installed. eclipse --&amp;gt;Plugin --&amp;gt;Currently its located in &quot;org.junit_4.8.1.v4_8_1_v20100427-1100&quot;--&amp;gt;&quot;junit.jar&quot;--&amp;gt;OK.&lt;br /&gt;
Run the Ant Build:&lt;br /&gt;
Create a folder &quot;junit&quot; in side the project folder. Right click on the AntBuildfile--&amp;gt;RunAs --&amp;gt;AntBuild&lt;br /&gt;
Return to java project and run as junit test. End of test run you will find the test result in a html file named as index.html it will be stored inside the junit folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/5627956722365008708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/generating-test-result-report-using-ant.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/5627956722365008708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/5627956722365008708'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/generating-test-result-report-using-ant.html' title='Generating Test Result Report using Ant from Java eclipse'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-7181531010693576512</id><published>2011-11-26T07:20:00.000-08:00</published><updated>2011-11-26T07:20:52.060-08:00</updated><title type='text'>Adding Selenium Flex API in Selenium IDE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;Adding Selenium Flex API in Selenium IDE&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FlexUISelenium is an extension to the Selenium RC client driver, It enables the Selenium RC client drivers to interact the Flex UI components and methods of the Flex application.&lt;br /&gt;
Steps:&lt;br /&gt;
1.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Download SeleniumFlex-API from http://sourceforge.net/projects/seleniumflexapi/files/.&lt;br /&gt;
2.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Open Selenium IDE &amp;nbsp;Select Options --&amp;gt; Options.&lt;br /&gt;
3.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Extract the zip file and add user-extensions.js as selenium Core extension in Selenium IDE.&lt;br /&gt;
4.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Restart Selenium IDE, We can find the flex related commands in drop down.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/7181531010693576512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/adding-selenium-flex-api-in-selenium.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/7181531010693576512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/7181531010693576512'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/adding-selenium-flex-api-in-selenium.html' title='Adding Selenium Flex API in Selenium IDE'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-2967843563354625510</id><published>2011-11-17T21:19:00.000-08:00</published><updated>2011-11-17T21:19:24.864-08:00</updated><title type='text'>How to select value in drop down using Webdriver</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How to select value in drop down using Webdriver, By.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;This post will take you through the way you can select the value in a drop down. Webdriver does not have straight forward command &quot;SELECT&quot; which Selenium does.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;In below example i will open home page of eBay &lt;st1:country-region w:st=&quot;on&quot;&gt;&lt;st1:place w:st=&quot;on&quot;&gt;India&lt;/st1:place&gt;&lt;/st1:country-region&gt; and search ipod in Consumer Electronic category. This page has a category drop down in which i will select &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Consumer Electronics. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;package com.web;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import java.io.File;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import java.util.List;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.By;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.WebDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.WebElement;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.chrome.ChromeDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.firefox.FirefoxDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.firefox.FirefoxProfile;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.htmlunit.HtmlUnitDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.ie.InternetExplorerDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.testng.annotations.BeforeTest;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.testng.annotations.Test;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;public class DropDownSelection {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;private static WebDriver driver=null;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;@BeforeTest&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;@org.testng.annotations.Parameters({&quot;BROWSER&quot;})&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;public void setup(String BROWSER){&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; if(BROWSER.equals(&quot;FF&quot;)){&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; File profileDir = new File(&quot;C:\\nir&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirefoxProfile profile = new FirefoxProfile(profileDir);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; profile.setPreference(&quot;general.useragent.override&quot;, &quot;same user agent string as above&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; driver= new FirefoxDriver(profile);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Broser Selected &quot; + BROWSER);&amp;nbsp; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; }else if(BROWSER.equals(&quot;IE&quot;)){&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Broser Selected &quot; + BROWSER);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver = new InternetExplorerDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; }else if(BROWSER.equals(&quot;HU&quot;)){&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Broser Selected &quot; + BROWSER);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver =new HtmlUnitDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; } else&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Broser Selected &quot; + BROWSER);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver = new ChromeDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; }&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;@Test&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;public void testDropDownSelection() throws InterruptedException{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; driver.get(&quot;http://www.ebay.in&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; WebElement search = driver.findElement(By.name(&quot;_nkw&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; search.sendKeys(&quot;ipod&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; List dd = driver.findElement(By.name(&quot;_sacat&quot;)).findElements(By.tagName(&quot;option&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; for (WebElement option : dd) {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(option.getText());&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (&quot;Consumer Electronics&quot;.equalsIgnoreCase(option.getText())){&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option.click();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver.findElement(By.xpath(&quot;//input[@value=&#39;Search&#39;]&quot;)).submit();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; Thread.sleep(5000);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver.getPageSource().contains(&quot;results found&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; driver.quit();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;TestNG.xml &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Using TestNG suite we will run the test case.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;suite name=&quot;webDriver&quot; parallel=&quot;tests&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;listeners&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;listener class-name=&quot;org.uncommons.reportng.HTMLReporter&quot; /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;listener class-name=&quot;org.uncommons.reportng.JUnitXMLReporter&quot; /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;/listeners&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;test name=&quot;WebDriverDemo Witn FF&quot; preserve-order=&quot;true&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;parameter name=&quot;BROWSER&quot; value=&quot;FF&quot; /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;class name=&quot;com.web.DropDownSelection&quot; /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/test&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/b&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/suite&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;If above code does not work with you configuration just try another way given below.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;List&amp;nbsp; options = driver.findElements(By.tagName(&quot;option&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; for (WebElement option : options) {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; if (&quot;Consumer Electronics&quot;.equalsIgnoreCase(option.getText())){&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; option.click();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/2967843563354625510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-select-value-in-drop-down-using_2932.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/2967843563354625510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/2967843563354625510'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-select-value-in-drop-down-using_2932.html' title='How to select value in drop down using Webdriver'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-4167096311063507907</id><published>2011-11-17T21:14:00.000-08:00</published><updated>2011-11-17T21:14:16.879-08:00</updated><title type='text'>Running test case in multiple browsers parallely in WebDriver</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;Running test case in multiple browsers parallely in WebDriver, By www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;we can run test script in different browsers parallely using web driver. Write one test script and configure in testng xml to run that test case in IE, firefox and chrome parallely.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;package com.web;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.By;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.WebDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.WebElement;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.chrome.ChromeDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.firefox.FirefoxDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.htmlunit.HtmlUnitDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.ie.InternetExplorerDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.testng.Assert;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.testng.annotations.BeforeTest;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.testng.annotations.Parameters;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.testng.annotations.Test;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;public class ParallelRunning {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;private&amp;nbsp; WebDriver driver=null;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;@BeforeTest&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;@Parameters ({&quot;BROWSER&quot;})&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;public void setup(String BROWSER){&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; System.out.println(&quot;Browser: &quot; + BROWSER);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; if (BROWSER.equals(&quot;FF&quot;)) {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;FF is selected&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver = new FirefoxDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; } else if (BROWSER.equals(&quot;IE&quot;)) {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;IE is selected&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver = new InternetExplorerDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; } else if (BROWSER.equals(&quot;HU&quot;)) {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;HU is selected&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver = new HtmlUnitDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; } else if (BROWSER.equals(&quot;CH&quot;)){&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Google chrome is selected&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver = new ChromeDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; }&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;@Test&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;public&amp;nbsp; void testParallel()throws Exception{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; driver.get(&quot;http://www.google.com&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; Thread.sleep(5000);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; WebElement search = driver.findElement(By.name(&quot;q&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; search.sendKeys(&quot;automation blog by niraj&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; search.submit();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; Thread.sleep(5000);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; Assert.assertTrue(driver.getPageSource().contains(&quot;automationtricks.blogspot.com&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; driver.findElement(By.xpath(&quot;//a[contains(@href,&#39;automationtricks.blogspot.com&#39;)]&quot;)).click();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; Thread.sleep(15000);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; Assert.assertTrue(driver.getPageSource().contains(&quot;working as Associate Manager @CSC&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; driver.quit();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;In the above sample program BROWSER is a variable which value would be passed from TestNG.xml and TestNG.xml will run the test multiple time each time BROWSER value would be set with different browser name and test will check the BROWSER value and decide which browser test will run.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;TestNG.xml&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;suite name=&quot;webDriver&quot; parallel=&quot;tests&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;test name=&quot;WebDriverDemo Witn FF&quot; preserve-order=&quot;true&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;parameter name=&quot;BROWSER&quot; value=&quot;FF&quot; /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;class name=&quot;com.web.ParallelRunning&quot; /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;/test&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;test name=&quot;WebDriverDemo with IE&quot; preserve-order=&quot;ture&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;parameter name=&quot;BROWSER&quot; value=&quot;IE&quot;&amp;gt;&amp;lt;/parameter&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;class name=&quot;com.web.ParallelRunning&quot;&amp;gt;&amp;lt;/class&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;/test&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;test name=&quot;WebDriverDemo with HTML unit&quot; preserve-order=&quot;true&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;parameter name=&quot;BROWSER&quot; value=&quot;HU&quot;&amp;gt;&amp;lt;/parameter&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;class name=&quot;com.web.ParallelRunning&quot;&amp;gt;&amp;lt;/class&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;/test&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;test name=&quot;WebDriverDemo with HTML unit&quot; preserve-order=&quot;true&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;parameter name=&quot;BROWSER&quot; value=&quot;CH&quot;&amp;gt;&amp;lt;/parameter&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;class name=&quot;com.web.ParallelRunning&quot;&amp;gt;&amp;lt;/class&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;/test&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/suite&amp;gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/4167096311063507907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/running-test-case-in-multiple-browsers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/4167096311063507907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/4167096311063507907'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/running-test-case-in-multiple-browsers.html' title='Running test case in multiple browsers parallely in WebDriver'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-9030887258928842327</id><published>2011-11-14T22:55:00.000-08:00</published><updated>2011-11-14T22:55:04.537-08:00</updated><title type='text'>Runing test script in multiple browsers using WebDriver</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;Runing test script in multiple browsers using WebDriver, Selenium Notes, Examples, videos, by.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;we can run test script in different browsers using web driver. Write one test script and configure in testng xml to run that test case in IE, firefox chrome.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;package com.web;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.By;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.WebDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.WebElement;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.chrome.ChromeDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.firefox.FirefoxDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.htmlunit.HtmlUnitDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.ie.InternetExplorerDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.testng.Assert;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.testng.annotations.Parameters;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.testng.annotations.Test;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;public class WebDriverDemo {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; private static WebDriver driver = null;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; @Test&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;@Parameters( {&quot;BROWSER&quot;}) &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;public&amp;nbsp; void testread(String BROWSER)throws Exception{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; System.out.println(&quot;Browser: &quot; + BROWSER);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; if (BROWSER.equals(&quot;FF&quot;)) {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;FF is selected&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver = new FirefoxDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; } else if (BROWSER.equals(&quot;IE&quot;)) {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;IE is selected&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver = new InternetExplorerDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; } else if (BROWSER.equals(&quot;HU&quot;)) {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;HU is selected&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver = new HtmlUnitDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; } else if (BROWSER.equals(&quot;CH&quot;)){&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Google chrome is selected&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; driver = new ChromeDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; }&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; driver.navigate().to(&quot;http://www.yahoo.com&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; Thread.sleep(10000);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; WebElement search= driver.findElement(By.name(&quot;p&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; search.sendKeys(&quot;automation blog by niraj&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; search.submit();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; Thread.sleep(5000);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; Assert.assertTrue(driver.getPageSource().contains(&quot;automationtricks.blogspot.com&quot;),&quot;Failed in &quot;+ BROWSER);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; driver.close();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;In the above sample program BROWSER is a variable which value would be passed from TestNG.xml and TestNG.xml will run the test multiple time each time BROWSER value would be set with different browser name and test will check the BROWSER value and decide which browser test will run.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;TestNG.xml&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;suite name=&quot;webDriver&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;test name=&quot;WebDriverDemo Witn FF&quot; preserve-order=&quot;true&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;parameter name=&quot;BROWSER&quot; value=&quot;FF&quot; /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;class name=&quot;com.web.WebDriverDemo&quot; /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;/test&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;test name=&quot;WebDriverDemo with IE&quot; preserve-order=&quot;ture&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;parameter name=&quot;BROWSER&quot; value=&quot;IE&quot;&amp;gt;&amp;lt;/parameter&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;class name=&quot;com.web.WebDriverDemo&quot;&amp;gt;&amp;lt;/class&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;/test&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;test name=&quot;WebDriverDemo with HTML unit&quot; preserve-order=&quot;true&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;parameter name=&quot;BROWSER&quot; value=&quot;HU&quot;&amp;gt;&amp;lt;/parameter&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;class name=&quot;com.web.WebDriverDemo&quot;&amp;gt;&amp;lt;/class&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;/test&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;test name=&quot;WebDriverDemo with chrome&quot; preserve-order=&quot;true&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;parameter name=&quot;BROWSER&quot; value=&quot;CH&quot;&amp;gt;&amp;lt;/parameter&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;class name=&quot;com.web.WebDriverDemo&quot;&amp;gt;&amp;lt;/class&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/classes&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;/test&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/suite&amp;gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/9030887258928842327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/runing-test-script-in-multiple-browsers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/9030887258928842327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/9030887258928842327'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/runing-test-script-in-multiple-browsers.html' title='Runing test script in multiple browsers using WebDriver'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-6204980630823188250</id><published>2011-11-14T22:53:00.002-08:00</published><updated>2011-11-14T22:53:59.977-08:00</updated><title type='text'>Easy Way To Automate Using WebDriver</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;Easy Way To Automate Using WebDriver, Selenium Notes, Examples, videos, by.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;WebDriver is a clean, fast framework for Automation development of web-apps. WebDriver takes many advantages over selenium because selenium is written in java-script which causes a significant weakness: browsers impose a pretty strictly model , try to upload a file ,form control etc.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;webDriver takes a different approach to solve the same problem as selenium. Rather than being running a java-script application within a browser, it uses whichever the mechanism is most appropriate to control the browser. Like for Firefox ,this means that webDriver is implemented as an extension.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;The real beauty which I like most is real time environment, which means we are more closely modeling how the user interacts with the browser, and that we can type into &quot;file&quot; input elements. WebDriver can make use of facilities offered by the Operating System.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;With the benefit of hindsight, we have developed a cleaner, Object-based API for WebDriver, rather than follow Selenium&#39;s dictionary-based approach.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Please download the respective jar related to your language from google code selenium project Download &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Now follow below steps:-&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;1:- Extract the download file into a folder name and include the jars file ion your ClassPath&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;2:- Sample coding in java&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import junit.framework.TestCase;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.junit.Test;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.By;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.WebDriver;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.WebElement;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;import org.openqa.selenium.firefox.FirefoxDriver; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;public class WebDriverTest extends TestCase{ &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;@Test&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;public void test_hellotest()throws Exception{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;WebDriver driver = new FirefoxDriver();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;// And now use this to visit Google&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;driver.get(http://www.google.com/webhp?complete=1&amp;amp;hl=en);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;// Find the text input element by its name&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;WebElement element = driver.findElement(By.name(&quot;q&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;// Enter something to search for&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;element.sendKeys(&quot;Niraj Kumar&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;// Now submit the form. WebDriver will find the form for us from the element&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;element.submit();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;// Check the title of the page&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;System.out.println(&quot;Page title is: &quot; + driver.getTitle()); &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;driver.close(); &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;}&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/6204980630823188250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/easy-way-to-automate-using-webdriver.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/6204980630823188250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/6204980630823188250'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/easy-way-to-automate-using-webdriver.html' title='Easy Way To Automate Using WebDriver'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-565648828442368713</id><published>2011-11-14T22:53:00.000-08:00</published><updated>2011-11-14T22:53:02.348-08:00</updated><title type='text'>How to automate onblur through selenium RC</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How to automate onblur through selenium RC , Selenium Notes, Examples, videos, by.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;How to automate lost focus through selenium.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;I faced the problem while automating the form submit. All of the form fields are having some action on their lost focus. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;The onblur event occurs when an object loses focus. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;For example : I have two fields First Name and Last Name. When i enter first name and press tab then it loses its focus and onblur function gets called.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;and its calls upperCase and it changes the first name in Upper case.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;the same case with Last Name. When i enter last name and press tab it calls blur function lowerCase and changes the letters in lower case.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;But the problem in automation is i cant automate lost focus. when we type in first name and last name it simply types in first name and last name text box.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;It does not call onblur function upper case and lower case and does not change the letter respectively.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;so, fireEvent is a special command in selenium which helps in automating onblur function.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;this is html of the element and blur javascript functions &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;head&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;function upperCase()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;var x=document.getElementById(&quot;fname&quot;).value;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;document.getElementById(&quot;fname&quot;).value=x.toUpperCase();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;function lowerCase()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;var x=document.getElementById(&quot;lname&quot;).value;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;document.getElementById(&quot;lname&quot;).value=x.toLowerCase();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/script&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Enter your First Name: &amp;lt;input type=&quot;text&quot; id=&quot;fname&quot; onblur=&quot;upperCase()&quot; /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Enter your Last Nast: &amp;lt;input type=&quot;text&quot; id=&quot;lname&quot; onblur=&quot;lowerCase()&quot; /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/565648828442368713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-automate-onblur-through-selenium.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/565648828442368713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/565648828442368713'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-automate-onblur-through-selenium.html' title='How to automate onblur through selenium RC'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-659886208958582180</id><published>2011-11-14T22:52:00.000-08:00</published><updated>2011-11-14T22:52:27.368-08:00</updated><title type='text'>when we write simple selenium RC code</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;when we write simple selenium RC code , Selenium Notes, Examples, videos, by.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;selenium.type(&quot;fname&quot;, &quot;niraj&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;selenium.type(&quot;lname&quot;, &quot;KUMAR&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;it doest call blur functions to change cases of the first name and last name.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;But by using fireEvent fuction of selenium we can call blur function. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;selenium.type(&quot;fname&quot;, &quot;niraj&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;selenium.fireEvent(&quot;fname&quot;, &quot;blur&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;selenium.type(&quot;lname&quot;, &quot;KUMAR&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;selenium.fireEvent(&quot;lname&quot;, &quot;blur&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;How this works is :&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;First this will type &quot;niraj&quot; in First Name and then selenium.fireEvent(&quot;fname&quot;, &quot;blur&quot;); this will call the onblur fuction &quot;upperCase()&quot; which changes the First Name in upper case &quot;NIRAJ&quot;.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;then it types in Last Name and then selenium.fireEvent(&quot;lname&quot;, &quot;blur&quot;); which means it will press tab and lost the function and on the lost focus it calls &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;blur function lowerCase which changes the Last Name in lower case.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/659886208958582180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/when-we-write-simple-selenium-rc-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/659886208958582180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/659886208958582180'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/when-we-write-simple-selenium-rc-code.html' title='when we write simple selenium RC code'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-826771320466482249</id><published>2011-11-14T22:50:00.002-08:00</published><updated>2011-11-14T22:50:54.563-08:00</updated><title type='text'>How to verify the text ignoring cases sensitivity in selenium ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How to verify the text ignoring cases sensitivity in selenium ? Selenium Notes, Examples, videos, by.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;Some times we need to verify the text on the webpage no matter is upper cases or lower cases or proper.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;We just need to verify the text on the web page ignoring their cases sensitivity. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;REGEXPI is used to avoid cases sensitive to verify the text on the page.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Lets say i want to verify the text &quot;Automationtricks is good blog for selenium&quot; No matter its in upper cases or lower case or proper case.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Then use REGEXPI in selenium command selenium.isTextPresent or verifyTextPresent.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;verifyTextPresent&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;regexpi:AUTOMATIONTRICKS IS GOOD BLOG FOR SELENIUM&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;verifyTextPresent&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;regexpi:AUTOMATIONTRICKS is good blog for selenium&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;verifyTextPresent&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;regexpi:AUTOMAtionTRICKS Is GoOd Blog for SELENIUM&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;verifyTextPresent&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;regexpi:automationtricks is good blog for selenium&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;In Selenium RC &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;verifyTrue(selenium.isTextPresent(&quot;regexpi:AUTOMATIONTRICKS IS GOOD BLOG FOR SELENIUM&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;verifyTrue(selenium.isTextPresent(&quot;regexpi:AUTOMATIONTRICKS is good blog for selenium&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;verifyTrue(selenium.isTextPresent(&quot;regexpi:AUTOMAtionTRICKS Is GoOd Blog for SELENIUM&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;verifyTrue(selenium.isTextPresent(&quot;regexpi:automationtricks is good blog for selenium&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/826771320466482249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-verify-text-ignoring-cases.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/826771320466482249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/826771320466482249'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-verify-text-ignoring-cases.html' title='How to verify the text ignoring cases sensitivity in selenium ?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-5359865175909162212</id><published>2011-11-14T22:50:00.000-08:00</published><updated>2011-11-14T22:50:01.960-08:00</updated><title type='text'>How to verify value in drop down list.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How to verify value in drop down list, Selenium Notes, Examples, videos, by.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;We some how manage to find the element on the page but its difficult to found element with some specific attributes.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Take an example How to find some value is in drop down list or now? To find element drop down is easy but to find a drop down having some specific &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;value in their list is difficult.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Go to www.ebay.in you will see there is drop down along with search text box.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/5359865175909162212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-verify-value-in-drop-down-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/5359865175909162212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/5359865175909162212'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-verify-value-in-drop-down-list.html' title='How to verify value in drop down list.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-8890129325397253400</id><published>2011-11-14T22:49:00.000-08:00</published><updated>2011-11-14T22:49:23.046-08:00</updated><title type='text'>How to verify a specific value &quot;Collectibles&quot; is in drop down list.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How to verify a specific value &quot;Collectibles&quot; is in drop down list, Selenium Notes, Examples, videos, by.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;Using Xpath:&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;verifyElementPresent&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;//select[@id=&#39;_sacat&#39;]/option[contains(text(),&#39;Collectibles&#39;)]&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;verifyTrue(selenium.isElementPresent(&quot;//select[@id=&#39;_sacat&#39;]/option[contains(text(),&#39;Collectibles&#39;)]&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Using CSS:&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;verifyElementPresent&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;css=select#_sacat&amp;gt;option:contains(&quot;Fun&quot;)&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;verifyTrue(selenium.isElementPresent(&quot;css=select#_sacat&amp;gt;option:contains(\&quot;Fun\&quot;)&quot;));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;verifyElementPresent&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;css=select&amp;gt;option:contains(&quot;Fun&quot;)&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/8890129325397253400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-verify-specific-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/8890129325397253400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/8890129325397253400'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-verify-specific-value.html' title='How to verify a specific value &quot;Collectibles&quot; is in drop down list.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-3487728157760910004</id><published>2011-11-14T22:48:00.000-08:00</published><updated>2011-11-14T22:48:25.154-08:00</updated><title type='text'>How to select the value in drop down using regular expression</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How to select the value in drop down using regular expression, Selenium Notes, Examples, videos, by.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;There are situation when we need to select the drop down value with some partial text .&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;With the help of regular expression we can select the drop down value &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;select&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;_sacat&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;label=regexp:Fun*&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.select(&quot;_sacat&quot;, &quot;label=regexp:Fun*&quot;);&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/3487728157760910004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-select-value-in-drop-down-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/3487728157760910004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/3487728157760910004'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-select-value-in-drop-down-using.html' title='How to select the value in drop down using regular expression'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-278018279241102533</id><published>2011-11-10T22:29:00.000-08:00</published><updated>2011-11-10T22:29:24.433-08:00</updated><title type='text'>How to use CSS in Selenium to locate an element</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How to use CSS in Selenium to locate an element, Selenium Notes, Examples, Videos, By.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;XPath locator is one of the most precise locator. But this has a disadvantage of its locator types thats is its slowness. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;This disadvantage of xpath you can see when running the tests under IE while Firefox works with xpath pretty faster than IE. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;The main thing is that tests which intensively use XPath work extremely slow under IE and this feature is the cause of huge variety of problems related to execution speed as well as quality of the tests itself especially during operations with dynamic content.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;For this reason CSS locators can be good alternative of XPath. What can we do with CSS locators?&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;CSS locator will give you clear picture of your element hierarchy &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;lets say your xpath of an element is like,&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;xpath=//div//span/a &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;the same locatore can be identified by CSS is .&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;css=div * span &amp;gt; a &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;from the above example there are two symbol are being used to locate an element.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;1) &quot;/&quot; in xpath is just a next level of DOM element hierarchy and same used in CSS is &quot;&amp;gt;&quot;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;2) &quot;//&quot; in xpath is any DOM object hierarchy level under current object and same used in CSS is &quot;*&quot;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;The way we use attributes in xpath we can use attributes in css as well. lets say your element&#39;s xpath is like this&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;//input [@name=&#39;continue&#39; and @type=&#39;button&#39;]&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;can be written in CSS&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;css=input[name=&#39;continue&#39;][type=&#39;button&#39;]&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;or &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;css=input[name=continue][type=button]&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;in xpath we can check the partial attribute value matching but in CSS we can&#39;t. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;lets say your element is like this &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;div title=&quot;here is m multiword title&quot; /&amp;gt; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;so the xpath to locate this element is .&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;xpath=//div[contains(@title,&quot;title&quot;)]&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;and same can be used in CSS like&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;css=div[title~=title]&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;But if your element is like this &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;div title=&quot;my_title&quot; /&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;then CSS locator css=div[title~=title] wont work here .&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;CSS provides us the easy way to specify the element.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;lets say your element is like this,&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;input id=&quot;username&quot;&amp;gt;&amp;lt;/input&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;we can write in xpath like this&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;xpath=//input[@id=&quot;username&quot;]&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;and same can be specified in CSS&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;css=input#username&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;so whenever we want to identify any element with their id then we use # &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;lets say your element is like this,&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;input class=&quot;password&quot;&amp;gt;&amp;lt;/input&amp;gt; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;then xpath is &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;xpath=//input[@class=&quot;password&quot;]&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;and corresponding CSS is &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;css=input.password&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;so whenever we want to identify any element with their class then we use .&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;below are the element sturcture used in above examples.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;form&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;input id=&quot;username&quot;&amp;gt;&amp;lt;/input&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;input class=&quot;password&quot;&amp;gt;&amp;lt;/input&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;input name=&quot;continue&quot; type=&quot;button&quot;&amp;gt;&amp;lt;/input&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;input name=&quot;cancel&quot; type=&quot;button&quot;&amp;gt;&amp;lt;/input&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;input value=&quot;a86b504a-faff-4a18-92d8-68720331c798&quot; name=&quot;vid&quot; type=&quot;hidden&quot;&amp;gt;&amp;lt;input value=&quot;LF_c10cf6d6&quot; name=&quot;lf_cid&quot; type=&quot;hidden&quot;&amp;gt;&amp;lt;/form&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;An interesting feature of CSS in Selenium :Sub-String matches.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;^=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match a prefix&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;$=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match a suffix&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;*=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match a substring&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;1 css=a[id^=&#39;id_prefix_&#39;]&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;A link with an “id” that starts with the text “id_prefix_”&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;2 css=a[id$=&#39;_id_sufix&#39;]&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;A link with an “id” that ends with the text “_id_sufix”&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;3 css=a[id*=&#39;id_pattern&#39;]&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;A link with an “id” that contains the text “id_pattern”&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Without specifying the type of element we can identify the element&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;to identify the google search button we can use Css like this&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;css=center &amp;gt; #sbds &amp;gt; #sblsbb &amp;gt; input&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;these CSS features are awesome more details can be found on &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;How to use CSS in Selenium extensively&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;and if you want to know in depth then visit this page.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;http://www.w3.org/TR/css3-selectors/&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/278018279241102533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-use-css-in-selenium-to-locate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/278018279241102533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/278018279241102533'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-use-css-in-selenium-to-locate.html' title='How to use CSS in Selenium to locate an element'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-1433120631044307972</id><published>2011-11-10T22:27:00.001-08:00</published><updated>2011-11-10T22:27:52.864-08:00</updated><title type='text'>How to locate an element which have same name and same atrributes in selenium</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How to locate an element which have same name and same atrributes in selenium, Selenium Notes, Examples, Videos, By.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;Automation using selenium is a great experience. It provides many way to identif an object or element on the web page.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;But sometime we face the problems of idenfying the objects on a page which have same attributes. When we get more than&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;one element which are same in attribute and name like multiple checkboxes with same name and same id. More than one button having &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;same name and ids. There are no way to distingues those element. In this case we have problem to instruct selenium to identify a perticular &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;object on a web page.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;I am giving you a simple example . In the below html source there are 6 checkboxes are there having same type and same name.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;It is really tough to select third or fifth. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;input type=&#39;checkbox&#39; name=&#39;chk&#39;&amp;gt;first&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;br&amp;gt;&amp;lt;input type=&#39;checkbox&#39; name=&#39;chk&#39;&amp;gt;second&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;br&amp;gt;&amp;lt;input type=&#39;checkbox&#39; name=&#39;chk&#39;&amp;gt;third&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;br&amp;gt;&amp;lt;input type=&#39;checkbox&#39; name=&#39;chk&#39;&amp;gt;forth&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;br&amp;gt;&amp;lt;input type=&#39;checkbox&#39; name=&#39;chk&#39;&amp;gt;fifth&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;br&amp;gt;&amp;lt;input type=&#39;checkbox&#39; name=&#39;chk&#39;&amp;gt;sixth&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Thare are some function we can use in Xpath to identify the abject in above cases.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;An XPath expression can return one of four basic XPath data types:&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;* String&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;* Number&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;* Boolean&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;* Node-set&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;XPath Type : Functions&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Node set : last(), position(), count(), id(), local-name(), namespace-uri(), name()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;String : string(), concat(), starts-with(), contains(), substring-before(), substring-after(), substring(), string-length(), normalize-space(), translate()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Boolean : boolean(), not(), true(), false(), lang()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Number : number(), sum(), floor(), ceiling(), round()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;I will show you how we can use some of these above functions in xpath to identify the objects.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Node Set : last()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;In the above html file there are six checkboxes and all are having same attributes (same type and name)&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;How we can select the last checkbox based on the position. We can use last() function to indentify the last object among all similar objects.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Below code will check or uncheck the last checkbox.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.click(&quot;xpath=(//input[@type=&#39;checkbox&#39;])[last()]&quot;);&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/1433120631044307972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-locate-element-which-have-same.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/1433120631044307972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/1433120631044307972'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-locate-element-which-have-same.html' title='How to locate an element which have same name and same atrributes in selenium'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-3625545098874031649</id><published>2011-11-10T22:26:00.001-08:00</published><updated>2011-11-10T22:26:46.703-08:00</updated><title type='text'>How we can select the second last checkbox and third last checkbox.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How we can select the second last checkbox and third last checkbox.  Selenium Notes, Examples, Videos, By.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;We can use last()- function to indentify the last object among all similar objects.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Below code will check or uncheck the second last checkbox and thrid last checkbox respectively.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.click(&quot;xpath=(//input[@type=&#39;submit&#39;])[last()-1]&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.click(&quot;xpath=(//input[@type=&#39;submit&#39;])[last()-2]&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Node Set : position()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;If you want to select any object based on their position using xpath then you can use position() function in xpath.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;You want to select second checkbox and forth checkbox then use below command &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.click(&quot;xpath=(//input[@type=&#39;checkbox&#39;])[position()=2]&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.click(&quot;xpath=(//input[@type=&#39;checkbox&#39;])[position()=4]&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;above code will select second and forth checkbox respectively.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;String : starts-with() &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Many web sites create dynamic element on their web pages where Ids of the elements gets generated dynamically.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Each time id gets generated differently. So to handle this situation we use some JavaScript functions.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;XPath: //button[starts-with(@id, &#39;continue-&#39;)]&amp;nbsp; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Sometimes an element gets identfied by a value that could be surrounded by other text, then contains function can be used.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;To demonstrate, the element&amp;nbsp; can be located based on the ‘suggest’ class without having&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;to couple it with the ‘top’ and ‘business’ classes using the following &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;XPath: //input[contains(@class, &#39;suggest&#39;)].&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Example: How to click on link on the page which has many links with same name and attributes.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Below is the example of your html which has 3 links with same name and same attributes&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;a href=&quot;http://www.google.com&quot; name=&quot;a1&quot;&amp;gt;Link&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;a href=&quot;http://www.yahoo.com&quot; name=&quot;a1&quot;&amp;gt;Link&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;a href=&quot;http://www.gmail.com&quot; name=&quot;a1&quot;&amp;gt;Link&amp;lt;/a&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;If you want to click on first link then use below command&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;clickAndWait&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;xpath=(//a[@name=&#39;a1&#39;])[position()=1]&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;If you want to click on second link then use below command&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;clickAndWait&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;xpath=(//a[@name=&#39;a1&#39;])[position()=2]&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;If you want to click on last link or third link then use below command&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;clickAndWait&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;xpath=(//a[@name=&#39;a1&#39;])[last()]&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;OR&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;clickAndWait&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;xpath=(//a[@name=&#39;a1&#39;])[position()=3]&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Selenium RC. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Click on first link&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.click(&quot;xpath=(//a[@name=&#39;a1&#39;])[position()=1]&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.waitForPageToLoad(&quot;80000&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Click on second link&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.click(&quot;xpath=(//a[@name=&#39;a1&#39;])[position()=2]&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.waitForPageToLoad(&quot;80000&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Click on last link&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.click(&quot;xpath=(//a[@name=&#39;a1&#39;])[last()]&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.waitForPageToLoad(&quot;80000&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Click on thrid link&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.click(&quot;xpath=(//a[@name=&#39;a1&#39;])[position()=3]&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.waitForPageToLoad(&quot;80000&quot;);&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/3625545098874031649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-we-can-select-second-last-checkbox_10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/3625545098874031649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/3625545098874031649'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-we-can-select-second-last-checkbox_10.html' title='How we can select the second last checkbox and third last checkbox.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-5333523887175012769</id><published>2011-11-10T22:25:00.000-08:00</published><updated>2011-11-10T22:25:06.544-08:00</updated><title type='text'>How to write in Iframe in selenium</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How to write in Iframe in selenium, Selenium Notes, Examples, Videos, By.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;Selenium is unable to type in iframe. But we can write in it by identifying the iframe using css. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;When you write any mail in gmail you can see the body is a iframe we can write in it using below commands&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Selenium IDE&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;storeEval&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;var bodytext=&quot; Writing text in iframe body with the help of http://automationtricks.blogspot.com &quot;;&amp;nbsp; var iframe_locator=&quot;css=table:contains(&#39;Subject:&#39;) +*&amp;nbsp; iframe&quot;;&amp;nbsp;&amp;nbsp; var iframe_body=selenium.browserbot.findElement(iframe_locator).contentWindow.document.body;&amp;nbsp;&amp;nbsp; if (browserVersion.isChrome){&amp;nbsp;&amp;nbsp;&amp;nbsp; iframe_body.textContent=bodytext; }&amp;nbsp; else if(browserVersion.isIE){ iframe_body.innerText=bodytext; }&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Selenium RC.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;String&amp;nbsp; = selenium.getEval(&quot;var bodytext=\&quot; Writing text in iframe body with the help of http://automationtricks.blogspot.com \&quot;;&amp;nbsp; var iframe_locator=\&quot;css=table:contains(&#39;Subject:&#39;) +*&amp;nbsp; iframe\&quot;;&amp;nbsp;&amp;nbsp; var iframe_body=selenium.browserbot.findElement(iframe_locator).contentWindow.document.body;&amp;nbsp;&amp;nbsp; if (browserVersion.isChrome){&amp;nbsp;&amp;nbsp;&amp;nbsp; iframe_body.textContent=bodytext; }&amp;nbsp; else if(browserVersion.isIE){ iframe_body.innerText=bodytext; }&quot;);&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/5333523887175012769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-write-in-iframe-in-selenium.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/5333523887175012769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/5333523887175012769'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-write-in-iframe-in-selenium.html' title='How to write in Iframe in selenium'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-8370412540313978944</id><published>2011-11-10T22:23:00.001-08:00</published><updated>2011-11-10T22:23:42.551-08:00</updated><title type='text'>How to locate an element based on their label in selenium</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How to locate an element based on their label in selenium, Selenium Notes, Examples, Videos, By.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;How to locate an element based on their label.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Some time it difficult to locate an element usiing DOM, HTML and xpath. In that case we use to locate the element with the &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;help of their lables.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;For example : Go to yahoo login page&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.open(&quot;https://login.yahoo.com&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Based on the lable &quot;Yahoo ! ID&quot; we will read the text box and type in.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.type(&quot;css=label:contains(\&quot;Yahoo! ID\&quot;)+input&quot;, &quot;niraj&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Based on the lable &quot;Password&quot; we will locate the text box for passowrd and type in.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.type(&quot;css=label:contains(\&quot;Password\&quot;)+input&quot;, &quot;pass&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Go to yahoo registrantion page.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.open(&quot;https://edit.yahoo.com/registration?.intl=us&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Based on Name label we will type in First Name text box. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.type(&quot;css=label:contains(\&quot;Name\&quot;)+div&amp;gt;input&quot;, &quot;niraj&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Based on Name label we will&amp;nbsp; type in Last name text box.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.type(&quot;css=label:contains(\&quot;Name\&quot;)+div&amp;gt;input+input&quot;, &quot;kumar&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Based on Gender lable we will select the gender from drop down.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.select(&quot;css=label:contains(\&quot;Gender\&quot;)+div&amp;gt;select&quot;, &quot;label=Male&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Based on Birthday lable we will select the month from drop down.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.select(&quot;css=label:contains(\&quot;Birthday\&quot;)+div&amp;gt;select&quot;, &quot;label=January&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Based on Birthday lable we will type the date in date text box.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.type(&quot;css=label:contains(\&quot;Birthday\&quot;)+div&amp;gt;select+input&quot;, &quot;2&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Based on Birthday lable we will type the year in year text box.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.type(&quot;css=label:contains(\&quot;Birthday\&quot;)+div&amp;gt;select+input+input&quot;, &quot;1982&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Based on country lable we will select &lt;st1:country-region w:st=&quot;on&quot;&gt;&lt;st1:place w:st=&quot;on&quot;&gt;India&lt;/st1:place&gt;&lt;/st1:country-region&gt; in country drop down box.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.select(&quot;css=div&amp;gt;label:contains(\&quot;Country\&quot;)+div&amp;gt;select&quot;, &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&quot;label=&lt;st1:country-region w:st=&quot;on&quot;&gt;&lt;st1:place w:st=&quot;on&quot;&gt;India&lt;/st1:place&gt;&lt;/st1:country-region&gt;&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;+ Is used to point the element on the same node in tree of css.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;label class=&quot;label&quot; for=&quot;name&quot;&amp;gt;Name&amp;lt;/label&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;div class=&quot;collection&quot; id=&quot;name&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;input type=&quot;text&quot; title=&quot;First Name&quot; name=&quot;firstname&quot; id=&quot;firstname&quot; value=&quot;&quot; size=&quot;32&quot; maxlength=&quot;32&quot; class=&quot;&quot; autocomplete=&quot;off&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;input type=&quot;text&quot; title=&quot;Last Name&quot; name=&quot;secondname&quot; id=&quot;secondname&quot; value=&quot;&quot; size=&quot;32&quot; maxlength=&quot;32&quot; class=&quot;&quot; autocomplete=&quot;off&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;to access firstname text box &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.type(&quot;css=label:contains(\&quot;Name\&quot;)+div&amp;gt;input&quot;, &quot;niraj&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;to access secondname its the same label of div but on the second place &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.type(&quot;css=label:contains(\&quot;Name\&quot;)+div&amp;gt;input+input&quot;, &quot;kumar&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;gt; Is used to point the element one node down in the tree of css.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;to access firstname text box &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;selenium.type(&quot;css=label:contains(\&quot;Name\&quot;)+div&amp;gt;input&quot;, &quot;niraj&quot;);&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/8370412540313978944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-locate-element-based-on-their.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/8370412540313978944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/8370412540313978944'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-locate-element-based-on-their.html' title='How to locate an element based on their label in selenium'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9174045509955845375.post-3363573669706060177</id><published>2011-11-10T22:20:00.000-08:00</published><updated>2011-11-10T22:20:41.223-08:00</updated><title type='text'>How to share a variable in two test cases</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.laxmiroy.blogspot.com/&quot;&gt;How to share a variable in two test cases, Selenium Notes, Examples, Videos, By.www.laxmiroy.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;How to share a variable in more than one test case. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;We Create a variable in one test case and use in another test cases. If these test cases are running seperately and independetely then those variable&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;cannot shared. But if we run all test cases in test suite then one varaible declared in one testcase can be used in another &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Follow these steps.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Create your test cases saparetly and call them in a test suite.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;1.Create first test case &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Test1.html&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;head&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;title&amp;gt;Propagate_Negative_API_UK&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;table cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; border=&quot;1&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;thead&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&amp;lt;td rowspan=&quot;1&quot; colspan=&quot;3&quot;&amp;gt;Propagate_Negative_API_UK&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/thead&amp;gt;&amp;lt;tbody&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;!------------------ Initialization steps ----------&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;store&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;varaible from first test1&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;vartest1&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;open&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;http://www.google.com&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;2.Create second test case &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Test2.html&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;==========&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;head&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;title&amp;gt;Propagate_Negative_API_UK&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;table cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; border=&quot;1&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;thead&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&amp;lt;td rowspan=&quot;1&quot; colspan=&quot;3&quot;&amp;gt;Propagate_Negative_API_UK&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/thead&amp;gt;&amp;lt;tbody&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;!------------------ Initialization steps ----------&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;store&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;varaible from first test2&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;vartest2&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;open&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;http://www.yahoo.com&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;echo&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;${vartest1}&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;3.Create third test case &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Test3.html&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;=========&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;head&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;title&amp;gt;Propagate_Negative_API_UK&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;table cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; border=&quot;1&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;thead&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&amp;lt;td rowspan=&quot;1&quot; colspan=&quot;3&quot;&amp;gt;Propagate_Negative_API_UK&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/thead&amp;gt;&amp;lt;tbody&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;!------------------ Initialization steps ----------&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;store&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;varaible from first test3&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;vartest3&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;open&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;http://www.gmail.com&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;echo&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;${vartest2}&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;4.Create test suite&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;TestSuite.html&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;=========&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;table&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tbody&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Test suite for sharing variable among test cases &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;a target=&quot;testFrame&quot; href=&quot;test1.html&quot;&amp;gt;test1&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;a target=&quot;testFrame&quot; href=&quot;test2.html&quot;&amp;gt;test2&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;a target=&quot;testFrame&quot; href=&quot;test3.html&quot;&amp;gt;test3&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp; &amp;lt;/tbody&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/table&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Run your test suite and you will see the variable vartest1 decalred in testcase1 being used in testcases2 &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;and variable vartest2 declared in testcase2 being used in testcase3.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://laxmiroy.blogspot.com/feeds/3363573669706060177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-share-variable-in-two-test-cases.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/3363573669706060177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9174045509955845375/posts/default/3363573669706060177'/><link rel='alternate' type='text/html' href='http://laxmiroy.blogspot.com/2011/11/how-to-share-variable-in-two-test-cases.html' title='How to share a variable in two test cases'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17334745997231478816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>