Note that there are some explanatory texts on larger screens.

plurals
  1. POSelenium - Could not start Selenium session: Failed to start new browser session: Error while launching browser
    primarykey
    data
    text
    <p>I am new to Selenium. I generated my first java selenium test case and it has compiled successfully. But when I run that test I got the following RuntimeException</p> <pre><code>java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser at com.thoughtworks.selenium.DefaultSelenium.start &lt;DefaultSelenium.java:88&gt; </code></pre> <p>Kindly tell me how can I fix this error.</p> <p>This is the java file I want to run. </p> <pre><code>import com.thoughtworks.selenium.*; import java.util.regex.Pattern; import junit.framework.*; public class orkut extends SeleneseTestCase { public void setUp() throws Exception { setUp("https://www.google.com/", "*chrome"); } public void testOrkut() throws Exception { selenium.setTimeout("10000"); selenium.open("/accounts/ServiceLogin?service=orkut&amp;hl=en-US&amp;rm=false&amp;continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin%3Fmsg%3D0&amp;cd=IN&amp;skipvpage=true&amp;sendvemail=false"); selenium.type("Email", "username"); selenium.type("Passwd", "password"); selenium.click("signIn"); selenium.selectFrame("orkutFrame"); selenium.click("link=Communities"); selenium.waitForPageToLoad("10000"); } public static Test suite() { return new TestSuite(orkut.class); } public void tearDown(){ selenium.stop(); } public static void main(String args[]) { junit.textui.TestRunner.run(suite()); } } </code></pre> <p>I first started the selenium server through the command prompt and then execute the above java file through another command prompt.</p> <p>Second Question: Can I do right click on a specified place on a webpage with selenium. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload