1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

By Arun Motoori

goBack Selenium RC command is used for returning to the previous page.Test Description:1. Click the following link on the Home Page:

2. When the User is in ‘Selenium143’ page, navigate back to the previous ‘omayo’ page by using the Selenium RC command goBack as explained in the below screenshot:

Syntax:selenium.goBack( );Lets Implement This:Pre-requisites:1. Create a new Project say ‘RC-Project63’ in Eclipse IDE2. Configure the Project to work with Selenium RC3. Configure the Selenium Standalone Server to run from Eclipse IDE4. Create a package say ‘package63’ under the newly created project.5. Create a Java Class file say ‘Class63’ under the newly created package as shown below:
Actual Steps:1. Write the following code into the newly created Java Class file as shown below and make sure that you resolve all the errors before going to next step:
2. Write the test method ‘goBackDemo()’ as shown below:
3. Use Selenium RC command click for navigating to Selenium143 page from ‘omayo’ Home Page and then use Selenium RC command goBack for navigating back to the previous page i.e. ‘omayo’ Home Page as shown below:

4. Start the Selenium Standalone Server5. Save and Run the ‘’ file by selecting the ‘JUnit Test’ option and ensure that our Automation Test has navigated to the Selenium143 page from ‘omayo’ Home page and then back to the ‘omayo’ Home Page because of goBack( ) Selenium RC command as shown in the below video:Watch the below video:Click here to watch the video.Download this Project:
Click here to download this project and import into Eclipse IDE on your machine.Please comment below to feedback or ask questions.
Using highlight command will be explained in the next post.


Category: aafq. 147. Using goBack command

Você também pode querer ler

Comments are off for this post.