<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Selenium Remote Control For Java &#8212; A Tutorial (part 2)</title>
	<atom:link href="http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/</link>
	<description>A Zero Here, A One There</description>
	<lastBuildDate>Mon, 21 Jun 2010 12:27:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Suji</title>
		<link>http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/comment-page-1/#comment-3512</link>
		<dc:creator>Suji</dc:creator>
		<pubDate>Mon, 21 Jun 2010 12:27:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitmotif.com/selenium/selenium-remote-control-for-java-%e2%80%94-a-tutorial-part-2/#comment-3512</guid>
		<description>Hi, its a nice post but then i m getting few errors using assertEquals() which package do i need to import for to use this function. please help me out</description>
		<content:encoded><![CDATA[<p>Hi, its a nice post but then i m getting few errors using assertEquals() which package do i need to import for to use this function. please help me out</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon H</title>
		<link>http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/comment-page-1/#comment-3491</link>
		<dc:creator>Brandon H</dc:creator>
		<pubDate>Thu, 17 Jun 2010 20:44:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitmotif.com/selenium/selenium-remote-control-for-java-%e2%80%94-a-tutorial-part-2/#comment-3491</guid>
		<description>Thank you so much for this tutorial. I have been struggling for hours trying to figure out why Selenium#getText(String) wasn&#039;t returning the text in my TextArea. I finally found your tutorial and there was the answer! Using Selenium#getValue(String) gets the text. Thank you again!</description>
		<content:encoded><![CDATA[<p>Thank you so much for this tutorial. I have been struggling for hours trying to figure out why Selenium#getText(String) wasn&#8217;t returning the text in my TextArea. I finally found your tutorial and there was the answer! Using Selenium#getValue(String) gets the text. Thank you again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinay</title>
		<link>http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/comment-page-1/#comment-1585</link>
		<dc:creator>vinay</dc:creator>
		<pubDate>Tue, 06 Oct 2009 09:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitmotif.com/selenium/selenium-remote-control-for-java-%e2%80%94-a-tutorial-part-2/#comment-1585</guid>
		<description>Hi all,
can anyone help me sorting out this small piece of code,
the Selenium.click(&quot;link=User&quot;);
is not working


import com.thoughtworks.selenium.*;

import org.testng.annotations.Test;
import static org.testng.Assert.*;
import java.util.regex.Pattern;
public class testNG01 extends SeleneseTestNgHelper 
          {
	  @Test public void testtestNG01() throws Exception
          {
		  selenium = new DefaultSelenium(&quot;localhost&quot;,
		             4444, &quot;*iexplore&quot;, &quot;http://192.168.5.211/login.php&quot;);
		  selenium.start();
	selenium.open(&quot;//login.php&quot;);
	selenium.type(&quot;uname&quot;, &quot;admin&quot;);
    selenium.type(&quot;pword&quot;, &quot;password&quot;);
    selenium.click(&quot;//input[@value=&#039;Submit&#039;]&quot;);
	selenium.waitForPageToLoad(&quot;30000&quot;);
	selenium.click(&quot;link=User&quot;);
           }
           }</description>
		<content:encoded><![CDATA[<p>Hi all,<br />
can anyone help me sorting out this small piece of code,<br />
the Selenium.click(&#8220;link=User&#8221;);<br />
is not working</p>
<p>import com.thoughtworks.selenium.*;</p>
<p>import org.testng.annotations.Test;<br />
import static org.testng.Assert.*;<br />
import java.util.regex.Pattern;<br />
public class testNG01 extends SeleneseTestNgHelper<br />
          {<br />
	  @Test public void testtestNG01() throws Exception<br />
          {<br />
		  selenium = new DefaultSelenium(&#8220;localhost&#8221;,<br />
		             4444, &#8220;*iexplore&#8221;, &#8220;http://192.168.5.211/login.php&#8221;);<br />
		  selenium.start();<br />
	selenium.open(&#8220;//login.php&#8221;);<br />
	selenium.type(&#8220;uname&#8221;, &#8220;admin&#8221;);<br />
    selenium.type(&#8220;pword&#8221;, &#8220;password&#8221;);<br />
    selenium.click(&#8220;//input[@value='Submit']&#8220;);<br />
	selenium.waitForPageToLoad(&#8220;30000&#8243;);<br />
	selenium.click(&#8220;link=User&#8221;);<br />
           }<br />
           }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/comment-page-1/#comment-1358</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Mon, 22 Jun 2009 07:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitmotif.com/selenium/selenium-remote-control-for-java-%e2%80%94-a-tutorial-part-2/#comment-1358</guid>
		<description>Hi,
I&#039;m facing a problem with deleting an entry from a list of checkboxes.
I checked the source for that particular entry of mine on Firefox and found this:

&lt;a href=&quot;/um/ConfigDomains.do?ctrl=domains&amp;action=Drilldown&amp;param=1&quot; rel=&quot;nofollow&quot;&gt;NewDomain

My checkbox is listed dynamically among other checkboxes, and it&#039;s order can be found out in the value of name attribute as %3Brow%3D1%. So this says that it&#039;s in 1st row. But if some other entry/checkbox occupies the first row, my test case fails.
I only know of the name that is inserted in between span tags, i.e. &quot;New Domain&quot;.

How do I make my test case intelligent enough to find the span name, i.e. &quot;New Domain&quot; and check it&#039;s related checkbox.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m facing a problem with deleting an entry from a list of checkboxes.<br />
I checked the source for that particular entry of mine on Firefox and found this:</p>
<p><a href="/um/ConfigDomains.do?ctrl=domains&amp;action=Drilldown&amp;param=1" rel="nofollow">NewDomain</p>
<p>My checkbox is listed dynamically among other checkboxes, and it&#8217;s order can be found out in the value of name attribute as %3Brow%3D1%. So this says that it&#8217;s in 1st row. But if some other entry/checkbox occupies the first row, my test case fails.<br />
I only know of the name that is inserted in between span tags, i.e. &#8220;New Domain&#8221;.</p>
<p>How do I make my test case intelligent enough to find the span name, i.e. &#8220;New Domain&#8221; and check it&#8217;s related checkbox.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/comment-page-1/#comment-841</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Fri, 13 Mar 2009 20:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitmotif.com/selenium/selenium-remote-control-for-java-%e2%80%94-a-tutorial-part-2/#comment-841</guid>
		<description>Hi

Take a look on Simplium which is a framework based on JUnit 4.5 and Selenium Remote Control. It aids the writing and executing of test cases.

http://simplium.sektor.se

/Markus</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Take a look on Simplium which is a framework based on JUnit 4.5 and Selenium Remote Control. It aids the writing and executing of test cases.</p>
<p><a href="http://simplium.sektor.se" rel="nofollow">http://simplium.sektor.se</a></p>
<p>/Markus</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anwarul</title>
		<link>http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/comment-page-1/#comment-399</link>
		<dc:creator>Anwarul</dc:creator>
		<pubDate>Fri, 31 Oct 2008 17:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitmotif.com/selenium/selenium-remote-control-for-java-%e2%80%94-a-tutorial-part-2/#comment-399</guid>
		<description>Hi
Can you give an example to test and XML file? I have a page wich opens up an xml file in the bowser. Now i need to test that page to see if the xml file has opened correctly or not. please help</description>
		<content:encoded><![CDATA[<p>Hi<br />
Can you give an example to test and XML file? I have a page wich opens up an xml file in the bowser. Now i need to test that page to see if the xml file has opened correctly or not. please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prashant jaiswal</title>
		<link>http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/comment-page-1/#comment-398</link>
		<dc:creator>prashant jaiswal</dc:creator>
		<pubDate>Thu, 30 Oct 2008 15:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitmotif.com/selenium/selenium-remote-control-for-java-%e2%80%94-a-tutorial-part-2/#comment-398</guid>
		<description>If we have 2 methods and second method &quot;depends on&quot; first method.can we pass arguments from method 1 to method 2?</description>
		<content:encoded><![CDATA[<p>If we have 2 methods and second method &#8220;depends on&#8221; first method.can we pass arguments from method 1 to method 2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cong Nguyen</title>
		<link>http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/comment-page-1/#comment-375</link>
		<dc:creator>Cong Nguyen</dc:creator>
		<pubDate>Thu, 16 Oct 2008 09:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitmotif.com/selenium/selenium-remote-control-for-java-%e2%80%94-a-tutorial-part-2/#comment-375</guid>
		<description>Hi all,
I have now a trouble with config and start selenium-java-client-driver
Please help me the step by step in details to deal it.
Thanks</description>
		<content:encoded><![CDATA[<p>Hi all,<br />
I have now a trouble with config and start selenium-java-client-driver<br />
Please help me the step by step in details to deal it.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alok</title>
		<link>http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/comment-page-1/#comment-220</link>
		<dc:creator>Alok</dc:creator>
		<pubDate>Fri, 01 Aug 2008 06:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitmotif.com/selenium/selenium-remote-control-for-java-%e2%80%94-a-tutorial-part-2/#comment-220</guid>
		<description>Hi,

I am trying to open a web browser using selenium. i had written a small script but it gives he following exceptions.

Exception in thread “main” com.thoughtworks.selenium.SeleniumException:
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandP
rocessor.java:73)
at com.thoughtworks.selenium.DefaultSelenium.open(DefaultSelenium.java:2
22)
at Auto.loginsuccess(Auto.java:20)
at Auto.main(Auto.java:40)

The program is :

import com.thoughtworks.selenium.*;
import java.io.*;

import junit.framework.*;
import java.util.regex.Pattern;
import java.util.ArrayList;

public class Auto extends TestCase {
private Selenium browser;

public void setUp(){
browser=new DefaultSelenium(”localhost”,4444,”*firefox”,”http://localhost:8080″);
browser.start();

public void loginsuccess(){
Result.add(”CHECKING LOGINSUCCESS:TEST CASE 1″);
browser.open(”mail.do”);
browser.type(”user”, “admin”);
browser.type(”passwd”, “admin123″);
browser.click(”//input[@value=’Log On’]”);
browser.waitForPageToLoad(”500000″);
if(browser.isTextPresent(”Logged on as:

admin (Edit Profile)”))
Result.add(”Login Successful.”);
else
Result.add(”Login Unsuccessful.”);

}

public static void main(String[] args) throws

InterruptedException{

Auto test=new Auto();
test.setUp();
test.loginsuccess();
}

i am stuck up and i am not able to identify the error.
please reply on my mail

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am trying to open a web browser using selenium. i had written a small script but it gives he following exceptions.</p>
<p>Exception in thread “main” com.thoughtworks.selenium.SeleniumException:<br />
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandP<br />
rocessor.java:73)<br />
at com.thoughtworks.selenium.DefaultSelenium.open(DefaultSelenium.java:2<br />
22)<br />
at Auto.loginsuccess(Auto.java:20)<br />
at Auto.main(Auto.java:40)</p>
<p>The program is :</p>
<p>import com.thoughtworks.selenium.*;<br />
import java.io.*;</p>
<p>import junit.framework.*;<br />
import java.util.regex.Pattern;<br />
import java.util.ArrayList;</p>
<p>public class Auto extends TestCase {<br />
private Selenium browser;</p>
<p>public void setUp(){<br />
browser=new DefaultSelenium(”localhost”,4444,”*firefox”,”http://localhost:8080″);<br />
browser.start();</p>
<p>public void loginsuccess(){<br />
Result.add(”CHECKING LOGINSUCCESS:TEST CASE 1″);<br />
browser.open(”mail.do”);<br />
browser.type(”user”, “admin”);<br />
browser.type(”passwd”, “admin123″);<br />
browser.click(”//input[@value=’Log On’]”);<br />
browser.waitForPageToLoad(”500000″);<br />
if(browser.isTextPresent(”Logged on as:</p>
<p>admin (Edit Profile)”))<br />
Result.add(”Login Successful.”);<br />
else<br />
Result.add(”Login Unsuccessful.”);</p>
<p>}</p>
<p>public static void main(String[] args) throws</p>
<p>InterruptedException{</p>
<p>Auto test=new Auto();<br />
test.setUp();<br />
test.loginsuccess();<br />
}</p>
<p>i am stuck up and i am not able to identify the error.<br />
please reply on my mail</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Extend Selenium RC by means of .getEval method &#171; Kostas Mamalis blog</title>
		<link>http://www.bitmotif.com/selenium/selenium-remote-control-for-java-a-tutorial-part-2/comment-page-1/#comment-209</link>
		<dc:creator>Extend Selenium RC by means of .getEval method &#171; Kostas Mamalis blog</dc:creator>
		<pubDate>Tue, 15 Jul 2008 11:49:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitmotif.com/selenium/selenium-remote-control-for-java-%e2%80%94-a-tutorial-part-2/#comment-209</guid>
		<description>[...] If we place this in the test class we created in a previous tutorial and run it, we should see a green bar. Pretty cool, eh? [...]</description>
		<content:encoded><![CDATA[<p>[...] If we place this in the test class we created in a previous tutorial and run it, we should see a green bar. Pretty cool, eh? [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
