Quality is delighting customers
Hi friends in my web app a link goes out of application and there is only one way to come back ie browser's back button ,i tried to record using selenium but it could not done it.Is there any way to resolve it...
Thanks & Regards,
hari krishna peddi.
Tags:
Permalink Reply by Rob van Steenbergen on September 7, 2011 at 3:00pm Command: Goback() in Selenium IDE does the trick.
More about this and selenium commands at http://release.seleniumhq.org/selenium-core/0.8.0/reference.html
Permalink Reply by Binita on September 7, 2011 at 3:10pm or else use the following:
selenium.keyPress("locator","\\8"); /* 8 is the ASCII value for backspace button */
or you can check this:
e.g> selenium.open("http://www.google.co.in/");
selenium.setSpeed("3000");
selenium.click("css=#gb_2 > span.gbts");
selenium.waitForPageToLoad("30000");
selenium.keyPress("css=#gb_2 > span.gbts", "\\8");
selenium.waitForPageToLoad("30000");'
Thanks
Binita
===================================================================
Permalink Reply by MASTAN VALI on September 7, 2011 at 3:29pm @Binita
Looks like Hari is trying to record it using IDE. So he needs to import the code and then write the code which is mentioned by Ron Van or U.
Permalink Reply by Binita on September 7, 2011 at 3:34pm
Permalink Reply by Rob van Steenbergen on September 7, 2011 at 3:36pm
Permalink Reply by MASTAN VALI on September 7, 2011 at 4:04pm @ Rob Van
Yes. U r absolutely right. The code which u have written is for IDE.
But most of the guys use selenium.goback(); command but the code written by Binita is outstanding which usually i think is very rare to be seen.
Permalink Reply by Rob van Steenbergen on September 7, 2011 at 4:49pm
Permalink Reply by Binita on September 7, 2011 at 6:25pm Thanks Rob !!!!!!
When i started selenium even i struggled with the similiar kind of issue but it was for "Enter" command that selenium IDE does's have directly.I was not able to click on ".jpeg button " then i approached the following:
selenium.keyPress("locator","\\13"); //ASCII value for Enter=13
I found it interesting!!!!!!!!!!!!
Thanks
Binita
================================================================
Permalink Reply by MASTAN VALI on September 8, 2011 at 12:07am Hey hari ,
Wat happened ? Any progress yet .
© 2012 Created by Quality Testing.