I am working on selenium 2.18.0 version with firefox 8.0.1.While executing script i am getting error like
15:52:07.342 INFO - Started HttpContext[/wd,/wd]
15:52:07.347 INFO - Started SocketListener on 0.0.0.0:5603
15:52:07.348 INFO - Started org.openqa.jetty.jetty.Server@33db4f6f
15:52:07.441 INFO - Preparing Firefox profile...
15:52:11.549 INFO - Launching Firefox...
15:52:15.106 INFO - Checking Resource aliases
15:52:17.008 INFO - Checking Resource aliases
15:52:17.012 INFO - Received posted results
15:52:17.558 INFO - Killing Firefox...
15:52:17.560 WARN - Firefox seems to have ended on its own (did we kill the real
browser???)
so i am not able to run script.
What can i do so that this error will resolve?
This is script i have generated by using IDE
<tr>
<td>open</td>
<td>http://www.gmail.com</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=Email</td>
<td>test</td>
</tr>
<tr>
<td>type</td>
<td>id=Passwd</td>
<td>test</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=signIn</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
<td>//div[@id=':oy']/div/div</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=to</td>
<td>test@test.com</td>
</tr>
<tr>
<td>type</td>
<td>name=subject</td>
<td>testSubject</td>
</tr>
<tr>
<td>type</td>
<td>css=body[class='editable LW-avf']</td>
<td>asdasd</td>
</tr>
<tr>
<td>keyPress</td>
<td>//div/b[text()='Send']</td>
<td>13</td>
</tr>
this is first time i am using selenium RC, may be something missed out by me, but i am not able to get that one
i tried with IE 8 getting same error i.e.19:20:40.586 WARN - Embedded iexplore seems to have ended on its own (did we kil l the real browser???)
done with export (java)
Java Code
package com.example.tests;
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class 123 extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://www.google.com/", "*chrome");
}
public void test123() throws Exception {
selenium.start();
selenium.open("http://www.gmail.com");
selenium.type("id=Email", "asd");
selenium.type("id=Passwd", "trest");
selenium.click("id=signIn");
selenium.waitForPageToLoad("30000");
selenium.clickAt("//div[@id=':oy']/div/div", "");
selenium.type("name=to", "test@test.com");
selenium.type("name=subject", "testSubject");
selenium.type("css=body[class='editable LW-avf']", "asdasd");
selenium.keyPress("//div/b[text()='Send']", "13");
}
}
15:52:17.558 INFO - Killing Firefox...
.