Hi all,
This is Sravani, hope you guys are doing well.
I am facing problem with the browsers chrome and safari, i have tried with *chrome, *googlechrome, *safari.
I am running the scripts on ubuntu 11.0 with selenium rc & junit. For firefox it was working fine.
But still i haven't get any solution for this issue. For Chrome I am getting issue that " Selenium Can't find the server at selenium-server. For Safari i am getting this issue
Got result: Failed to start new browser session: java.lang.RuntimeException: Safari could not be found in the path!
Please add the directory containing ''Safari'' to your PATH environment
variable, or explicitly specify a path to Safari like this:
*safari /blah/blah/Safari on session null
Could you guys help in this. I am sending the code for clear understanding. Here in the code itself i need to change something.
Please help in this...issue
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.server.SeleniumServer;
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.Selenium;
// First Scenario in Test Scenarios
public class Google_Login {
public SeleniumServer ss;
public Selenium selenium;
@Before
public void beforetest()throws Exception
{
ss=new SeleniumServer();
ss.start();
selenium = new DefaultSelenium("localhost",4444,"*
googlechrome","http://");
selenium.start();
}
@Test
public void testopenfacebookurl() throws Exception
{
selenium.open("
http://www.google.com");
selenium.windowMaximize();
selenium.type("gs_htif0","selenium");
selenium.click("gbqfba");
}
@After
public void aftertest()throws Exception
{
selenium.stop();
ss.stop();
}
}
Thanks a lot in Advance
--
Sravani.Boyapati