<?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-5499139872748921726</id><updated>2024-09-01T12:07:04.143+05:30</updated><category term="Selenium Webdriver"/><category term="selenium"/><category term="Android Webdriver"/><title type='text'>Anjaneyulu- Software Test Engineer</title><subtitle type='html'>It&#39;s technical blog related selenium automation scripting. It explains most of the features in selenium webdriver to automate web applications.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-3554226537277945258</id><published>2012-01-12T12:22:00.001+05:30</published><updated>2012-01-12T12:40:34.355+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Webdriver"/><title type='text'>Executing Android test project with NUnit using CSharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;1.&amp;nbsp; Build the solution created for the android test project&lt;br /&gt;
2.&amp;nbsp; Download NUnit from &lt;a href=&quot;http://nunit.org/index.php?p=download&quot;&gt;http://nunit.org/index.php?p=download&lt;/a&gt; and install&lt;br /&gt;
3. File&amp;gt;Open Project&amp;gt;add dll of the above project&lt;br /&gt;
4. Click on Run&lt;br /&gt;
5. Script is executing Android Emulator&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh-Hnb8DNTh73aU24o_gwoklc1Sc-veYyFQcyFRC0KNuyyBuvWF4qG1bQhR1PQjpUwYI-Dh6YP1r27zUtT4ezdrNVpIDqcBB8HDxfnmKLmxCVowIYbirQGRS8zWErn1DA7H8SYk0EfvI0/s1600/android1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh-Hnb8DNTh73aU24o_gwoklc1Sc-veYyFQcyFRC0KNuyyBuvWF4qG1bQhR1PQjpUwYI-Dh6YP1r27zUtT4ezdrNVpIDqcBB8HDxfnmKLmxCVowIYbirQGRS8zWErn1DA7H8SYk0EfvI0/s320/android1.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Note: Don&#39;t forget to Run android webdriver in Emulator&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/3554226537277945258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/executing-android-test-project-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/3554226537277945258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/3554226537277945258'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/executing-android-test-project-with.html' title='Executing Android test project with NUnit using CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh-Hnb8DNTh73aU24o_gwoklc1Sc-veYyFQcyFRC0KNuyyBuvWF4qG1bQhR1PQjpUwYI-Dh6YP1r27zUtT4ezdrNVpIDqcBB8HDxfnmKLmxCVowIYbirQGRS8zWErn1DA7H8SYk0EfvI0/s72-c/android1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-5946646973708296281</id><published>2012-01-12T12:16:00.000+05:30</published><updated>2012-01-12T12:16:18.779+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Webdriver"/><title type='text'>Writing test script android web applications in Android Emulator using CSharp with Visual Studio</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;1. Open visual Studio IDE&lt;br /&gt;
2. File&amp;gt;New&amp;gt;Project&amp;gt;C# Library Project&lt;br /&gt;
3. Go to Project Explorer&lt;br /&gt;
4. Click on Add Reference and browse for Android Webdriver Source files&lt;br /&gt;
5. Select all files net 35 or net 40 (i.e Depends on Target Framework) and add NUnit Framework.dll to this project &lt;br /&gt;
3. Copy the below script into your Visual studio Editor ( Using NUnit Frame work)&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using NUnit.Framework;&lt;br /&gt;
using OpenQA.Selenium.Android;&lt;br /&gt;
using OpenQA.Selenium;&lt;br /&gt;
&lt;br /&gt;
namespace GoogleAndroidTest&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [TestFixture]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public class AndroidTest&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private IWebDriver driver;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SetUp]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setupTest()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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; driver = new AndroidDriver(&quot;http://localhost:8080/wd/hub&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Test]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void test()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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; driver.Navigate().GoToUrl(&quot;http://google.co.in&quot;);&lt;br /&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; driver.FindElement(By.Name(&quot;q&quot;)).SendKeys(&quot;selenium&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/5946646973708296281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/writing-test-script-android-web_12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5946646973708296281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5946646973708296281'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/writing-test-script-android-web_12.html' title='Writing test script android web applications in Android Emulator using CSharp with Visual Studio'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-9149165397774805834</id><published>2012-01-12T11:55:00.001+05:30</published><updated>2012-01-12T12:07:50.423+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Webdriver"/><title type='text'>Requirements to write test script for  android web applications in Android Emulator using CSharp with Visual Studio IDE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;1.Download SDK from &lt;a href=&quot;http://developer.android.com/sdk/index.html&quot;&gt;http://developer.android.com/sdk/index.html&lt;/a&gt; and follow the instruction to install SDK&lt;br /&gt;
2.Download android server from &lt;a href=&quot;http://code.google.com/p/selenium/downloads/list&quot;&gt;http://code.google.com/p/selenium/downloads/list&lt;/a&gt; &lt;br /&gt;
Copy this into &lt;b&gt;C:\Program Files\Android\android-sdk\platform-tools&lt;/b&gt; this path.&lt;br /&gt;
3. Install android server using Command Prompt. Go to the above path and install by usiing the command&lt;br /&gt;
Go to the &lt;b&gt;C:\Program Files\Android\android-sdk\platform-tools&lt;/b&gt; and execute below command&lt;br /&gt;
&lt;i&gt;adb install &lt;b&gt;android-server-2.13.0.apk&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
After installation we will get the webdriver icon in application list&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZhH65YEZYR20xUvl7EeUYddrxF4PurLmHXqAJGX3jlmjH4quFkcs5QPPtho4n4RddGW_JE0OIwFVH3pwBICWCOSCrU7JBhvK6ZzcIWzXsGVp420ng7WPF12-M5my_GCeucJqVSJHoA4s/s1600/Android+Driver+installation.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZhH65YEZYR20xUvl7EeUYddrxF4PurLmHXqAJGX3jlmjH4quFkcs5QPPtho4n4RddGW_JE0OIwFVH3pwBICWCOSCrU7JBhvK6ZzcIWzXsGVp420ng7WPF12-M5my_GCeucJqVSJHoA4s/s1600/Android+Driver+installation.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
4. Click on webdriver icon then we&#39;ll get message like&lt;b&gt; webdriver ready or Jetty started&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;5. Settings in Android Emulator:&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Go to Settings &lt;b&gt;&amp;gt;&lt;/b&gt; Developer Options &lt;b&gt;&amp;gt;&lt;/b&gt; Select all three Check boxes&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB Debugging&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stay Awake&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Allow Mock Locations&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc04rltl1Z6WxqgqMlOaXrbmaTb2TCJWifLHqOyRliQMu2rG8EMZDaeeHjk8jBAoDVfdhJ6cAdW1i8xd0jGeopwxjRNvV7cVrDVkC2AS2hCokcLXXy42AH_KLORrMzUd3P-C2e9QqyYKc/s1600/androidproject10.bmp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc04rltl1Z6WxqgqMlOaXrbmaTb2TCJWifLHqOyRliQMu2rG8EMZDaeeHjk8jBAoDVfdhJ6cAdW1i8xd0jGeopwxjRNvV7cVrDVkC2AS2hCokcLXXy42AH_KLORrMzUd3P-C2e9QqyYKc/s320/androidproject10.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;6.Open command prompt&lt;br /&gt;
7. Go to the platform-tools folder in android SDK installation path&amp;nbsp; &lt;i&gt;C:\Program Files\Android\android-sdk\platform-tools&lt;/i&gt;&lt;br /&gt;
8. Forward port number using below command&lt;br /&gt;
&lt;b&gt;&lt;i&gt;adb forward tcp:8080 tcp:8080&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
9. Pass the url &lt;b&gt;http://localhost:8080/wd/hub/&lt;/b&gt; to check android  server is running in your local machine or not. If it is running  properly we will ge the below screen. (Before going to this start  android webdriver in emulator)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuTJmqO3KfZOys4i2vo8v1vL4lcoXXAPsBIoG3JQpuCnBMxvcuqKs_wP-G8Zbx6cbOLtEjLMED1RndF8brz5RxZ8hZcfrII3_1ByQe-2sRZ1Gi2JdXxUgbMmEFkBFFWo-00Q9x8MOBd_Q/s1600/androidproject12.bmp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuTJmqO3KfZOys4i2vo8v1vL4lcoXXAPsBIoG3JQpuCnBMxvcuqKs_wP-G8Zbx6cbOLtEjLMED1RndF8brz5RxZ8hZcfrII3_1ByQe-2sRZ1Gi2JdXxUgbMmEFkBFFWo-00Q9x8MOBd_Q/s320/androidproject12.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/9149165397774805834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/writing-test-script-android-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/9149165397774805834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/9149165397774805834'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/writing-test-script-android-web.html' title='Requirements to write test script for  android web applications in Android Emulator using CSharp with Visual Studio IDE'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZhH65YEZYR20xUvl7EeUYddrxF4PurLmHXqAJGX3jlmjH4quFkcs5QPPtho4n4RddGW_JE0OIwFVH3pwBICWCOSCrU7JBhvK6ZzcIWzXsGVp420ng7WPF12-M5my_GCeucJqVSJHoA4s/s72-c/Android+Driver+installation.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-6606591312124763396</id><published>2012-01-06T16:31:00.007+05:30</published><updated>2012-01-10T16:59:04.639+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Webdriver"/><title type='text'>Run Android Project to test Google Search in Eclipse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;1. Settings in Android Emulator:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Go to Settings &lt;b&gt;&amp;gt;&lt;/b&gt; Developer Options &lt;b&gt;&amp;gt;&lt;/b&gt; Select all three Check boxes&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB Debugging&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stay Awake&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Allow Mock Locations&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc04rltl1Z6WxqgqMlOaXrbmaTb2TCJWifLHqOyRliQMu2rG8EMZDaeeHjk8jBAoDVfdhJ6cAdW1i8xd0jGeopwxjRNvV7cVrDVkC2AS2hCokcLXXy42AH_KLORrMzUd3P-C2e9QqyYKc/s1600/androidproject10.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc04rltl1Z6WxqgqMlOaXrbmaTb2TCJWifLHqOyRliQMu2rG8EMZDaeeHjk8jBAoDVfdhJ6cAdW1i8xd0jGeopwxjRNvV7cVrDVkC2AS2hCokcLXXy42AH_KLORrMzUd3P-C2e9QqyYKc/s320/androidproject10.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;2.Open command prompt&lt;br /&gt;
3. Go to the platform-tools folder in android SDK installation path&amp;nbsp; &lt;i&gt;C:\Program Files\Android\android-sdk\platform-tools&lt;/i&gt;&lt;br /&gt;
4. Forward port number using below command&lt;br /&gt;
&lt;b&gt;&lt;i&gt;adb forward tcp:8080 tcp:8080&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0QOfeTU9Bh8yfDDXlFBt72tJCYRdR-Ud2B1veAYU1LH-KpKvDwtz9XWp9B0GN83p3tCVAjssNVFCmW4XugjpwniAkXcSb9Tf9nXFRgGYSJLWxyk0RtZE81S3ETL7uJoXcpftWSmLSbg4/s1600/androidproject11.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0QOfeTU9Bh8yfDDXlFBt72tJCYRdR-Ud2B1veAYU1LH-KpKvDwtz9XWp9B0GN83p3tCVAjssNVFCmW4XugjpwniAkXcSb9Tf9nXFRgGYSJLWxyk0RtZE81S3ETL7uJoXcpftWSmLSbg4/s320/androidproject11.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;5. Pass the url &lt;b&gt;http://localhost:8080/wd/hub/&lt;/b&gt; to check android server is running in your local machine or not. If it is running properly we will ge the below screen. (Before going to this start android webdriver in emulator)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuTJmqO3KfZOys4i2vo8v1vL4lcoXXAPsBIoG3JQpuCnBMxvcuqKs_wP-G8Zbx6cbOLtEjLMED1RndF8brz5RxZ8hZcfrII3_1ByQe-2sRZ1Gi2JdXxUgbMmEFkBFFWo-00Q9x8MOBd_Q/s1600/androidproject12.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuTJmqO3KfZOys4i2vo8v1vL4lcoXXAPsBIoG3JQpuCnBMxvcuqKs_wP-G8Zbx6cbOLtEjLMED1RndF8brz5RxZ8hZcfrII3_1ByQe-2sRZ1Gi2JdXxUgbMmEFkBFFWo-00Q9x8MOBd_Q/s320/androidproject12.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
6. Now run the project. Run Project as &lt;b&gt;&amp;gt;&lt;/b&gt; JUnit Test &lt;b&gt;&amp;gt;&lt;/b&gt;Check on Use Configuration Specific settings&lt;b&gt;&amp;gt;&lt;/b&gt; Select Android JUnit Test Launcher &lt;b&gt;&amp;gt;&lt;/b&gt; OK&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlMgrBeV7DS0pz0I4NLvQA4unc0C6tGpob_ujM7DBMOolQDisBsYPg6giEx5sh2MVzSAJNhMNbzegw_pFKF0eMym65cPRAiqknvR2tcD8kVlV4yGyIVXQED7IkmVfvb9J8n4q2s2WjzrY/s1600/android+project9.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlMgrBeV7DS0pz0I4NLvQA4unc0C6tGpob_ujM7DBMOolQDisBsYPg6giEx5sh2MVzSAJNhMNbzegw_pFKF0eMym65cPRAiqknvR2tcD8kVlV4yGyIVXQED7IkmVfvb9J8n4q2s2WjzrY/s320/android+project9.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;7. Go to emulator. Check script is executing in emulator.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBFRN-ZE_9ncD7OakV3iiWxPEbBF9Wyn_moO5nOyI4hG5MSjRUe2dY9nHetSt2y_XhzvlGKm0yPUg_e94sKhclrDOmraVsHbuW9ecjIKrTwXLWQ46BC0U_tCNIjhI3yfhUy7BRLFxAkxY/s1600/androidproject13.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBFRN-ZE_9ncD7OakV3iiWxPEbBF9Wyn_moO5nOyI4hG5MSjRUe2dY9nHetSt2y_XhzvlGKm0yPUg_e94sKhclrDOmraVsHbuW9ecjIKrTwXLWQ46BC0U_tCNIjhI3yfhUy7BRLFxAkxY/s320/androidproject13.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;-&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/6606591312124763396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/run-android-project-to-test-google.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/6606591312124763396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/6606591312124763396'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/run-android-project-to-test-google.html' title='Run Android Project to test Google Search in Eclipse'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc04rltl1Z6WxqgqMlOaXrbmaTb2TCJWifLHqOyRliQMu2rG8EMZDaeeHjk8jBAoDVfdhJ6cAdW1i8xd0jGeopwxjRNvV7cVrDVkC2AS2hCokcLXXy42AH_KLORrMzUd3P-C2e9QqyYKc/s72-c/androidproject10.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-6069189923407900403</id><published>2012-01-06T15:11:00.002+05:30</published><updated>2012-01-10T16:59:34.273+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Webdriver"/><title type='text'>Creating Android driver project to test Google Search in Eclipse</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 class=&quot;MsoNormal&quot;&gt;Open Eclipse IDE&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Follow the below steps to create a project&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;1. New&amp;gt; Other &amp;gt; Android&amp;gt; Android Project&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgua4uRWTsKpM4df5W8y3tEzr1MNoQAlbtI1pQPk7xDYeW09DWswgGBI_vpUUCXXRVUWaAX4bdGiLcuuUiuGGYXol7Bw6UTStQhTZMMQe2JrrPcyZsIHfJzTzq-uwo2ZkDLRIqFH23xDy0/s1600/android+project3.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgua4uRWTsKpM4df5W8y3tEzr1MNoQAlbtI1pQPk7xDYeW09DWswgGBI_vpUUCXXRVUWaAX4bdGiLcuuUiuGGYXol7Bw6UTStQhTZMMQe2JrrPcyZsIHfJzTzq-uwo2ZkDLRIqFH23xDy0/s320/android+project3.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi36ukLe29jFmxB1zb0u6WRIPlZBXjLLg4elg_xx35YKQ5gGkLejwVyX0VrTl2dznme-OYwYq8PMqG_zSWaqObAnO0SXuQeYUra_m7not6Lain88bry3kTyHTWCZGsHBT4IDmYs2V1n0k4/s1600/android+project2.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&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;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/div&gt;&lt;b&gt;2. Enter the below details&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Project name:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
The name of the folder where your project will be created.&lt;br /&gt;
Click Next&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Build Target:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
You want to choose as low of a version as possible unless you absolutely need to use something in a later API.&lt;br /&gt;
Click Next&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi36ukLe29jFmxB1zb0u6WRIPlZBXjLLg4elg_xx35YKQ5gGkLejwVyX0VrTl2dznme-OYwYq8PMqG_zSWaqObAnO0SXuQeYUra_m7not6Lain88bry3kTyHTWCZGsHBT4IDmYs2V1n0k4/s320/android+project2.bmp&quot; width=&quot;320&quot; /&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;i&gt;&lt;b&gt;Application name:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
This is the human-readable title for your application — the name that will appear on the Android device.&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Package name:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
This is the package namespace (following the same &lt;a href=&quot;http://docstore.mik.ua/orelly/java-ent/jnut/ch02_11.htm&quot;&gt;rules&lt;/a&gt;&amp;nbsp;as for packages in the Java programming language) where all your source code will reside.&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Create Activity:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
This is the name of the first Activity that will be generated in the src folder.&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Min SDK Version:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
This is an integer that indicates the minimum API Level required to properly run your application:&lt;br /&gt;
Click Finish&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3.Select project from Project Explorer&amp;gt;&lt;/b&gt;&lt;b&gt; Right Click&lt;/b&gt;&lt;b&gt;&amp;gt;&lt;/b&gt;&lt;b&gt; Go to Build path &lt;/b&gt;&lt;b&gt;&amp;gt;&lt;/b&gt;&lt;b&gt; Configure Build Path&lt;/b&gt;&lt;b&gt;&amp;gt;&lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt; Add External JARs&lt;/b&gt;&lt;b&gt;&amp;gt;&lt;/b&gt;&lt;b&gt; Select jar files in extracted selenium web driver java source.&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpkbt4GlWmEShQoEq-PqI8ies-E0t45l82p2WY2alWeBO6X7q2LSjTriNJPUCaaQwRL3Ma_z1nRHUwS_ZVerRwgSrTKTz2XnEG_AuwzUuKVRorEO06qMf0odq2C8jwNObOoe9rrF-Eo0o/s1600/android+project4.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpkbt4GlWmEShQoEq-PqI8ies-E0t45l82p2WY2alWeBO6X7q2LSjTriNJPUCaaQwRL3Ma_z1nRHUwS_ZVerRwgSrTKTz2XnEG_AuwzUuKVRorEO06qMf0odq2C8jwNObOoe9rrF-Eo0o/s320/android+project4.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;  &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqvXN2ZZ_5ntU0dFF5Pg6zImZKme3G9Yrhz3YWIXtKB8uVEotJUCpkjkc9wgWiaJ2KLTwVdftg6GGP0kWX9P3vuNXtEiC3PKvo26B-731HzNc5bvJbEcqfBv-UgkQbKK_ZlB1Cif1csNU/s1600/android+project5.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqvXN2ZZ_5ntU0dFF5Pg6zImZKme3G9Yrhz3YWIXtKB8uVEotJUCpkjkc9wgWiaJ2KLTwVdftg6GGP0kWX9P3vuNXtEiC3PKvo26B-731HzNc5bvJbEcqfBv-UgkQbKK_ZlB1Cif1csNU/s320/android+project5.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&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;4. Select project from Project Explorer&lt;b&gt;&amp;gt;&lt;/b&gt; Right Click&lt;b&gt;&amp;gt;&lt;/b&gt; Go to Build path &lt;b&gt;&amp;gt;&lt;/b&gt; Configure Build Path&lt;b&gt;&amp;gt;&lt;/b&gt;libraries &lt;b&gt;&amp;gt;&lt;/b&gt; Add Library&lt;b&gt;&amp;gt;&lt;/b&gt;select User Library&lt;b&gt;&amp;gt;&lt;/b&gt;Next&lt;b&gt;&amp;gt;&lt;/b&gt;Click User Libraries&lt;b&gt;&amp;gt;&lt;/b&gt; Click on New&lt;b&gt;&amp;gt;&lt;/b&gt;Enter name of user library &lt;b&gt;&amp;gt;&lt;/b&gt;OK&lt;b&gt;&amp;gt;&lt;/b&gt;Click Add Jars&lt;b&gt;&amp;gt;&lt;/b&gt;Select all jar files in libs folder of extracted selenium web driver java source&lt;b&gt;&amp;gt;&lt;/b&gt; Click OK&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPcxcEeo7bQYjbEWTNq-xhhv1T09J14-03wib0dwi2zr0OQ9KpRxkTM_m2w-95USnXI-13pZSf-Fixnlcx5XjZ_NCpOD9f-M9xBnhVlEC2pNq5XPROg7yurRg0h0Wpu8nQcsL3YIt5v7I/s1600/android+project6.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPcxcEeo7bQYjbEWTNq-xhhv1T09J14-03wib0dwi2zr0OQ9KpRxkTM_m2w-95USnXI-13pZSf-Fixnlcx5XjZ_NCpOD9f-M9xBnhVlEC2pNq5XPROg7yurRg0h0Wpu8nQcsL3YIt5v7I/s320/android+project6.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&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;Click on AndroidScriptActivity.java &amp;gt; Editor will open&amp;gt; Write the below script in Editor&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBFjRTwWkjlmYfSMTuE86r1tF5r8AyyzRzdp12TKIcBgvfPP8_OS1eenmMGs_dNM5sqLIPC3xHy0EG8Px-iXR1HPAFI4METXfeAr-qPUNyYRDOCgqRuxpCcR6U5Yz9aG15IEhwi-rtfZY/s1600/android+project7.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBFjRTwWkjlmYfSMTuE86r1tF5r8AyyzRzdp12TKIcBgvfPP8_OS1eenmMGs_dNM5sqLIPC3xHy0EG8Px-iXR1HPAFI4METXfeAr-qPUNyYRDOCgqRuxpCcR6U5Yz9aG15IEhwi-rtfZY/s320/android+project7.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&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;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;import&lt;/b&gt; junit.framework.TestCase;&lt;br /&gt;
&lt;b&gt;import &lt;/b&gt;org.openqa.selenium.By;&lt;br /&gt;
&lt;b&gt;import &lt;/b&gt;org.openqa.selenium.WebElement;&lt;br /&gt;
&lt;b&gt;import&lt;/b&gt; org.openqa.selenium.android.AndroidDriver;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: inherit; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;public&lt;/b&gt; &lt;b&gt;class&lt;/b&gt; AndroidScriptActivity &lt;b&gt;extends&lt;/b&gt; TestCase {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: inherit; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;public&lt;/b&gt; &lt;b&gt;void&lt;/b&gt; testProjectActivity() &lt;b&gt;throws&lt;/b&gt; Exception{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: inherit; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; AndroidDriver driver=&lt;b&gt;new&lt;/b&gt; AndroidDriver();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: inherit; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; driver.get(&quot;http://google.co.in&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: inherit; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; WebElement element=driver.findElement(By.&lt;i&gt;name&lt;/i&gt;(&quot;q&quot;));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: inherit; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; element.sendKeys(&quot;selenium&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: inherit; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; element.submit();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: inherit; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; System.&lt;i&gt;out&lt;/i&gt;.println(&quot;The page Title is &quot;+driver.getTitle());&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; line-height: normal;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/6069189923407900403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/creating-android-driver-project-to-test.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/6069189923407900403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/6069189923407900403'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/creating-android-driver-project-to-test.html' title='Creating Android driver project to test Google Search in Eclipse'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgua4uRWTsKpM4df5W8y3tEzr1MNoQAlbtI1pQPk7xDYeW09DWswgGBI_vpUUCXXRVUWaAX4bdGiLcuuUiuGGYXol7Bw6UTStQhTZMMQe2JrrPcyZsIHfJzTzq-uwo2ZkDLRIqFH23xDy0/s72-c/android+project3.bmp" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-2014746499703045216</id><published>2012-01-04T17:16:00.004+05:30</published><updated>2012-01-06T12:58:26.275+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Webdriver"/><title type='text'>Requirements to Create Android Webdriver Test Project in Eclipse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Before creating android project we need to have the following installations in our system&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
1. Download &lt;a href=&quot;http://www.oracle.com/technetwork/java/javase/downloads/index.html&quot;&gt;JDK 5 or JDK 6&lt;/a&gt;and install in our system. Set path by following instructions in&amp;nbsp; &lt;a href=&quot;http://www.java.com/en/download/help/path.xml&quot;&gt;http://www.java.com/en/download/help/path.xml&lt;/a&gt; &lt;br /&gt;
2. Download SDK from &lt;a href=&quot;http://developer.android.com/sdk/index.html&quot;&gt;http://developer.android.com/sdk/index.html&lt;/a&gt; and follow the instruction to install SDK&lt;br /&gt;
3. Follow the procedures in below the link to download and install ADT plugin for eclipse.&lt;br /&gt;
&amp;nbsp;&lt;a href=&quot;http://developer.android.com/sdk/eclipse-adt.html&quot;&gt;http://developer.android.com/sdk/eclipse-adt.html &lt;/a&gt;&lt;br /&gt;
&amp;nbsp;Screen shot look like&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_W_WsczTw2NrcZdZ4kcDcRgdvtBEiir1nrFBEog8nG8gkTRIV7b7F5M9Iz7fdCrtrgA824kMBBVKiNg08vbplpGL-kVx7gTTeW9rTFiscmhyphenhyphenClZG4G5v_Xt-moSVNHnjdkd02Umqplyw/s1600/SDK+installation.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_W_WsczTw2NrcZdZ4kcDcRgdvtBEiir1nrFBEog8nG8gkTRIV7b7F5M9Iz7fdCrtrgA824kMBBVKiNg08vbplpGL-kVx7gTTeW9rTFiscmhyphenhyphenClZG4G5v_Xt-moSVNHnjdkd02Umqplyw/s320/SDK+installation.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
4.Download android server from &lt;a href=&quot;http://code.google.com/p/selenium/downloads/list&quot;&gt;http://code.google.com/p/selenium/downloads/list&lt;/a&gt; &lt;br /&gt;
Copy this into &lt;b&gt;C:\Program Files\Android\android-sdk\platform-tools&lt;/b&gt; this path.&lt;br /&gt;
5. Install android server using Command Prompt. Go to the above path and install by usiing the command&lt;br /&gt;
&lt;i&gt;adb install &lt;b&gt;android-server-2.13.0.apk&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
After installation we will get the webdriver icon in application list&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjP5MlyDvEEUN8HHe0DhW5UC9wxIvcqLzXUQ5mqsxenwH5cW_DVMhq3uPFTuJzlJpApSLzQwjNkuSom3FyfJ_pSPcwi__pA8HexxxBK9jyyzPeGA2vFxoEWP8wvGsg9j9g8c6NBA5n4uE/s1600/Android+Driver+installation.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjP5MlyDvEEUN8HHe0DhW5UC9wxIvcqLzXUQ5mqsxenwH5cW_DVMhq3uPFTuJzlJpApSLzQwjNkuSom3FyfJ_pSPcwi__pA8HexxxBK9jyyzPeGA2vFxoEWP8wvGsg9j9g8c6NBA5n4uE/s320/Android+Driver+installation.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;6. Click on webdriver icon then we&#39;ll get message like&lt;b&gt; webdriver ready or Jetty started&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/2014746499703045216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/requirements-to-create-android-project.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/2014746499703045216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/2014746499703045216'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2012/01/requirements-to-create-android-project.html' title='Requirements to Create Android Webdriver Test Project in Eclipse'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_W_WsczTw2NrcZdZ4kcDcRgdvtBEiir1nrFBEog8nG8gkTRIV7b7F5M9Iz7fdCrtrgA824kMBBVKiNg08vbplpGL-kVx7gTTeW9rTFiscmhyphenhyphenClZG4G5v_Xt-moSVNHnjdkd02Umqplyw/s72-c/SDK+installation.bmp" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-8479261642094469744</id><published>2011-11-25T14:23:00.000+05:30</published><updated>2011-11-25T14:23:48.685+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Different setup fixtures for different browsers in selenium webdriver using NUnit Framework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp;public abstract class testwithMultiBrowser&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected IWebDriver driver;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Test]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void test()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; driver.Navigate().GoToUrl(&quot;http://google.co.in&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; [TestFixture]&lt;br /&gt;
&amp;nbsp; class testwithFirefox:testwithMultiBrowser&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SetUp]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void firefoxSetup()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; driver = new FirefoxDriver();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IWindow window = driver.Manage().Window;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.Size = new Size(1366, 768);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [TearDown]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void tearDown()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; driver.Quit();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [TestFixture]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; class testwithIE:testwithMultiBrowser&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SetUp]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void iesetUP()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; driver = new InternetExplorerDriver();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [TearDown]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void tearDown()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; driver.Quit();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/8479261642094469744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/different-setup-fixtures-for-different.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/8479261642094469744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/8479261642094469744'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/different-setup-fixtures-for-different.html' title='Different setup fixtures for different browsers in selenium webdriver using NUnit Framework'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-7590240155892873311</id><published>2011-11-24T18:15:00.000+05:30</published><updated>2011-11-24T18:15:50.256+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Run selenium test scripts in multiple browsers using NUnit Framework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;[TestFixture(typeof(InternetExplorerDriver))]&lt;br /&gt;
[TestFixture(typeof(FirefoxDriver))]&lt;br /&gt;
public class testwithMultipleBrowsers&amp;lt;Testwebdriver&amp;gt; where Testwebdriver:IWebDriver ,new()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;IWebDriver driver;&lt;br /&gt;
&amp;nbsp;[SetUp]&lt;br /&gt;
&amp;nbsp;public void testsetup()&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; driver = new Testwebdriver();&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;[TearDown]&lt;br /&gt;
&amp;nbsp;public void teardownTest()&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp; driver.Quit();&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; [Test]&lt;br /&gt;
&amp;nbsp; public void testMulitBrowser()&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp; driver.Navigate().GoToUrl(&quot;http://google.co.in&quot;);&lt;br /&gt;
&amp;nbsp; driver.FindElement(By.Name(&quot;q&quot;)).SendKeys(&quot;testingtools&quot;);&lt;br /&gt;
&amp;nbsp; driver.FindElement(By.Name(&quot;btnG&quot;)).Click();&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/7590240155892873311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/run-selenium-test-scripts-in-multiple.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/7590240155892873311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/7590240155892873311'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/run-selenium-test-scripts-in-multiple.html' title='Run selenium test scripts in multiple browsers using NUnit Framework'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-5229974971385521064</id><published>2011-11-24T17:01:00.002+05:30</published><updated>2011-11-24T17:14:44.819+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Handling Ajax Autosuggests using selenium webdriver with CSharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;driver.Navigate().GoToUrl(&quot;http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx&quot;);&lt;br /&gt;
driver.FindElement(By.XPath(&quot;//input[contains(@id,&#39;SampleContent_myTextBox&#39;)]&quot;)).SendKeys(&quot;test&quot;);&lt;br /&gt;
Thread.Sleep(TimeSpan.FromSeconds(2));&lt;br /&gt;
IWebElement element = driver.FindElement(By.XPath(&quot;//div[contains(@id,&#39;master_contentplaceholder&#39;)]//div//ul&quot;));&lt;br /&gt;
ReadOnlyCollection&amp;lt;IWebElement&amp;gt; texts=element.FindElements(By.TagName(&quot;li&quot;));&lt;br /&gt;
IKeyboard key = ((IHasInputDevices)driver).Keyboard;&lt;br /&gt;
foreach(IWebElement text in texts)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; key.PressKey(Keys.ArrowDown);&lt;br /&gt;
&amp;nbsp; if (Equals(&quot;testMal&quot;, text.Text))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(text.Text);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; key.PressKey(Keys.Enter);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; key.PressKey(Keys.ArrowDown);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; key.PressKey(Keys.Enter);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/5229974971385521064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/handling-ajax-autosuggests-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5229974971385521064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5229974971385521064'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/handling-ajax-autosuggests-using.html' title='Handling Ajax Autosuggests using selenium webdriver with CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-6212802916787460482</id><published>2011-11-23T19:23:00.001+05:30</published><updated>2011-11-23T19:34:49.840+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Data Driven using Excel Data W/O oledb driver in selenium webdriver with CSharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;for (int i = 2; i &amp;lt;= 4; i++)&lt;br /&gt;
{&lt;br /&gt;
driver.Navigate().GoToUrl(baseURL);&lt;br /&gt;
driver.FindElement(By.LinkText(&quot;REGISTER&quot;)).Click();&lt;br /&gt;
Excel.Application xlApp;&lt;br /&gt;
Excel.Workbook xlWorkBook;&lt;br /&gt;
Excel.Worksheet xlWorkSheet;&lt;br /&gt;
object misValue = System.Reflection.Missing.Value;&lt;br /&gt;
xlApp = new Excel.ApplicationClass();&lt;br /&gt;
xlWorkBook = xlApp.Workbooks.Open(&quot;D:\\Data.xlsx&quot;, 0, true, 5, &quot;&quot;, &quot;&quot;, true, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, &quot;\t&quot;, false, false, 0, true, 1, 0);&lt;br /&gt;
xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);&lt;br /&gt;
username = xlWorkSheet.get_Range(&quot;A&quot; + i, &quot;A&quot; + i).Value2.ToString();&lt;br /&gt;
password = xlWorkSheet.get_Range(&quot;B&quot; + i, &quot;B&quot; + i).Value2.ToString();xlWorkBook.Close(true, misValue, misValue);&lt;br /&gt;
xlApp.Quit();&lt;br /&gt;
driver.FindElement(By.Name(&quot;email&quot;)).SendKeys(username);&lt;br /&gt;
driver.FindElement(By.Name(&quot;password&quot;)).SendKeys(password);&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/6212802916787460482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/data-driven-using-excel-data-wo-oledb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/6212802916787460482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/6212802916787460482'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/data-driven-using-excel-data-wo-oledb.html' title='Data Driven using Excel Data W/O oledb driver in selenium webdriver with CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-9158577566291177725</id><published>2011-11-23T19:08:00.001+05:30</published><updated>2011-11-23T19:23:44.766+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Data Driven using  Excel Data with oledb connection in selenium webdriver with CSharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;string connectionstring = &quot;Provider=Microsoft.ACE.OLEDB.12.0;Data Source=&quot; + &quot;d:\\Userdata.xlsx&quot; + &quot;;Extended Properties=\&quot;Excel 12.0;HDR=YES;\&quot;&quot;;&lt;br /&gt;
&amp;nbsp;string selectusername = &quot;SELECT *from [Sheet1$] &quot;;&lt;br /&gt;
OleDbConnection con = new OleDbConnection(connectionstring);&lt;br /&gt;
OleDbCommand cmd = new OleDbCommand(selectusername, con);&lt;br /&gt;
con.Open();&lt;br /&gt;
OleDbDataReader thedata = cmd.ExecuteReader();&lt;br /&gt;
while (thedata.Read())&lt;br /&gt;
{&lt;br /&gt;
username = thedata[0].ToString();&lt;br /&gt;
password = thedata[1].ToString();&lt;br /&gt;
driver.Navigate().GoToUrl(baseURL);&lt;br /&gt;
driver.FindElement(By.LinkText(&quot;REGISTER&quot;)).Click();&lt;br /&gt;
driver.FindElement(By.Name(&quot;email&quot;)).SendKeys(username);&lt;br /&gt;
driver.FindElement(By.Name(&quot;password&quot;)).SendKeys(password);&lt;br /&gt;
driver.FindElement(By.Name(&quot;confirmPassword&quot;)).SendKeys(password);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/9158577566291177725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/data-driven-using-excel-data-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/9158577566291177725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/9158577566291177725'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/data-driven-using-excel-data-in.html' title='Data Driven using  Excel Data with oledb connection in selenium webdriver with CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-5720806591279509608</id><published>2011-11-23T18:52:00.004+05:30</published><updated>2011-11-23T19:00:29.822+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Data Driven using SQL database in selenium webdriver with CSharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;driver.Navigate().GoToUrl(baseURL);&lt;br /&gt;
SqlCommand comm = new SqlCommand();&lt;br /&gt;
comm.Connection = new SqlConnection(&quot;Data Source=DANJANEYULU\\SQLEXPRESS;&quot; + &quot;Initial Catalog=Userdata; Trusted_Connection=Yes&quot;); &lt;span style=&quot;color: #38761d;&quot;&gt;//Windows Authentication&lt;/span&gt;&lt;br /&gt;
string sql = @&quot;select Username,Password from Userdata&quot;;&lt;br /&gt;
comm.CommandText = sql;&lt;br /&gt;
comm.Connection.Open();&lt;br /&gt;
SqlDataReader cursor = comm.ExecuteReader();&lt;br /&gt;
while (cursor.Read())&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; string username=cursor[&quot;Username&quot;].ToString();&lt;br /&gt;
&amp;nbsp; string password = cursor[&quot;Password&quot;].ToString();&lt;br /&gt;
&amp;nbsp; driver.Navigate().GoToUrl(baseURL);&lt;br /&gt;
&amp;nbsp; driver.FindElement(By.LinkText(&quot;REGISTER&quot;)).Click();&lt;br /&gt;
&amp;nbsp; driver.FindElement(By.Name(&quot;email&quot;)).SendKeys(username);&lt;br /&gt;
&amp;nbsp; driver.FindElement(By.Name(&quot;password&quot;)).SendKeys(password);&lt;br /&gt;
&amp;nbsp; driver.FindElement(By.Name(&quot;confirmPassword&quot;)).SendKeys(password);&lt;br /&gt;
}&lt;br /&gt;
comm.Connection.Close();&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/5720806591279509608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/data-driven-testing-in-selenium.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5720806591279509608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5720806591279509608'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/data-driven-testing-in-selenium.html' title='Data Driven using SQL database in selenium webdriver with CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-42375220487482021</id><published>2011-11-22T19:31:00.002+05:30</published><updated>2011-11-22T19:32:24.972+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Connecting Remote System with Selenium webdriver using CSharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
Selenium standalone server should be run on the remote system.Then follow the procedure &lt;br /&gt;
&lt;br /&gt;
namespace SeleniumFeatures&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [TestFixture]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; class SeleniumRemoteWebdriver&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RemoteWebDriver driver;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SetUp]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setupTest()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
driver = new RemoteWebDriver(new Uri(&quot;http://127.0.0.1:4444/wd/hub&quot;),&amp;nbsp; DesiredCapabilities.Firefox());&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;// Change the ip iddress to target remote system ip address&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Test]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void Test()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; driver.Navigate().GoToUrl(&quot;http://google.co.in&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; driver.FindElement(By.Name(&quot;q&quot;)).SendKeys(&quot;testing tutorials&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; driver.FindElement(By.Name(&quot;btnG&quot;)).Click();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/42375220487482021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/connecting-remote-system-using-selenium.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/42375220487482021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/42375220487482021'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/connecting-remote-system-using-selenium.html' title='Connecting Remote System with Selenium webdriver using CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-3790658441916901505</id><published>2011-11-22T17:46:00.001+05:30</published><updated>2011-11-22T17:57:13.564+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Extracting data from WebTable in selenium webdriver using csharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;driver.Navigate().GoToUrl(&quot;http://www.indiangoldrates.com/&quot;);&lt;br /&gt;
IWebElement table = driver.FindElement(By.XPath(&quot;//div[@id=&#39;post-7&#39;]//table[1]&quot;));&lt;br /&gt;
ReadOnlyCollection&amp;lt;IWebElement&amp;gt; allRows = table.FindElements(By.TagName(&quot;tr&quot;));&lt;br /&gt;
foreach (IWebElement row in allRows)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReadOnlyCollection&amp;lt;IWebElement&amp;gt; cells = row.FindElements(By.TagName(&quot;td&quot;));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (IWebElement cell in cells)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;\t&quot; + cell.Text);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/3790658441916901505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/read-table-data-in-selenium-webdriver.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/3790658441916901505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/3790658441916901505'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/read-table-data-in-selenium-webdriver.html' title='Extracting data from WebTable in selenium webdriver using csharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-7746760498853462491</id><published>2011-11-22T12:26:00.000+05:30</published><updated>2011-11-22T12:26:17.406+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>How to Handle drag and drop in selenium webdriver using CSharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;To do this we have to include using &lt;b&gt;OpenQA.Selenium.Interactions&lt;/b&gt; name space &lt;br /&gt;
&lt;br /&gt;
driver.Navigate().GoToUrl(&quot;http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html&quot;);&lt;br /&gt;
IWebElement element = driver.FindElement(By.Id(&quot;li1_1&quot;));&lt;br /&gt;
IWebElement target=driver.FindElement(By.Id(&quot;ul2&quot;));&lt;br /&gt;
IWebElement target1 = driver.FindElement(By.Id(&quot;li2_1&quot;));&lt;br /&gt;
new Actions(driver).DragAndDrop(element, target1).Build().Perform();&lt;br /&gt;
new Actions(driver).DragAndDropToOffset(target1, 75, 40).Build().Perform();&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/7746760498853462491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/how-to-handle-drag-and-drop-in-selenium.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/7746760498853462491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/7746760498853462491'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/how-to-handle-drag-and-drop-in-selenium.html' title='How to Handle drag and drop in selenium webdriver using CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-5398922939300606363</id><published>2011-11-21T19:02:00.000+05:30</published><updated>2011-11-21T19:02:26.601+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Upload a file using selenium webdriver with CSharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
driver.Navigate().GoToUrl(&quot;http://www.freeonlinephotoeditor.com/&quot;);&lt;br /&gt;
IWebElement element=driver.FindElement(By.Id(&quot;file&quot;));&lt;br /&gt;
element.SendKeys(&quot;d:\\anji.jpg&quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;//path of a file&lt;/span&gt;&lt;br /&gt;
driver.FindElement(By.Name(&quot;upload&quot;)).Click();&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/5398922939300606363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/upload-file-using-selenium-webdriver.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5398922939300606363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5398922939300606363'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/upload-file-using-selenium-webdriver.html' title='Upload a file using selenium webdriver with CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-614675081841780958</id><published>2011-11-21T15:19:00.000+05:30</published><updated>2011-11-21T15:19:04.501+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Moving a mouse on a Object and right clicking on it in Selenium Webdriver  using CSharp</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;br /&gt;
IWebElement element = driver.FindElement(By.XPath(&quot;//img[@name=&#39;jack&#39;]&quot;));&lt;br /&gt;
new Actions(driver).MoveToElement(element).Perform();&lt;br /&gt;
ILocatable loc = (ILocatable)element;&lt;br /&gt;
IMouse mouse = ((IHasInputDevices)driver).Mouse;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;// Converting driver as a Mouse&lt;/span&gt;&lt;br /&gt;
mouse.ContextClick(loc.Coordinates);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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 style=&quot;color: #38761d;&quot;&gt;//Right Click&lt;/span&gt;&lt;br /&gt;
IKeyboard key = ((IHasInputDevices)driver).Keyboard;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;// Converting driver as a Keyboard&lt;/span&gt;&lt;br /&gt;
key.SendKeys(&quot;w&quot;);&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/614675081841780958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/moving-mouse-on-object-and-right.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/614675081841780958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/614675081841780958'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/moving-mouse-on-object-and-right.html' title='Moving a mouse on a Object and right clicking on it in Selenium Webdriver  using CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-6526478166206794758</id><published>2011-11-21T12:59:00.000+05:30</published><updated>2011-11-21T12:59:33.942+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>How to handle DropDown list in selenium webdriver using Csharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;var selectCountry = driver.FindElement(By.Name(&quot;country&quot;)); &lt;span style=&quot;color: #38761d;&quot;&gt;// country is the name of the dropdown element&lt;/span&gt;&lt;br /&gt;
var selectedcountry = new SelectElement(selectCountry);&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;// Select element in dropdown &lt;/span&gt;&lt;br /&gt;
selectedcountry.SelectByText(&quot;INDIA &quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;// Select value in list by using text.&lt;/span&gt;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
We can select values by using Index, value also&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/6526478166206794758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/how-to-handle-dropdown-list-in-selenium.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/6526478166206794758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/6526478166206794758'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/how-to-handle-dropdown-list-in-selenium.html' title='How to handle DropDown list in selenium webdriver using Csharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-5356853699936481181</id><published>2011-11-21T12:39:00.000+05:30</published><updated>2011-11-21T12:39:50.648+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>How to handle Prompts  in selenium webdriver using CSharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;Here when we click on the below element it&#39;s asking for the name.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
driver.FindElement(By.XPath(&quot;//input[@value=&#39;I dare you to click me!&#39;]&quot;)).Click();&lt;br /&gt;
IAlert alert = driver.SwitchTo().Alert();&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 style=&quot;color: #38761d;&quot;&gt;//Switch to Alert&lt;/span&gt;&lt;br /&gt;
IWebElement name = driver.SwitchTo().ActiveElement();&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;// Switch driver to Active Element&lt;/span&gt;&lt;br /&gt;
name.SendKeys(&quot;anjaneyulu&quot;);&lt;br /&gt;
alert.Accept();&lt;br /&gt;
IAlert alert2 = driver.SwitchTo().Alert();&lt;br /&gt;
string text = alert2.Text;&lt;br /&gt;
Console.WriteLine(text);&lt;br /&gt;
alert2.Accept();&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/5356853699936481181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/how-to-handle-prompts-in-selenium.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5356853699936481181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5356853699936481181'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/how-to-handle-prompts-in-selenium.html' title='How to handle Prompts  in selenium webdriver using CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-5080279726700893856</id><published>2011-11-21T12:21:00.005+05:30</published><updated>2011-11-21T12:33:16.985+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Handle Confirm Box in Selenium Webdriver Using Csharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;Here when we click on the below element on confirm box will appear with OK and Cancel buttons. After click on any of these two buttons another alert will open with OK button.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
driver.FindElement(By.XPath(&quot;//div[@id=&#39;content&#39;]/table/tbody/tr[6]/td[3]/input&quot;)).Click();&lt;br /&gt;
IAlert alert = driver.SwitchTo().Alert();&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;// Switching to alert&lt;/span&gt;&lt;br /&gt;
string firstalert = alert.Text;&amp;nbsp;&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 style=&quot;color: #38761d;&quot;&gt;// Trying to get text from the alert&lt;/span&gt;&lt;br /&gt;
Console.WriteLine(firstalert);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;// Display the text on Console&lt;/span&gt;&lt;br /&gt;
alert.Accept();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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 style=&quot;color: #38761d;&quot;&gt;// Click on OK Button&lt;/span&gt;&lt;br /&gt;
// alert.Dismiss();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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 style=&quot;color: #38761d;&quot;&gt;// Click on Cancel Button&lt;/span&gt;&lt;br /&gt;
IAlert alert1 = driver.SwitchTo().Alert();&lt;br /&gt;
string secondalert = alert1.Text;&lt;br /&gt;
Console.WriteLine(secondalert);&lt;br /&gt;
alert1.Accept();&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/5080279726700893856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/handle-confirm-box-in-selenium.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5080279726700893856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5080279726700893856'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/handle-confirm-box-in-selenium.html' title='Handle Confirm Box in Selenium Webdriver Using Csharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-7389513189442545272</id><published>2011-11-18T19:46:00.003+05:30</published><updated>2011-11-21T12:52:02.100+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Working with Mouse Click in selenium webdriver using CSharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;In the below script , i am trying to click on image having name=jack. &lt;br /&gt;
&lt;br /&gt;
Before to do this, we hav to include &lt;span style=&quot;color: #e69138;&quot;&gt;OpenQA.Selenium.Interactions&lt;/span&gt;&amp;nbsp; namespace&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #e69138;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
IWebElement element = driver.FindElement(By.XPath(&quot;//img[@name=&#39;jack&#39;]&quot;));&lt;br /&gt;
new Actions(driver).MoveToElement(element).Perform(); &lt;span style=&quot;color: #38761d;&quot;&gt;//Here i am moving driver to that element.&lt;/span&gt;&lt;br /&gt;
ILocatable loc = (ILocatable)element;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;// Here i am getting co-ordinates of that element.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;IMouse mouse = ((IHasInputDevices)driver).Mouse;&lt;span style=&quot;color: #38761d;&quot;&gt; // Here i am converting driver as a mouse device.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;mouse.Click(loc.Coordinates);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;//Here driver click on that coordinates.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/7389513189442545272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/working-with-mouse-click-in-selenium.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/7389513189442545272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/7389513189442545272'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/working-with-mouse-click-in-selenium.html' title='Working with Mouse Click in selenium webdriver using CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-5660905143426981636</id><published>2011-11-18T19:33:00.002+05:30</published><updated>2011-11-21T12:33:16.986+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Selenium Webdriver"/><title type='text'>Working with javascript popups in selenium webdriver using CSharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;driver.Navigate().GoToUrl(&quot;http://book.theautomatedtester.co.uk&quot;);&lt;br /&gt;
driver.FindElement(By.LinkText(&quot;Chapter1&quot;)).Click();&lt;br /&gt;
driver.FindElement(By.ClassName(&quot;multiplewindow&quot;)).Click();&lt;br /&gt;
driver.SwitchTo().Window(&quot;popupwindow&quot;); &lt;span style=&quot;color: #38761d;&quot;&gt;// Here popupwindow is name of the window&lt;/span&gt;&lt;br /&gt;
string text = driver.FindElement(By.CssSelector(&quot;p[id=&#39;popuptext&#39;]&quot;)).Text;&lt;br /&gt;
Console.WriteLine(text);&lt;br /&gt;
driver.FindElement(By.CssSelector(&quot;p[id=&#39;closepopup&#39;]&quot;)).Click();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/5660905143426981636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/working-with-javascript-popups-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5660905143426981636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/5660905143426981636'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/working-with-javascript-popups-in.html' title='Working with javascript popups in selenium webdriver using CSharp'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-749479101505981551</id><published>2011-11-01T16:51:00.003+05:30</published><updated>2011-11-01T16:54:29.425+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="selenium"/><title type='text'>Writing Selenium Tests in Eclipse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
First we download Selenium IDE form &lt;a href=&quot;http://seleniumhq.org/download/&quot;&gt;http://seleniumhq.org/download/&lt;/a&gt;. It is a firefox plugin. Click on install&lt;br /&gt;
How to install Selenium IDE into your Browser.&lt;br /&gt;
Go to &lt;a href=&quot;http://seleniumhq.org/docs/02_selenium_ide.html#installing-the-ide&quot;&gt;http://seleniumhq.org/docs/02_selenium_ide.html#installing-the-ide. &lt;/a&gt;&lt;br /&gt;
After Installation &lt;b&gt;Selnium IDE&lt;/b&gt; will appear in Tools Menu&lt;br /&gt;
&lt;br /&gt;
Click on Record Button on the Right Side corner OR&lt;span style=&quot;color: orange;&quot;&gt; Go to Action---&amp;gt; Click Record&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Goto Url and Navigate some steps . After Navigation complete Stop Record.&lt;br /&gt;
&lt;br /&gt;
Then we will get the script in Table format. If you want to source file click on source button. Default HTML code will appear.&lt;br /&gt;
&lt;br /&gt;
If we want to write tests using java or csharp . &lt;span style=&quot;color: orange;&quot;&gt;Go to Options--&amp;gt;Format---&amp;gt;Select format ---&amp;gt;Click OK.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If languages are not appear in the Format menu.&lt;span style=&quot;color: orange;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: orange;&quot;&gt;Go to Options--&amp;gt;Options--&amp;gt;Select Enable Experimental Features. Now, we got the language options.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: orange;&quot;&gt;Copy the Entire code into your Class&amp;nbsp; Do the following changes in ur script.&lt;/div&gt;&lt;div style=&quot;color: orange;&quot;&gt;1. Change Package name (i.e where our script appears.).&amp;nbsp; In the previouse example my script contains in com folde. So include this package like package com;&lt;/div&gt;&lt;div style=&quot;color: orange;&quot;&gt;2. Change Untitled Class name to your Class name.&lt;/div&gt;&lt;div style=&quot;color: orange;&quot;&gt;3. Click on Run.&amp;nbsp;&lt;/div&gt;&lt;br /&gt;
We will get the below after screenshot &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmW0gKT3qjiLEO1OuNI-uWzCJN-oviFeFdUYjoFHrcBwd4C3lEba61yUBSAQmxsZS6izcJuVbUCaWWrk8WNAJcqeN13YMEULouKVbVoUNpn9mZ7D54Hxyju5y1oUIFztcRVcRb00tn7KU/s1600/eclipse6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmW0gKT3qjiLEO1OuNI-uWzCJN-oviFeFdUYjoFHrcBwd4C3lEba61yUBSAQmxsZS6izcJuVbUCaWWrk8WNAJcqeN13YMEULouKVbVoUNpn9mZ7D54Hxyju5y1oUIFztcRVcRb00tn7KU/s400/eclipse6.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
If test passed Green Bar will appear otherwise Red Bar will appear. Don&#39;t forget to run selenium server before your test execution.&lt;br /&gt;
&lt;br /&gt;
If you want ot run selenium tests using TestNG , instead of creating JUnit test case create TestNG Class.&lt;br /&gt;
Get the script by using TestNG (Remote Control) Format in Selenium IDE. Don&#39;t forget to add TestNG Jar file to your project.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/749479101505981551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/writing-selenium-tests-in-eclipse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/749479101505981551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/749479101505981551'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/writing-selenium-tests-in-eclipse.html' title='Writing Selenium Tests in Eclipse'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmW0gKT3qjiLEO1OuNI-uWzCJN-oviFeFdUYjoFHrcBwd4C3lEba61yUBSAQmxsZS6izcJuVbUCaWWrk8WNAJcqeN13YMEULouKVbVoUNpn9mZ7D54Hxyju5y1oUIFztcRVcRb00tn7KU/s72-c/eclipse6.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-9140502297474534272</id><published>2011-11-01T16:18:00.003+05:30</published><updated>2011-11-01T16:22:17.088+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="selenium"/><title type='text'>Configuring Selenium RC with Eclipse using JUnit</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Open Eclipse IDE&lt;br /&gt;
1. Select File--&amp;gt;New--&amp;gt;Java Project. Screen will be appear like below screenshot&lt;br /&gt;
Enter Project&amp;nbsp; Name and Click on Finish. On Left Side Bar we will get SeleniumRC Example in Package Explorer&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzzBd1Bs50ER5S3AWvGSQ5gATXQothhYMu6KNsIgZIIWxx1SLFTDbJggPoqN9G0bN7N4R3USLDIk9WSkcxU9mk8YAtlkVle-OX0f_QhsfTmSxCENUoyc9j8BHJNKrux-xUsBpNVedkduk/s1600/eclipse1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzzBd1Bs50ER5S3AWvGSQ5gATXQothhYMu6KNsIgZIIWxx1SLFTDbJggPoqN9G0bN7N4R3USLDIk9WSkcxU9mk8YAtlkVle-OX0f_QhsfTmSxCENUoyc9j8BHJNKrux-xUsBpNVedkduk/s400/eclipse1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;2. Expand Project --&amp;gt; Right Click on Src---&amp;gt;New--&amp;gt;Folder --&amp;gt; enter folder name --&amp;gt;Click Finish&lt;br /&gt;
&amp;nbsp; Like in below screen shot.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivsC052-ph8wq4QKiFIikRs-MrDFllHOm4DW9hihW66GN2wlDrr1vQcFkhBoQ9vtxFLrpCAcMg3GFcxMkj_CqjiFpN4b2E5ttp38QrLE4jfKooygJO6Acw5ku2yaILFytT7RKj3NLrZnA/s1600/eclipse2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivsC052-ph8wq4QKiFIikRs-MrDFllHOm4DW9hihW66GN2wlDrr1vQcFkhBoQ9vtxFLrpCAcMg3GFcxMkj_CqjiFpN4b2E5ttp38QrLE4jfKooygJO6Acw5ku2yaILFytT7RKj3NLrZnA/s400/eclipse2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;3.In Project Explorer we found one package symbol with given folder name. Right Click on that --&amp;gt;New--&amp;gt;Junit Test Case ---&amp;gt;Select JUnit3 or JUnit4 Test --&amp;gt;Enter Class name ----&amp;gt;Click Finish.&lt;br /&gt;
Like in below screen shot&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh82me3D_M0xg5JA-h012vxVuURm8xzpDt7zwwSY8JL2d9mKu96aBVnbgb6tLr_BjI04QJAzDbBwJqWlk-XMbezYt2XO1_WQysICv793DgF5vxs7SkPvTRwSHBW8mI2h6hPMVCdMBSYbEg/s1600/eclipse3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh82me3D_M0xg5JA-h012vxVuURm8xzpDt7zwwSY8JL2d9mKu96aBVnbgb6tLr_BjI04QJAzDbBwJqWlk-XMbezYt2XO1_WQysICv793DgF5vxs7SkPvTRwSHBW8mI2h6hPMVCdMBSYbEg/s400/eclipse3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Expand Package--&amp;gt;One file name with .java extension will appear and scren will be appear like &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi27j_VvLg8el4OlnYaN6HCwbFhdum00jeKGsznt22SwQElRdrxFvH1skr1WzcrHyKndEKKNE36kbwQSftlkkPyDQIIuSK1XUUzLB96_nqdd7WiypkMQsEQNbFeXHap6j1OIduvrWhW9g0/s1600/eclipse4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi27j_VvLg8el4OlnYaN6HCwbFhdum00jeKGsznt22SwQElRdrxFvH1skr1WzcrHyKndEKKNE36kbwQSftlkkPyDQIIuSK1XUUzLB96_nqdd7WiypkMQsEQNbFeXHap6j1OIduvrWhW9g0/s400/eclipse4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Right click on Java File--&amp;gt;Got Build Path--&amp;gt; Configur Build Path--&amp;gt;Select Libriaries--&amp;gt;Click on Add External JARs--&amp;gt;Browse for Selenium Source files--&amp;gt;Select Jar files in seleniu-server folder and select jar files present in Selenium Set-up--&amp;gt;Selenium java-client driver&lt;br /&gt;
&lt;br /&gt;
Click OK. &lt;br /&gt;
&lt;br /&gt;
Now Eclipse is Successsfully Configured with Selenium RC. We can write selenium tests in Eclipse&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;If JUnit refernce files are not added to your project download JUnit jar file then Add this Jar file like above.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/9140502297474534272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/configuring-selenium-rc-with-eclipse.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/9140502297474534272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/9140502297474534272'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/configuring-selenium-rc-with-eclipse.html' title='Configuring Selenium RC with Eclipse using JUnit'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzzBd1Bs50ER5S3AWvGSQ5gATXQothhYMu6KNsIgZIIWxx1SLFTDbJggPoqN9G0bN7N4R3USLDIk9WSkcxU9mk8YAtlkVle-OX0f_QhsfTmSxCENUoyc9j8BHJNKrux-xUsBpNVedkduk/s72-c/eclipse1.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5499139872748921726.post-4491966513320170633</id><published>2011-11-01T15:37:00.000+05:30</published><updated>2011-11-01T15:37:08.460+05:30</updated><title type='text'>How to install TestNG Plugin in Eclipse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;By using following steps we can easily install TestNG plugin in Eclipse&lt;br /&gt;
&lt;br /&gt;
1. Go to Help---&amp;gt;Install Software&lt;br /&gt;
2. Click on Add button&lt;br /&gt;
3. One pop-up window opened with two text-fields :&amp;nbsp; Name and Location.&lt;br /&gt;
4. Enter TestNG for Name field&amp;nbsp; and Enter &lt;a href=&quot;http://beust.com/eclipse/&quot;&gt;http://beust.com/eclipse/&lt;/a&gt; into location field&lt;br /&gt;
5. Click OK .&lt;br /&gt;
&lt;br /&gt;
Select check boxes and click finish. After Successfull installation, we will see the TestNG Test option in&lt;br /&gt;
Run Menu--&amp;gt;RunAs--&amp;gt;TestNG Test.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://danjaneyulu.blogspot.com/feeds/4491966513320170633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/how-to-install-testng-plugin-in-eclipse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/4491966513320170633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5499139872748921726/posts/default/4491966513320170633'/><link rel='alternate' type='text/html' href='http://danjaneyulu.blogspot.com/2011/11/how-to-install-testng-plugin-in-eclipse.html' title='How to install TestNG Plugin in Eclipse'/><author><name>Anjaneyulu Desu</name><uri>http://www.blogger.com/profile/02436226216374101680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgols-QeNCp7mXOlmXUeELA-d2jm1ZUkMAObBU9BROkXLG1zQkUEMSWhmwsKBsD0Zm12AXQKBy9g9QWemOV9yLLK9RDsfy0KCAznYVWmAEYm0QiGiCXW5UeZT5rbznpJSE/s220/Anji1.jpg'/></author><thr:total>0</thr:total></entry></feed>