Hello,

I am using selenium RC. I have given firefox browser in my script.
When I run it, it automatically opens IE and gives script error - couldn't
open app window, is the pop up blocker enabled?

I have tried it using command - java -jar
selenium-server-standalone-2.25.0.jar
-firefoxProfileTemplate"C:\Users\minal_ghodake\AppData\Roaming\Mozilla\Firefox\Profiles\fe1z3n1k.TestSelenium"
but still not working.

Please help.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/NB1sAIEzNOoJ.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Krishnamurthy Govula at Nov 2, 2012 at 10:46 am
    IE -> go to tools -> option.

    click on security tab
    uncheck the "enable protected mode" check
    and click on apply and ok .

    Its runs in IE successfully.
    On Fri, Nov 2, 2012 at 3:00 PM, Minal Ghodake wrote:

    Hello,

    I am using selenium RC. I have given firefox browser in my script.
    When I run it, it automatically opens IE and gives script error - couldn't
    open app window, is the pop up blocker enabled?

    I have tried it using command - java -jar
    selenium-server-standalone-2.25.0.jar
    -firefoxProfileTemplate"C:\Users\minal_ghodake\AppData\Roaming\Mozilla\Firefox\Profiles\fe1z3n1k.TestSelenium"
    but still not working.

    Please help.

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/NB1sAIEzNOoJ.
    For more options, visit https://groups.google.com/groups/opt_out.



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Akhil shukla at Nov 3, 2012 at 4:03 pm
    Please help me to solve my Timedout problem,,,,,I fed up to solve and
    try all tricks available on net but failed each time.I
    am desperately looking for assistance....


    package script;



    import static org.junit.Assert.assertTrue;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;

    import com.thoughtworks.selenium.DefaultSelenium;
    import com.thoughtworks.selenium.Selenium;

    public class Yahoo {

             Selenium selenium;
             @Before
             public void setUp() throws Exception {
                     selenium = new DefaultSelenium("localhost", 4546,
    "*googlechrome",
    "http://in.yahoo.com/<http://www.google.com/url?q=http%3A%2F%2Fin.yahoo.com%2F&sa=D&sntz=1&usg=AFQjCNHBYMJziWF0GZQumdVUa-4wYH3BEg>
    ");

                     selenium.start();
                     selenium.open("/?p=us");
                     selenium.setTimeout("120000");
                     selenium.windowMaximize();
                     selenium.windowFocus();
             }

             @Test
             public void testYahoo() throws Exception {
                     selenium.open("/?p=us");
                     selenium.type("id=p_13838465-p", "cricket");
                     selenium.click("id=search-submit");
                     selenium.waitForPageToLoad("120000");
                     assertTrue(selenium.isTextPresent("cricket score,live
    cricket,cricket world cup 2011,cricket games,ipl cricket 2012,yahoo
    cricket,cricket news,cricket india vs pakistan,stick cricket,cricket
    phonesMore..."));
             }

             @After
             public void tearDown() throws Exception {
                     selenium.stop();
             }
    }





    com.thoughtworks.selenium.SeleniumException: Timed out after 30000ms
             at com.thoughtworks.selenium.HttpCommandProcessor.
    throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:112)
             at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(
    HttpCommandProcessor.java:106)
             at com.thoughtworks.selenium.DefaultSelenium.open(
    DefaultSelenium.java:369)
             at script.Yahoo.setUp(Yahoo.java:20)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(
    NativeMethodAccessorImpl.java:57)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    DelegatingMethodAccessorImpl.java:43)
             at java.lang.reflect.Method.invoke(Method.java:601)
             at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
    FrameworkMethod.java:45)
             at org.junit.internal.runners.model.ReflectiveCallable.run(
    ReflectiveCallable.java:15)
             at org.junit.runners.model.FrameworkMethod.invokeExplosively(
    FrameworkMethod.java:42)
             at org.junit.internal.runners.statements.RunBefores.
    evaluate(RunBefores.java:27)
             at org.junit.internal.runners.statements.RunAfters.evaluate(
    RunAfters.java:30)
             at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
             at org.junit.runners.BlockJUnit4ClassRunner.runChild(
    BlockJUnit4ClassRunner.java:68)
             at org.junit.runners.BlockJUnit4ClassRunner.runChild(
    BlockJUnit4ClassRunner.java:47)
             at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
             at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
             at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
             at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
             at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
             at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
             at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(
    JUnit4TestReference.java:50)
             at org.eclipse.jdt.internal.junit.runner.TestExecution.
    run(TestExecution.java:38)
             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.
    runTests(RemoteTestRunner.java:467)
             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.
    runTests(RemoteTestRunner.java:683)
             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.
    run(RemoteTestRunner.java:390)
             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.
    main(RemoteTestRunner.java:197
    On Friday, 2 November 2012 16:16:35 UTC+5:30, krishna wrote:

    IE -> go to tools -> option.

    click on security tab
    uncheck the "enable protected mode" check
    and click on apply and ok .

    Its runs in IE successfully.

    On Fri, Nov 2, 2012 at 3:00 PM, Minal Ghodake <mins.g...@gmail.com<javascript:>
    wrote:
    Hello,

    I am using selenium RC. I have given firefox browser in my script.
    When I run it, it automatically opens IE and gives script error -
    couldn't open app window, is the pop up blocker enabled?

    I have tried it using command - java -jar
    selenium-server-standalone-2.25.0.jar
    -firefoxProfileTemplate"C:\Users\minal_ghodake\AppData\Roaming\Mozilla\Firefox\Profiles\fe1z3n1k.TestSelenium"
    but still not working.

    Please help.

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.com<javascript:>
    .
    To unsubscribe from this group, send email to
    selenium-user...@googlegroups.com <javascript:>.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/NB1sAIEzNOoJ.
    For more options, visit https://groups.google.com/groups/opt_out.



    --
    Thanks & Regards
    Krishna Murthy G
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/3BUNcjS7wKgJ.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Krishnamurthy Govula at Nov 5, 2012 at 3:51 am
    If u r using selenium Rc just click on pop-up window button, in web driver
    and TestNg automatically pop-up works.
    On Sat, Nov 3, 2012 at 7:25 PM, akhil shukla wrote:

    Please help me to solve my Timedout problem,,,,,I fed up to solve and
    try all tricks available on net but failed each time.I
    am desperately looking for assistance....


    package script;



    import static org.junit.Assert.assertTrue;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;

    import com.thoughtworks.selenium.**DefaultSelenium;
    import com.thoughtworks.selenium.**Selenium;

    public class Yahoo {

    Selenium selenium;
    @Before
    public void setUp() throws Exception {
    selenium = new DefaultSelenium("localhost", 4546,
    "*googlechrome",
    "http://in.yahoo.com/<http://www.google.com/url?q=http%3A%2F%2Fin.yahoo.com%2F&sa=D&sntz=1&usg=AFQjCNHBYMJziWF0GZQumdVUa-4wYH3BEg>
    ");

    selenium.start();
    selenium.open("/?p=us");
    selenium.setTimeout("120000");
    selenium.windowMaximize();
    selenium.windowFocus();
    }

    @Test
    public void testYahoo() throws Exception {
    selenium.open("/?p=us");
    selenium.type("id=p_13838465-**p", "cricket");
    selenium.click("id=search-**submit");
    selenium.waitForPageToLoad("**120000");
    assertTrue(selenium.**isTextPresent("cricket score,live
    cricket,cricket world cup 2011,cricket games,ipl cricket 2012,yahoo
    cricket,cricket news,cricket india vs pakistan,stick cricket,cricket
    phonesMore..."));
    }

    @After
    public void tearDown() throws Exception {
    selenium.stop();
    }
    }





    com.thoughtworks.selenium.**SeleniumException: Timed out after 30000ms
    at com.thoughtworks.selenium.**HttpCommandProcessor.**
    throwAssertionFailureException**OrError(HttpCommandProcessor.**java:112)
    at com.thoughtworks.selenium.**HttpCommandProcessor.**doCommand(**
    HttpCommandProcessor.java:106)
    at com.thoughtworks.selenium.**DefaultSelenium.open(**
    DefaultSelenium.java:369)
    at script.Yahoo.setUp(Yahoo.java:**20)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
    NativeMethodAccessorImpl.java:**57)
    at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
    DelegatingMethodAccessorImpl.**java:43)
    at java.lang.reflect.Method.**invoke(Method.java:601)
    at org.junit.runners.model.**FrameworkMethod$1.**
    runReflectiveCall(**FrameworkMethod.java:45)
    at org.junit.internal.runners.**model.ReflectiveCallable.run(**
    ReflectiveCallable.java:15)
    at org.junit.runners.model.**FrameworkMethod.**invokeExplosively(*
    *FrameworkMethod.java:42)
    at org.junit.internal.runners.**statements.RunBefores.**
    evaluate(RunBefores.java:27)
    at org.junit.internal.runners.**statements.RunAfters.evaluate(**
    RunAfters.java:30)
    at org.junit.runners.**ParentRunner.runLeaf(**
    ParentRunner.java:263)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**68)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**47)
    at org.junit.runners.**ParentRunner$3.run(**ParentRunner.java:231)
    at org.junit.runners.**ParentRunner$1.schedule(**
    ParentRunner.java:60)
    at org.junit.runners.**ParentRunner.runChildren(**
    ParentRunner.java:229)
    at org.junit.runners.**ParentRunner.access$000(**
    ParentRunner.java:50)
    at org.junit.runners.**ParentRunner$2.evaluate(**
    ParentRunner.java:222)
    at org.junit.runners.**ParentRunner.run(ParentRunner.**java:300)
    at org.eclipse.jdt.internal.**junit4.runner.**
    JUnit4TestReference.run(**JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.**junit.runner.TestExecution.**
    run(TestExecution.java:38)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:467)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:683)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    main(RemoteTestRunner.java:**197

    On Friday, 2 November 2012 16:16:35 UTC+5:30, krishna wrote:

    IE -> go to tools -> option.

    click on security tab
    uncheck the "enable protected mode" check
    and click on apply and ok .

    Its runs in IE successfully.
    On Fri, Nov 2, 2012 at 3:00 PM, Minal Ghodake wrote:

    Hello,

    I am using selenium RC. I have given firefox browser in my script.
    When I run it, it automatically opens IE and gives script error -
    couldn't open app window, is the pop up blocker enabled?

    I have tried it using command - java -jar selenium-server-standalone-2.*
    *25.0.jar -firefoxProfileTemplate"C:\**Users\minal_ghodake\AppData\**
    Roaming\Mozilla\Firefox\**Profiles\fe1z3n1k.**TestSelenium"
    but still not working.

    Please help.

    --
    You received this message because you are subscribed to the Google
    Groups "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.**com.
    To unsubscribe from this group, send email to selenium-user...@**
    googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/**
    msg/selenium-users/-/**NB1sAIEzNOoJ<https://groups.google.com/d/msg/selenium-users/-/NB1sAIEzNOoJ>
    .
    For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
    .



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/3BUNcjS7wKgJ.

    For more options, visit https://groups.google.com/groups/opt_out.



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Akhil shukla at Nov 5, 2012 at 11:13 am
    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
      at org.junit.Assert.fail(Assert.java:92)
      at org.junit.Assert.assertTrue(Assert.java:43)
      at org.junit.Assert.assertTrue(Assert.java:54)
      at webDriver.Yahoo.testYahoo(Yahoo.java:29)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    On 11/5/12, Krishnamurthy Govula wrote:
    If u r using selenium Rc just click on pop-up window button, in web driver
    and TestNg automatically pop-up works.

    On Sat, Nov 3, 2012 at 7:25 PM, akhil shukla
    wrote:
    Please help me to solve my Timedout problem,,,,,I fed up to solve and
    try all tricks available on net but failed each time.I
    am desperately looking for assistance....


    package script;



    import static org.junit.Assert.assertTrue;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;

    import com.thoughtworks.selenium.**DefaultSelenium;
    import com.thoughtworks.selenium.**Selenium;

    public class Yahoo {

    Selenium selenium;
    @Before
    public void setUp() throws Exception {
    selenium = new DefaultSelenium("localhost", 4546,
    "*googlechrome",
    "http://in.yahoo.com/<http://www.google.com/url?q=http%3A%2F%2Fin.yahoo.com%2F&sa=D&sntz=1&usg=AFQjCNHBYMJziWF0GZQumdVUa-4wYH3BEg>
    ");

    selenium.start();
    selenium.open("/?p=us");
    selenium.setTimeout("120000");
    selenium.windowMaximize();
    selenium.windowFocus();
    }

    @Test
    public void testYahoo() throws Exception {
    selenium.open("/?p=us");
    selenium.type("id=p_13838465-**p", "cricket");
    selenium.click("id=search-**submit");
    selenium.waitForPageToLoad("**120000");
    assertTrue(selenium.**isTextPresent("cricket score,live
    cricket,cricket world cup 2011,cricket games,ipl cricket 2012,yahoo
    cricket,cricket news,cricket india vs pakistan,stick cricket,cricket
    phonesMore..."));
    }

    @After
    public void tearDown() throws Exception {
    selenium.stop();
    }
    }





    com.thoughtworks.selenium.**SeleniumException: Timed out after 30000ms
    at com.thoughtworks.selenium.**HttpCommandProcessor.**
    throwAssertionFailureException**OrError(HttpCommandProcessor.**java:112)
    at
    com.thoughtworks.selenium.**HttpCommandProcessor.**doCommand(**
    HttpCommandProcessor.java:106)
    at com.thoughtworks.selenium.**DefaultSelenium.open(**
    DefaultSelenium.java:369)
    at script.Yahoo.setUp(Yahoo.java:**20)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native
    Method)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
    NativeMethodAccessorImpl.java:**57)
    at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
    DelegatingMethodAccessorImpl.**java:43)
    at java.lang.reflect.Method.**invoke(Method.java:601)
    at org.junit.runners.model.**FrameworkMethod$1.**
    runReflectiveCall(**FrameworkMethod.java:45)
    at org.junit.internal.runners.**model.ReflectiveCallable.run(**
    ReflectiveCallable.java:15)
    at
    org.junit.runners.model.**FrameworkMethod.**invokeExplosively(*
    *FrameworkMethod.java:42)
    at org.junit.internal.runners.**statements.RunBefores.**
    evaluate(RunBefores.java:27)
    at org.junit.internal.runners.**statements.RunAfters.evaluate(**
    RunAfters.java:30)
    at org.junit.runners.**ParentRunner.runLeaf(**
    ParentRunner.java:263)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**68)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**47)
    at
    org.junit.runners.**ParentRunner$3.run(**ParentRunner.java:231)
    at org.junit.runners.**ParentRunner$1.schedule(**
    ParentRunner.java:60)
    at org.junit.runners.**ParentRunner.runChildren(**
    ParentRunner.java:229)
    at org.junit.runners.**ParentRunner.access$000(**
    ParentRunner.java:50)
    at org.junit.runners.**ParentRunner$2.evaluate(**
    ParentRunner.java:222)
    at org.junit.runners.**ParentRunner.run(ParentRunner.**java:300)
    at org.eclipse.jdt.internal.**junit4.runner.**
    JUnit4TestReference.run(**JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.**junit.runner.TestExecution.**
    run(TestExecution.java:38)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:467)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:683)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    main(RemoteTestRunner.java:**197

    On Friday, 2 November 2012 16:16:35 UTC+5:30, krishna wrote:

    IE -> go to tools -> option.

    click on security tab
    uncheck the "enable protected mode" check
    and click on apply and ok .

    Its runs in IE successfully.

    On Fri, Nov 2, 2012 at 3:00 PM, Minal Ghodake
    wrote:
    Hello,

    I am using selenium RC. I have given firefox browser in my script.
    When I run it, it automatically opens IE and gives script error -
    couldn't open app window, is the pop up blocker enabled?

    I have tried it using command - java -jar
    selenium-server-standalone-2.*
    *25.0.jar -firefoxProfileTemplate"C:\**Users\minal_ghodake\AppData\**
    Roaming\Mozilla\Firefox\**Profiles\fe1z3n1k.**TestSelenium"
    but still not working.

    Please help.

    --
    You received this message because you are subscribed to the Google
    Groups "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.**com.
    To unsubscribe from this group, send email to selenium-user...@**
    googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/**
    msg/selenium-users/-/**NB1sAIEzNOoJ<https://groups.google.com/d/msg/selenium-users/-/NB1sAIEzNOoJ>
    .
    For more options, visit
    https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
    .



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/3BUNcjS7wKgJ.

    For more options, visit https://groups.google.com/groups/opt_out.



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Krishnamurthy Govula at Nov 5, 2012 at 11:16 am
    try this one
      selenium.open("/");
    On Mon, Nov 5, 2012 at 4:42 PM, akhil shukla wrote:

    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
    at org.junit.Assert.fail(Assert.java:92)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.junit.Assert.assertTrue(Assert.java:54)
    at webDriver.Yahoo.testYahoo(Yahoo.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
    org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    On 11/5/12, Krishnamurthy Govula wrote:
    If u r using selenium Rc just click on pop-up window button, in web driver
    and TestNg automatically pop-up works.

    On Sat, Nov 3, 2012 at 7:25 PM, akhil shukla
    wrote:
    Please help me to solve my Timedout problem,,,,,I fed up to solve and
    try all tricks available on net but failed each time.I
    am desperately looking for assistance....


    package script;



    import static org.junit.Assert.assertTrue;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;

    import com.thoughtworks.selenium.**DefaultSelenium;
    import com.thoughtworks.selenium.**Selenium;

    public class Yahoo {

    Selenium selenium;
    @Before
    public void setUp() throws Exception {
    selenium = new DefaultSelenium("localhost", 4546,
    "*googlechrome",
    "http://in.yahoo.com/<
    http://www.google.com/url?q=http%3A%2F%2Fin.yahoo.com%2F&sa=D&sntz=1&usg=AFQjCNHBYMJziWF0GZQumdVUa-4wYH3BEg
    ");

    selenium.start();
    selenium.open("/?p=us");
    selenium.setTimeout("120000");
    selenium.windowMaximize();
    selenium.windowFocus();
    }

    @Test
    public void testYahoo() throws Exception {
    selenium.open("/?p=us");
    selenium.type("id=p_13838465-**p", "cricket");
    selenium.click("id=search-**submit");
    selenium.waitForPageToLoad("**120000");
    assertTrue(selenium.**isTextPresent("cricket score,live
    cricket,cricket world cup 2011,cricket games,ipl cricket 2012,yahoo
    cricket,cricket news,cricket india vs pakistan,stick cricket,cricket
    phonesMore..."));
    }

    @After
    public void tearDown() throws Exception {
    selenium.stop();
    }
    }





    com.thoughtworks.selenium.**SeleniumException: Timed out after 30000ms
    at com.thoughtworks.selenium.**HttpCommandProcessor.**
    throwAssertionFailureException**OrError(HttpCommandProcessor.**java:112)
    at
    com.thoughtworks.selenium.**HttpCommandProcessor.**doCommand(**
    HttpCommandProcessor.java:106)
    at com.thoughtworks.selenium.**DefaultSelenium.open(**
    DefaultSelenium.java:369)
    at script.Yahoo.setUp(Yahoo.java:**20)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native
    Method)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
    NativeMethodAccessorImpl.java:**57)
    at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
    DelegatingMethodAccessorImpl.**java:43)
    at java.lang.reflect.Method.**invoke(Method.java:601)
    at org.junit.runners.model.**FrameworkMethod$1.**
    runReflectiveCall(**FrameworkMethod.java:45)
    at org.junit.internal.runners.**model.ReflectiveCallable.run(**
    ReflectiveCallable.java:15)
    at
    org.junit.runners.model.**FrameworkMethod.**invokeExplosively(*
    *FrameworkMethod.java:42)
    at org.junit.internal.runners.**statements.RunBefores.**
    evaluate(RunBefores.java:27)
    at org.junit.internal.runners.**statements.RunAfters.evaluate(**
    RunAfters.java:30)
    at org.junit.runners.**ParentRunner.runLeaf(**
    ParentRunner.java:263)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**68)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**47)
    at
    org.junit.runners.**ParentRunner$3.run(**ParentRunner.java:231)
    at org.junit.runners.**ParentRunner$1.schedule(**
    ParentRunner.java:60)
    at org.junit.runners.**ParentRunner.runChildren(**
    ParentRunner.java:229)
    at org.junit.runners.**ParentRunner.access$000(**
    ParentRunner.java:50)
    at org.junit.runners.**ParentRunner$2.evaluate(**
    ParentRunner.java:222)
    at org.junit.runners.**ParentRunner.run(ParentRunner.**java:300)
    at org.eclipse.jdt.internal.**junit4.runner.**
    JUnit4TestReference.run(**JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.**junit.runner.TestExecution.**
    run(TestExecution.java:38)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:467)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:683)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    main(RemoteTestRunner.java:**197

    On Friday, 2 November 2012 16:16:35 UTC+5:30, krishna wrote:

    IE -> go to tools -> option.

    click on security tab
    uncheck the "enable protected mode" check
    and click on apply and ok .

    Its runs in IE successfully.

    On Fri, Nov 2, 2012 at 3:00 PM, Minal Ghodake
    wrote:
    Hello,

    I am using selenium RC. I have given firefox browser in my script.
    When I run it, it automatically opens IE and gives script error -
    couldn't open app window, is the pop up blocker enabled?

    I have tried it using command - java -jar
    selenium-server-standalone-2.*
    *25.0.jar -firefoxProfileTemplate"C:\**Users\minal_ghodake\AppData\**
    Roaming\Mozilla\Firefox\**Profiles\fe1z3n1k.**TestSelenium"
    but still not working.

    Please help.

    --
    You received this message because you are subscribed to the Google
    Groups "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.**com.
    To unsubscribe from this group, send email to selenium-user...@**
    googlegroups.com.

    To view this discussion on the web visit
    https://groups.google.com/d/**
    msg/selenium-users/-/**NB1sAIEzNOoJ<
    https://groups.google.com/d/msg/selenium-users/-/NB1sAIEzNOoJ>
    https://groups.google.com/groups/opt_out>
    .



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/3BUNcjS7wKgJ.

    For more options, visit https://groups.google.com/groups/opt_out.



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Akhil shukla at Nov 5, 2012 at 11:19 am
    throwing same error...

    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
      at org.junit.Assert.fail(Assert.java:92)
      at org.junit.Assert.assertTrue(Assert.java:43)
      at org.junit.Assert.assertTrue(Assert.java:54)
      at webDriver.Yahoo.testYahoo(Yahoo.java:29)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    On 11/5/12, Krishnamurthy Govula wrote:
    try this one
    selenium.open("/");

    On Mon, Nov 5, 2012 at 4:42 PM, akhil shukla
    wrote:
    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
    at org.junit.Assert.fail(Assert.java:92)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.junit.Assert.assertTrue(Assert.java:54)
    at webDriver.Yahoo.testYahoo(Yahoo.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at
    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at
    org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at
    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
    org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)


    On 11/5/12, Krishnamurthy Govula <krishnamurthy.govula@sevyait.com>
    wrote:
    If u r using selenium Rc just click on pop-up window button, in web driver
    and TestNg automatically pop-up works.

    On Sat, Nov 3, 2012 at 7:25 PM, akhil shukla
    wrote:
    Please help me to solve my Timedout problem,,,,,I fed up to solve and
    try all tricks available on net but failed each time.I
    am desperately looking for assistance....


    package script;



    import static org.junit.Assert.assertTrue;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;

    import com.thoughtworks.selenium.**DefaultSelenium;
    import com.thoughtworks.selenium.**Selenium;

    public class Yahoo {

    Selenium selenium;
    @Before
    public void setUp() throws Exception {
    selenium = new DefaultSelenium("localhost", 4546,
    "*googlechrome",
    "http://in.yahoo.com/<
    http://www.google.com/url?q=http%3A%2F%2Fin.yahoo.com%2F&sa=D&sntz=1&usg=AFQjCNHBYMJziWF0GZQumdVUa-4wYH3BEg
    ");

    selenium.start();
    selenium.open("/?p=us");
    selenium.setTimeout("120000");
    selenium.windowMaximize();
    selenium.windowFocus();
    }

    @Test
    public void testYahoo() throws Exception {
    selenium.open("/?p=us");
    selenium.type("id=p_13838465-**p", "cricket");
    selenium.click("id=search-**submit");
    selenium.waitForPageToLoad("**120000");
    assertTrue(selenium.**isTextPresent("cricket
    score,live
    cricket,cricket world cup 2011,cricket games,ipl cricket 2012,yahoo
    cricket,cricket news,cricket india vs pakistan,stick cricket,cricket
    phonesMore..."));
    }

    @After
    public void tearDown() throws Exception {
    selenium.stop();
    }
    }





    com.thoughtworks.selenium.**SeleniumException: Timed out after 30000ms
    at com.thoughtworks.selenium.**HttpCommandProcessor.**
    throwAssertionFailureException**OrError(HttpCommandProcessor.**java:112)
    at
    com.thoughtworks.selenium.**HttpCommandProcessor.**doCommand(**
    HttpCommandProcessor.java:106)
    at com.thoughtworks.selenium.**DefaultSelenium.open(**
    DefaultSelenium.java:369)
    at script.Yahoo.setUp(Yahoo.java:**20)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native
    Method)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
    NativeMethodAccessorImpl.java:**57)
    at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
    DelegatingMethodAccessorImpl.**java:43)
    at java.lang.reflect.Method.**invoke(Method.java:601)
    at org.junit.runners.model.**FrameworkMethod$1.**
    runReflectiveCall(**FrameworkMethod.java:45)
    at
    org.junit.internal.runners.**model.ReflectiveCallable.run(**
    ReflectiveCallable.java:15)
    at
    org.junit.runners.model.**FrameworkMethod.**invokeExplosively(*
    *FrameworkMethod.java:42)
    at org.junit.internal.runners.**statements.RunBefores.**
    evaluate(RunBefores.java:27)
    at
    org.junit.internal.runners.**statements.RunAfters.evaluate(**
    RunAfters.java:30)
    at org.junit.runners.**ParentRunner.runLeaf(**
    ParentRunner.java:263)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**68)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**47)
    at
    org.junit.runners.**ParentRunner$3.run(**ParentRunner.java:231)
    at org.junit.runners.**ParentRunner$1.schedule(**
    ParentRunner.java:60)
    at org.junit.runners.**ParentRunner.runChildren(**
    ParentRunner.java:229)
    at org.junit.runners.**ParentRunner.access$000(**
    ParentRunner.java:50)
    at org.junit.runners.**ParentRunner$2.evaluate(**
    ParentRunner.java:222)
    at
    org.junit.runners.**ParentRunner.run(ParentRunner.**java:300)
    at org.eclipse.jdt.internal.**junit4.runner.**
    JUnit4TestReference.run(**JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.**junit.runner.TestExecution.**
    run(TestExecution.java:38)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:467)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:683)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    main(RemoteTestRunner.java:**197

    On Friday, 2 November 2012 16:16:35 UTC+5:30, krishna wrote:

    IE -> go to tools -> option.

    click on security tab
    uncheck the "enable protected mode" check
    and click on apply and ok .

    Its runs in IE successfully.

    On Fri, Nov 2, 2012 at 3:00 PM, Minal Ghodake
    wrote:
    Hello,

    I am using selenium RC. I have given firefox browser in my script.
    When I run it, it automatically opens IE and gives script error -
    couldn't open app window, is the pop up blocker enabled?

    I have tried it using command - java -jar
    selenium-server-standalone-2.*
    *25.0.jar
    -firefoxProfileTemplate"C:\**Users\minal_ghodake\AppData\**
    Roaming\Mozilla\Firefox\**Profiles\fe1z3n1k.**TestSelenium"
    but still not working.

    Please help.

    --
    You received this message because you are subscribed to the Google
    Groups "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.**com.
    To unsubscribe from this group, send email to selenium-user...@**
    googlegroups.com.

    To view this discussion on the web visit
    https://groups.google.com/d/**
    msg/selenium-users/-/**NB1sAIEzNOoJ<
    https://groups.google.com/d/msg/selenium-users/-/NB1sAIEzNOoJ>
    https://groups.google.com/groups/opt_out>
    .



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/3BUNcjS7wKgJ.

    For more options, visit https://groups.google.com/groups/opt_out.



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Krishnamurthy Govula at Nov 5, 2012 at 11:21 am
    how u conformed that url correct or not
    On Mon, Nov 5, 2012 at 4:49 PM, akhil shukla wrote:

    throwing same error...

    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
    at org.junit.Assert.fail(Assert.java:92)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.junit.Assert.assertTrue(Assert.java:54)
    at webDriver.Yahoo.testYahoo(Yahoo.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
    org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    On 11/5/12, Krishnamurthy Govula wrote:
    try this one
    selenium.open("/");

    On Mon, Nov 5, 2012 at 4:42 PM, akhil shukla
    wrote:
    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
    at org.junit.Assert.fail(Assert.java:92)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.junit.Assert.assertTrue(Assert.java:54)
    at webDriver.Yahoo.testYahoo(Yahoo.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at
    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at
    org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at
    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
    org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    On 11/5/12, Krishnamurthy Govula <krishnamurthy.govula@sevyait.com>
    wrote:
    If u r using selenium Rc just click on pop-up window button, in web driver
    and TestNg automatically pop-up works.

    On Sat, Nov 3, 2012 at 7:25 PM, akhil shukla
    wrote:
    Please help me to solve my Timedout problem,,,,,I fed up to solve and
    try all tricks available on net but failed each time.I
    am desperately looking for assistance....


    package script;



    import static org.junit.Assert.assertTrue;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;

    import com.thoughtworks.selenium.**DefaultSelenium;
    import com.thoughtworks.selenium.**Selenium;

    public class Yahoo {

    Selenium selenium;
    @Before
    public void setUp() throws Exception {
    selenium = new DefaultSelenium("localhost", 4546,
    "*googlechrome",
    "http://in.yahoo.com/<
    http://www.google.com/url?q=http%3A%2F%2Fin.yahoo.com%2F&sa=D&sntz=1&usg=AFQjCNHBYMJziWF0GZQumdVUa-4wYH3BEg
    ");

    selenium.start();
    selenium.open("/?p=us");
    selenium.setTimeout("120000");
    selenium.windowMaximize();
    selenium.windowFocus();
    }

    @Test
    public void testYahoo() throws Exception {
    selenium.open("/?p=us");
    selenium.type("id=p_13838465-**p", "cricket");
    selenium.click("id=search-**submit");
    selenium.waitForPageToLoad("**120000");
    assertTrue(selenium.**isTextPresent("cricket
    score,live
    cricket,cricket world cup 2011,cricket games,ipl cricket 2012,yahoo
    cricket,cricket news,cricket india vs pakistan,stick cricket,cricket
    phonesMore..."));
    }

    @After
    public void tearDown() throws Exception {
    selenium.stop();
    }
    }





    com.thoughtworks.selenium.**SeleniumException: Timed out after
    30000ms
    at com.thoughtworks.selenium.**HttpCommandProcessor.**
    throwAssertionFailureException**OrError(HttpCommandProcessor.**java:112)
    at
    com.thoughtworks.selenium.**HttpCommandProcessor.**doCommand(**
    HttpCommandProcessor.java:106)
    at com.thoughtworks.selenium.**DefaultSelenium.open(**
    DefaultSelenium.java:369)
    at script.Yahoo.setUp(Yahoo.java:**20)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native
    Method)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
    NativeMethodAccessorImpl.java:**57)
    at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
    DelegatingMethodAccessorImpl.**java:43)
    at java.lang.reflect.Method.**invoke(Method.java:601)
    at org.junit.runners.model.**FrameworkMethod$1.**
    runReflectiveCall(**FrameworkMethod.java:45)
    at
    org.junit.internal.runners.**model.ReflectiveCallable.run(**
    ReflectiveCallable.java:15)
    at
    org.junit.runners.model.**FrameworkMethod.**invokeExplosively(*
    *FrameworkMethod.java:42)
    at org.junit.internal.runners.**statements.RunBefores.**
    evaluate(RunBefores.java:27)
    at
    org.junit.internal.runners.**statements.RunAfters.evaluate(**
    RunAfters.java:30)
    at org.junit.runners.**ParentRunner.runLeaf(**
    ParentRunner.java:263)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**68)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**47)
    at
    org.junit.runners.**ParentRunner$3.run(**ParentRunner.java:231)
    at org.junit.runners.**ParentRunner$1.schedule(**
    ParentRunner.java:60)
    at org.junit.runners.**ParentRunner.runChildren(**
    ParentRunner.java:229)
    at org.junit.runners.**ParentRunner.access$000(**
    ParentRunner.java:50)
    at org.junit.runners.**ParentRunner$2.evaluate(**
    ParentRunner.java:222)
    at
    org.junit.runners.**ParentRunner.run(ParentRunner.**java:300)
    at org.eclipse.jdt.internal.**junit4.runner.**
    JUnit4TestReference.run(**JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.**junit.runner.TestExecution.**
    run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:467)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:683)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    main(RemoteTestRunner.java:**197

    On Friday, 2 November 2012 16:16:35 UTC+5:30, krishna wrote:

    IE -> go to tools -> option.

    click on security tab
    uncheck the "enable protected mode" check
    and click on apply and ok .

    Its runs in IE successfully.

    On Fri, Nov 2, 2012 at 3:00 PM, Minal Ghodake
    wrote:
    Hello,

    I am using selenium RC. I have given firefox browser in my script.
    When I run it, it automatically opens IE and gives script error -
    couldn't open app window, is the pop up blocker enabled?

    I have tried it using command - java -jar
    selenium-server-standalone-2.*
    *25.0.jar
    -firefoxProfileTemplate"C:\**Users\minal_ghodake\AppData\**
    Roaming\Mozilla\Firefox\**Profiles\fe1z3n1k.**TestSelenium"
    but still not working.

    Please help.

    --
    You received this message because you are subscribed to the Google
    Groups "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.
    **com.
    To unsubscribe from this group, send email to selenium-user...@**
    googlegroups.com.

    To view this discussion on the web visit
    https://groups.google.com/d/**
    msg/selenium-users/-/**NB1sAIEzNOoJ<
    https://groups.google.com/d/msg/selenium-users/-/NB1sAIEzNOoJ>
    https://groups.google.com/groups/opt_out>
    .



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com
    .
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/3BUNcjS7wKgJ.

    For more options, visit https://groups.google.com/groups/opt_out.



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Akhil shukla at Nov 5, 2012 at 11:26 am
    Firefox opening correct with Yahoo URL and then my serch text
    "cricket" occuring which shows its working...after some time Junit
    shows me One failure that i posted u however my am of progr Yahoo.java
    is given below Plz suggest what should i do..I am fresher over here..

    package webDriver;

    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;

    import java.util.concurrent.TimeUnit;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;
    import org.openqa.selenium.By;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.firefox.FirefoxDriver;

    public class Yahoo {
      private WebDriver driver;
      private String baseUrl;
      private StringBuffer verificationErrors = new StringBuffer();
      @Before
      public void setUp() throws Exception {
       driver = new FirefoxDriver();

       baseUrl = "http://in.yahoo.com/";
       driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
      }

      @Test
      public void testYahoo() throws Exception {
       driver.get(baseUrl + "/?p=us");
       driver.findElement(By.id("p_13838465-p")).clear();
       driver.findElement(By.id("p_13838465-p")).sendKeys("cricket");
       driver.findElement(By.id("search-submit")).click();
       // Warning: assertTextPresent may require manual changes
       assertTrue(driver.findElement(By.cssSelector("BODY")).getText().matches("^[\\s\\S]*cricket
    score,live cricket,cricket world cup 2011,cricket games,ipl cricket
    2012,yahoo cricket,cricket news,cricket india vs pakistan,stick
    cricket,cricket phonesMore\\.\\.\\.[\\s\\S]*$"));
      }

      @After
      public void tearDown() throws Exception {
       driver.quit();
       String verificationErrorString = verificationErrors.toString();
       if (!"".equals(verificationErrorString)) {
        fail(verificationErrorString);
       }
      }


    }

    On 11/5/12, Krishnamurthy Govula wrote:
    how u conformed that url correct or not

    On Mon, Nov 5, 2012 at 4:49 PM, akhil shukla
    wrote:
    throwing same error...

    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
    at org.junit.Assert.fail(Assert.java:92)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.junit.Assert.assertTrue(Assert.java:54)
    at webDriver.Yahoo.testYahoo(Yahoo.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at
    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at
    org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at
    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
    org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)


    On 11/5/12, Krishnamurthy Govula <krishnamurthy.govula@sevyait.com>
    wrote:
    try this one
    selenium.open("/");

    On Mon, Nov 5, 2012 at 4:42 PM, akhil shukla
    wrote:
    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
    at org.junit.Assert.fail(Assert.java:92)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.junit.Assert.assertTrue(Assert.java:54)
    at webDriver.Yahoo.testYahoo(Yahoo.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at
    org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at
    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at
    org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at
    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
    org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    On 11/5/12, Krishnamurthy Govula <krishnamurthy.govula@sevyait.com>
    wrote:
    If u r using selenium Rc just click on pop-up window button, in web driver
    and TestNg automatically pop-up works.

    On Sat, Nov 3, 2012 at 7:25 PM, akhil shukla
    wrote:
    Please help me to solve my Timedout problem,,,,,I fed up to solve
    and
    try all tricks available on net but failed each time.I
    am desperately looking for assistance....


    package script;



    import static org.junit.Assert.assertTrue;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;

    import com.thoughtworks.selenium.**DefaultSelenium;
    import com.thoughtworks.selenium.**Selenium;

    public class Yahoo {

    Selenium selenium;
    @Before
    public void setUp() throws Exception {
    selenium = new DefaultSelenium("localhost", 4546,
    "*googlechrome",
    "http://in.yahoo.com/<
    http://www.google.com/url?q=http%3A%2F%2Fin.yahoo.com%2F&sa=D&sntz=1&usg=AFQjCNHBYMJziWF0GZQumdVUa-4wYH3BEg
    ");

    selenium.start();
    selenium.open("/?p=us");
    selenium.setTimeout("120000");
    selenium.windowMaximize();
    selenium.windowFocus();
    }

    @Test
    public void testYahoo() throws Exception {
    selenium.open("/?p=us");
    selenium.type("id=p_13838465-**p", "cricket");
    selenium.click("id=search-**submit");
    selenium.waitForPageToLoad("**120000");
    assertTrue(selenium.**isTextPresent("cricket
    score,live
    cricket,cricket world cup 2011,cricket games,ipl cricket 2012,yahoo
    cricket,cricket news,cricket india vs pakistan,stick
    cricket,cricket
    phonesMore..."));
    }

    @After
    public void tearDown() throws Exception {
    selenium.stop();
    }
    }





    com.thoughtworks.selenium.**SeleniumException: Timed out after
    30000ms
    at com.thoughtworks.selenium.**HttpCommandProcessor.**
    throwAssertionFailureException**OrError(HttpCommandProcessor.**java:112)
    at
    com.thoughtworks.selenium.**HttpCommandProcessor.**doCommand(**
    HttpCommandProcessor.java:106)
    at com.thoughtworks.selenium.**DefaultSelenium.open(**
    DefaultSelenium.java:369)
    at script.Yahoo.setUp(Yahoo.java:**20)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native
    Method)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
    NativeMethodAccessorImpl.java:**57)
    at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
    DelegatingMethodAccessorImpl.**java:43)
    at java.lang.reflect.Method.**invoke(Method.java:601)
    at org.junit.runners.model.**FrameworkMethod$1.**
    runReflectiveCall(**FrameworkMethod.java:45)
    at
    org.junit.internal.runners.**model.ReflectiveCallable.run(**
    ReflectiveCallable.java:15)
    at
    org.junit.runners.model.**FrameworkMethod.**invokeExplosively(*
    *FrameworkMethod.java:42)
    at org.junit.internal.runners.**statements.RunBefores.**
    evaluate(RunBefores.java:27)
    at
    org.junit.internal.runners.**statements.RunAfters.evaluate(**
    RunAfters.java:30)
    at org.junit.runners.**ParentRunner.runLeaf(**
    ParentRunner.java:263)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**68)
    at org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**47)
    at
    org.junit.runners.**ParentRunner$3.run(**ParentRunner.java:231)
    at org.junit.runners.**ParentRunner$1.schedule(**
    ParentRunner.java:60)
    at org.junit.runners.**ParentRunner.runChildren(**
    ParentRunner.java:229)
    at org.junit.runners.**ParentRunner.access$000(**
    ParentRunner.java:50)
    at org.junit.runners.**ParentRunner$2.evaluate(**
    ParentRunner.java:222)
    at
    org.junit.runners.**ParentRunner.run(ParentRunner.**java:300)
    at org.eclipse.jdt.internal.**junit4.runner.**
    JUnit4TestReference.run(**JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.**junit.runner.TestExecution.**
    run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:467)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:683)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    main(RemoteTestRunner.java:**197

    On Friday, 2 November 2012 16:16:35 UTC+5:30, krishna wrote:

    IE -> go to tools -> option.

    click on security tab
    uncheck the "enable protected mode" check
    and click on apply and ok .

    Its runs in IE successfully.

    On Fri, Nov 2, 2012 at 3:00 PM, Minal Ghodake
    wrote:
    Hello,

    I am using selenium RC. I have given firefox browser in my
    script.
    When I run it, it automatically opens IE and gives script error -
    couldn't open app window, is the pop up blocker enabled?

    I have tried it using command - java -jar
    selenium-server-standalone-2.*
    *25.0.jar
    -firefoxProfileTemplate"C:\**Users\minal_ghodake\AppData\**
    Roaming\Mozilla\Firefox\**Profiles\fe1z3n1k.**TestSelenium"
    but still not working.

    Please help.

    --
    You received this message because you are subscribed to the
    Google
    Groups "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.
    **com.
    To unsubscribe from this group, send email to selenium-user...@**
    googlegroups.com.

    To view this discussion on the web visit
    https://groups.google.com/d/**
    msg/selenium-users/-/**NB1sAIEzNOoJ<
    https://groups.google.com/d/msg/selenium-users/-/NB1sAIEzNOoJ>
    https://groups.google.com/groups/opt_out>
    .



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to
    selenium-users@googlegroups.com
    .
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/3BUNcjS7wKgJ.

    For more options, visit https://groups.google.com/groups/opt_out.



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to
    selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Krishnamurthy Govula at Nov 5, 2012 at 11:33 am
    sendkeys in text edits are working properlly
    On Mon, Nov 5, 2012 at 4:56 PM, akhil shukla wrote:

    Firefox opening correct with Yahoo URL and then my serch text
    "cricket" occuring which shows its working...after some time Junit
    shows me One failure that i posted u however my am of progr Yahoo.java
    is given below Plz suggest what should i do..I am fresher over here..

    package webDriver;

    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;

    import java.util.concurrent.TimeUnit;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;
    import org.openqa.selenium.By;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.firefox.FirefoxDriver;

    public class Yahoo {
    private WebDriver driver;
    private String baseUrl;
    private StringBuffer verificationErrors = new StringBuffer();
    @Before
    public void setUp() throws Exception {
    driver = new FirefoxDriver();

    baseUrl = "http://in.yahoo.com/";
    driver.manage().timeouts().implicitlyWait(30,
    TimeUnit.SECONDS);
    }

    @Test
    public void testYahoo() throws Exception {
    driver.get(baseUrl + "/?p=us");
    driver.findElement(By.id("p_13838465-p")).clear();

    driver.findElement(By.id("p_13838465-p")).sendKeys("cricket");
    driver.findElement(By.id("search-submit")).click();
    // Warning: assertTextPresent may require manual changes

    assertTrue(driver.findElement(By.cssSelector("BODY")).getText().matches("^[\\s\\S]*cricket
    score,live cricket,cricket world cup 2011,cricket games,ipl cricket
    2012,yahoo cricket,cricket news,cricket india vs pakistan,stick
    cricket,cricket phonesMore\\.\\.\\.[\\s\\S]*$"));
    }

    @After
    public void tearDown() throws Exception {
    driver.quit();
    String verificationErrorString =
    verificationErrors.toString();
    if (!"".equals(verificationErrorString)) {
    fail(verificationErrorString);
    }
    }


    }

    On 11/5/12, Krishnamurthy Govula wrote:
    how u conformed that url correct or not

    On Mon, Nov 5, 2012 at 4:49 PM, akhil shukla
    wrote:
    throwing same error...

    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
    at org.junit.Assert.fail(Assert.java:92)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.junit.Assert.assertTrue(Assert.java:54)
    at webDriver.Yahoo.testYahoo(Yahoo.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at
    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at
    org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at
    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
    org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    On 11/5/12, Krishnamurthy Govula <krishnamurthy.govula@sevyait.com>
    wrote:
    try this one
    selenium.open("/");

    On Mon, Nov 5, 2012 at 4:42 PM, akhil shukla
    wrote:
    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
    at org.junit.Assert.fail(Assert.java:92)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.junit.Assert.assertTrue(Assert.java:54)
    at webDriver.Yahoo.testYahoo(Yahoo.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at
    org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at
    org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at
    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at
    org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at
    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
    org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    On 11/5/12, Krishnamurthy Govula <krishnamurthy.govula@sevyait.com>
    wrote:
    If u r using selenium Rc just click on pop-up window button, in web driver
    and TestNg automatically pop-up works.

    On Sat, Nov 3, 2012 at 7:25 PM, akhil shukla
    wrote:
    Please help me to solve my Timedout problem,,,,,I fed up to solve
    and
    try all tricks available on net but failed each time.I
    am desperately looking for assistance....


    package script;



    import static org.junit.Assert.assertTrue;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;

    import com.thoughtworks.selenium.**DefaultSelenium;
    import com.thoughtworks.selenium.**Selenium;

    public class Yahoo {

    Selenium selenium;
    @Before
    public void setUp() throws Exception {
    selenium = new DefaultSelenium("localhost", 4546,
    "*googlechrome",
    "http://in.yahoo.com/<
    http://www.google.com/url?q=http%3A%2F%2Fin.yahoo.com%2F&sa=D&sntz=1&usg=AFQjCNHBYMJziWF0GZQumdVUa-4wYH3BEg
    ");

    selenium.start();
    selenium.open("/?p=us");
    selenium.setTimeout("120000");
    selenium.windowMaximize();
    selenium.windowFocus();
    }

    @Test
    public void testYahoo() throws Exception {
    selenium.open("/?p=us");
    selenium.type("id=p_13838465-**p", "cricket");
    selenium.click("id=search-**submit");
    selenium.waitForPageToLoad("**120000");
    assertTrue(selenium.**isTextPresent("cricket
    score,live
    cricket,cricket world cup 2011,cricket games,ipl cricket
    2012,yahoo
    cricket,cricket news,cricket india vs pakistan,stick
    cricket,cricket
    phonesMore..."));
    }

    @After
    public void tearDown() throws Exception {
    selenium.stop();
    }
    }





    com.thoughtworks.selenium.**SeleniumException: Timed out after
    30000ms
    at com.thoughtworks.selenium.**HttpCommandProcessor.**
    throwAssertionFailureException**OrError(HttpCommandProcessor.**java:112)
    at
    com.thoughtworks.selenium.**HttpCommandProcessor.**doCommand(**
    HttpCommandProcessor.java:106)
    at com.thoughtworks.selenium.**DefaultSelenium.open(**
    DefaultSelenium.java:369)
    at script.Yahoo.setUp(Yahoo.java:**20)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native
    Method)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
    NativeMethodAccessorImpl.java:**57)
    at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
    DelegatingMethodAccessorImpl.**java:43)
    at java.lang.reflect.Method.**invoke(Method.java:601)
    at org.junit.runners.model.**FrameworkMethod$1.**
    runReflectiveCall(**FrameworkMethod.java:45)
    at
    org.junit.internal.runners.**model.ReflectiveCallable.run(**
    ReflectiveCallable.java:15)
    at
    org.junit.runners.model.**FrameworkMethod.**invokeExplosively(*
    *FrameworkMethod.java:42)
    at org.junit.internal.runners.**statements.RunBefores.**
    evaluate(RunBefores.java:27)
    at
    org.junit.internal.runners.**statements.RunAfters.evaluate(**
    RunAfters.java:30)
    at org.junit.runners.**ParentRunner.runLeaf(**
    ParentRunner.java:263)
    at
    org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**68)
    at
    org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**47)
    at
    org.junit.runners.**ParentRunner$3.run(**ParentRunner.java:231)
    at org.junit.runners.**ParentRunner$1.schedule(**
    ParentRunner.java:60)
    at org.junit.runners.**ParentRunner.runChildren(**
    ParentRunner.java:229)
    at org.junit.runners.**ParentRunner.access$000(**
    ParentRunner.java:50)
    at org.junit.runners.**ParentRunner$2.evaluate(**
    ParentRunner.java:222)
    at
    org.junit.runners.**ParentRunner.run(ParentRunner.**java:300)
    at org.eclipse.jdt.internal.**junit4.runner.**
    JUnit4TestReference.run(**JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.**junit.runner.TestExecution.**
    run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:467)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:683)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    main(RemoteTestRunner.java:**197

    On Friday, 2 November 2012 16:16:35 UTC+5:30, krishna wrote:

    IE -> go to tools -> option.

    click on security tab
    uncheck the "enable protected mode" check
    and click on apply and ok .

    Its runs in IE successfully.

    On Fri, Nov 2, 2012 at 3:00 PM, Minal Ghodake
    wrote:
    Hello,

    I am using selenium RC. I have given firefox browser in my
    script.
    When I run it, it automatically opens IE and gives script error
    -
    couldn't open app window, is the pop up blocker enabled?

    I have tried it using command - java -jar
    selenium-server-standalone-2.*
    *25.0.jar
    -firefoxProfileTemplate"C:\**Users\minal_ghodake\AppData\**
    Roaming\Mozilla\Firefox\**Profiles\fe1z3n1k.**TestSelenium"
    but still not working.

    Please help.

    --
    You received this message because you are subscribed to the
    Google
    Groups "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.
    **com.
    To unsubscribe from this group, send email to selenium-user...@
    **
    googlegroups.com.

    To view this discussion on the web visit
    https://groups.google.com/d/**
    msg/selenium-users/-/**NB1sAIEzNOoJ<
    https://groups.google.com/d/msg/selenium-users/-/NB1sAIEzNOoJ>
    https://groups.google.com/groups/opt_out>
    .



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to
    selenium-users@googlegroups.com
    .
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/3BUNcjS7wKgJ.

    For more options, visit https://groups.google.com/groups/opt_out.



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to
    selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com
    .
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Saravanan Ravi at Mar 6, 2014 at 3:07 pm
    Hi Akhil,

    I think the issue is with the AssertTrue command.

    Please check the AssertTrue with valid data or put wait statement after
    search.

    Regards,
    Saravanan R
    On Monday, November 5, 2012 12:26:31 PM UTC+1, akhil shukla wrote:

    Firefox opening correct with Yahoo URL and then my serch text
    "cricket" occuring which shows its working...after some time Junit
    shows me One failure that i posted u however my am of progr Yahoo.java
    is given below Plz suggest what should i do..I am fresher over here..

    package webDriver;

    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;

    import java.util.concurrent.TimeUnit;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;
    import org.openqa.selenium.By;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.firefox.FirefoxDriver;

    public class Yahoo {
    private WebDriver driver;
    private String baseUrl;
    private StringBuffer verificationErrors = new StringBuffer();
    @Before
    public void setUp() throws Exception {
    driver = new FirefoxDriver();

    baseUrl = "http://in.yahoo.com/";
    driver.manage().timeouts().implicitlyWait(30,
    TimeUnit.SECONDS);
    }

    @Test
    public void testYahoo() throws Exception {
    driver.get(baseUrl + "/?p=us");
    driver.findElement(By.id("p_13838465-p")).clear();
    driver.findElement(By.id("p_13838465-p")).sendKeys("cricket");

    driver.findElement(By.id("search-submit")).click();
    // Warning: assertTextPresent may require manual changes
    assertTrue(driver.findElement(By.cssSelector("BODY")).getText().matches("^[\\s\\S]*cricket

    score,live cricket,cricket world cup 2011,cricket games,ipl cricket
    2012,yahoo cricket,cricket news,cricket india vs pakistan,stick
    cricket,cricket phonesMore\\.\\.\\.[\\s\\S]*$"));
    }

    @After
    public void tearDown() throws Exception {
    driver.quit();
    String verificationErrorString =
    verificationErrors.toString();
    if (!"".equals(verificationErrorString)) {
    fail(verificationErrorString);
    }
    }


    }


    On 11/5/12, Krishnamurthy Govula <krishnamur...@sevyait.com <javascript:>>
    wrote:
    how u conformed that url correct or not

    On Mon, Nov 5, 2012 at 4:49 PM, akhil shukla
    <akhilesh...@gmail.com <javascript:>>wrote:
    throwing same error...

    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
    at org.junit.Assert.fail(Assert.java:92)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.junit.Assert.assertTrue(Assert.java:54)
    at webDriver.Yahoo.testYahoo(Yahoo.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at
    org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at
    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at
    org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at
    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
    org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    On 11/5/12, Krishnamurthy Govula <krishnamur...@sevyait.com<javascript:>>
    wrote:
    try this one
    selenium.open("/");

    On Mon, Nov 5, 2012 at 4:42 PM, akhil shukla
    <akhilesh...@gmail.com <javascript:>>wrote:
    Kindly help me to solve below error,i started learning
    webdriver,browser executes properly but Junit box throws me 1
    failures....which is..



    java.lang.AssertionError
    at org.junit.Assert.fail(Assert.java:92)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.junit.Assert.assertTrue(Assert.java:54)
    at webDriver.Yahoo.testYahoo(Yahoo.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at
    org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at
    org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at
    org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at
    org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at
    org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
    org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    On 11/5/12, Krishnamurthy Govula <krishnamur...@sevyait.com<javascript:>>
    wrote:
    If u r using selenium Rc just click on pop-up window button, in
    web
    driver
    and TestNg automatically pop-up works.

    On Sat, Nov 3, 2012 at 7:25 PM, akhil shukla
    <akhilesh...@gmail.com <javascript:>>wrote:
    Please help me to solve my Timedout problem,,,,,I fed up to solve
    and
    try all tricks available on net but failed each time.I
    am desperately looking for assistance....


    package script;



    import static org.junit.Assert.assertTrue;

    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;

    import com.thoughtworks.selenium.**DefaultSelenium;
    import com.thoughtworks.selenium.**Selenium;

    public class Yahoo {

    Selenium selenium;
    @Before
    public void setUp() throws Exception {
    selenium = new DefaultSelenium("localhost", 4546,
    "*googlechrome",
    "http://in.yahoo.com/<
    http://www.google.com/url?q=http%3A%2F%2Fin.yahoo.com%2F&sa=D&sntz=1&usg=AFQjCNHBYMJziWF0GZQumdVUa-4wYH3BEg
    ");

    selenium.start();
    selenium.open("/?p=us");
    selenium.setTimeout("120000");
    selenium.windowMaximize();
    selenium.windowFocus();
    }

    @Test
    public void testYahoo() throws Exception {
    selenium.open("/?p=us");
    selenium.type("id=p_13838465-**p", "cricket");
    selenium.click("id=search-**submit");
    selenium.waitForPageToLoad("**120000");
    assertTrue(selenium.**isTextPresent("cricket
    score,live
    cricket,cricket world cup 2011,cricket games,ipl cricket
    2012,yahoo
    cricket,cricket news,cricket india vs pakistan,stick
    cricket,cricket
    phonesMore..."));
    }

    @After
    public void tearDown() throws Exception {
    selenium.stop();
    }
    }





    com.thoughtworks.selenium.**SeleniumException: Timed out after
    30000ms
    at com.thoughtworks.selenium.**HttpCommandProcessor.**
    throwAssertionFailureException**OrError(HttpCommandProcessor.**java:112)
    at
    com.thoughtworks.selenium.**HttpCommandProcessor.**doCommand(**
    HttpCommandProcessor.java:106)
    at com.thoughtworks.selenium.**DefaultSelenium.open(**
    DefaultSelenium.java:369)
    at script.Yahoo.setUp(Yahoo.java:**20)
    at
    sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native
    Method)
    at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
    NativeMethodAccessorImpl.java:**57)
    at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
    DelegatingMethodAccessorImpl.**java:43)
    at java.lang.reflect.Method.**invoke(Method.java:601)
    at org.junit.runners.model.**FrameworkMethod$1.**
    runReflectiveCall(**FrameworkMethod.java:45)
    at
    org.junit.internal.runners.**model.ReflectiveCallable.run(**
    ReflectiveCallable.java:15)
    at
    org.junit.runners.model.**FrameworkMethod.**invokeExplosively(*
    *FrameworkMethod.java:42)
    at org.junit.internal.runners.**statements.RunBefores.**
    evaluate(RunBefores.java:27)
    at
    org.junit.internal.runners.**statements.RunAfters.evaluate(**
    RunAfters.java:30)
    at org.junit.runners.**ParentRunner.runLeaf(**
    ParentRunner.java:263)
    at
    org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**68)
    at
    org.junit.runners.**BlockJUnit4ClassRunner.**runChild(**
    BlockJUnit4ClassRunner.java:**47)
    at
    org.junit.runners.**ParentRunner$3.run(**ParentRunner.java:231)
    at org.junit.runners.**ParentRunner$1.schedule(**
    ParentRunner.java:60)
    at org.junit.runners.**ParentRunner.runChildren(**
    ParentRunner.java:229)
    at org.junit.runners.**ParentRunner.access$000(**
    ParentRunner.java:50)
    at org.junit.runners.**ParentRunner$2.evaluate(**
    ParentRunner.java:222)
    at
    org.junit.runners.**ParentRunner.run(ParentRunner.**java:300)
    at org.eclipse.jdt.internal.**junit4.runner.**
    JUnit4TestReference.run(**JUnit4TestReference.java:50)
    at
    org.eclipse.jdt.internal.**junit.runner.TestExecution.**
    run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:467)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    runTests(RemoteTestRunner.**java:683)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.**junit.runner.RemoteTestRunner.**
    main(RemoteTestRunner.java:**197

    On Friday, 2 November 2012 16:16:35 UTC+5:30, krishna wrote:

    IE -> go to tools -> option.

    click on security tab
    uncheck the "enable protected mode" check
    and click on apply and ok .

    Its runs in IE successfully.

    On Fri, Nov 2, 2012 at 3:00 PM, Minal Ghodake
    wrote:
    Hello,

    I am using selenium RC. I have given firefox browser in my
    script.
    When I run it, it automatically opens IE and gives script error
    -
    couldn't open app window, is the pop up blocker enabled?

    I have tried it using command - java -jar
    selenium-server-standalone-2.*
    *25.0.jar
    -firefoxProfileTemplate"C:\**Users\minal_ghodake\AppData\**
    Roaming\Mozilla\Firefox\**Profiles\fe1z3n1k.**TestSelenium"
    but still not working.

    Please help.

    --
    You received this message because you are subscribed to the
    Google
    Groups "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.
    **com.
    To unsubscribe from this group, send email to
    selenium-user...@**
    googlegroups.com.

    To view this discussion on the web visit
    https://groups.google.com/d/**
    msg/selenium-users/-/**NB1sAIEzNOoJ<
    https://groups.google.com/d/msg/selenium-users/-/NB1sAIEzNOoJ>
    https://groups.google.com/groups/opt_out>
    .



    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the
    Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to
    seleniu...@googlegroups.com <javascript:>
    .
    To unsubscribe from this group, send email to
    selenium-user...@googlegroups.com <javascript:>.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/3BUNcjS7wKgJ.

    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to
    seleniu...@googlegroups.com <javascript:>.
    To unsubscribe from this group, send email to
    selenium-user...@googlegroups.com <javascript:>.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.com<javascript:>.
    To unsubscribe from this group, send email to
    selenium-user...@googlegroups.com <javascript:>.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.com<javascript:>.
    To unsubscribe from this group, send email to
    selenium-user...@googlegroups.com <javascript:>.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251

    --
    You received this message because you are subscribed to the Google
    Groups
    "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.com<javascript:>.
    To unsubscribe from this group, send email to
    selenium-user...@googlegroups.com <javascript:>.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards
    Krishna Murthy G

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.com<javascript:>.
    To unsubscribe from this group, send email to
    selenium-user...@googlegroups.com <javascript:>.
    For more options, visit https://groups.google.com/groups/opt_out.


    --
    Thanks & Regards!!!
    Akhilesh Kr. Shukla
    Mb no:+91-9911728251
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/378753bd-d98d-49cc-89be-86b035e23070%40googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • chithra Dhayalan at Mar 6, 2014 at 11:44 am
    Hi,
    Open your command prompt as an administrator.That should solve the issue.
    Thanks-Chithra.

    On Friday, November 2, 2012 3:00:58 PM UTC+5:30, Minal Ghodake wrote:

    Hello,

    I am using selenium RC. I have given firefox browser in my script.
    When I run it, it automatically opens IE and gives script error - couldn't
    open app window, is the pop up blocker enabled?

    I have tried it using command - java -jar
    selenium-server-standalone-2.25.0.jar
    -firefoxProfileTemplate"C:\Users\minal_ghodake\AppData\Roaming\Mozilla\Firefox\Profiles\fe1z3n1k.TestSelenium"
    but still not working.

    Please help.
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3a9bf4e4-355f-4426-aa3d-487d4ffdb36a%40googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedNov 2, '12 at 10:33a
activeMar 6, '14 at 3:07p
posts12
users5
websiteseleniumhq.org

People

Translate

site design / logo © 2022 Grokbase