Quality Testing

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.

Views: 254

Replies to This Discussion

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

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

===================================================================

@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.

@MASTAN VALI
Ya if its recording then we have to follow Rob van Steenbergen's procedure and if writing the you can follow even mine.
Within IDE you can also add this code, that's why I was mentioning it. No import or export, just add the commend goback() in the IDE in between recorded code.

@ 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.
I like the Binita code too. I am also a beginner with Selenium, so a lot to learn yet :-)

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

================================================================

Hey hari ,

 

Wat happened ? Any progress yet .

RSS

TTWT Magazine

Advertisement

You Can


Call for Articles

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2012   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service