Seleniumscriptssetup |Manasa Dilipkumar
SELENIUM SCRIPTS FOR DASHBOARD UI
Steps toinstall Web(Firefox) plugin:
The easiest way to download Selenium IDEas a Firefox add-on is from
http://seleniumhq.org.
Start the Firefox browser and navigate to the Selenium home page at
http://seleniumhq.org and click on the Download tab as shown in the following
screenshot:
On the Download page, go to the Selenium IDEsection and click on the version
link as shown in the following screenshot. We suggestthat you download the
most currentstable build and as of writing this book the most stable build.
Seleniumscriptssetup |Manasa Dilipkumar
After downloading, Firefoxwill request your permission to install the add-on. Click
on the Allow button as shown in the following screenshot:
Seleniumscriptssetup |Manasa Dilipkumar
Firefox will download the add-on and display the SoftwareInstallation dialog box
as shown in the following screenshot. Click on the InstallNow button:
Firefox will install the Selenium IDE. Firefoxwill restartafter the add-on is
installed.
To launch the Selenium IDE, click on Firefox | Web Developer | Selenium IDEas
shown in the following screenshot. You might see a Firefox menu in some cases
(on operating systems such as Linux, Ubuntu, and Mac OS X), where you can open
the Selenium IDEby clicking on Tools | Selenium IDEfromthe Firefox main menu:
Selenium IDEwillbe launched on top of the Firefox window as shown in the
following screenshot:
Seleniumscriptssetup |Manasa Dilipkumar
Steps tofollowto export the Java Code:
 Once the GUI is open in Firefox, start the recording.
 After the operation is done, run the testcaseto verify the solution.
 Once the testcase is efficiently run, export the java code. Java code can be
modified later according to our requirements.
 Java code will be tested in Eclipse, and run like a JUNITtc and check if it is
working.
Seleniumscriptssetup |Manasa Dilipkumar
Configuring Eclipse torunjava code for dashboard:
 Download Java: http://www.oracle.com/technetwork/java/javase/downloads/index.html
 Download the eclipse:
 Download the SeleniumJava client driver from: 
http://docs.seleniumhq.org/download/
Seleniumscriptssetup |Manasa Dilipkumar
 Configure the Eclipse towork with the WebDriver:
 Create a newproject throughFile ? New? Java Project. Name the project
as “MyProject”.
 Right-click on the newly created projectand select New > Package, and
name that packageas “MyPackage”.
 Create a new Java class under MyPackageby right-clicking on it and then
selecting New > Class, and then name it as “MyClass”. Your Eclipse IDE
should look like the image below:
Seleniumscriptssetup |Manasa Dilipkumar
 Add JAR files tothe library:
Seleniumscriptssetup |Manasa Dilipkumar
Seleniumscriptssetup |Manasa Dilipkumar
 Finally, click on the OK button and we are done with importing Selenium
libraries into our project. Now, we are ready to write our test script in
Eclipse and run it in WebDriver.
WORKING ON DASHBOARD TABS:
 Write java code for all tabs and subtabs in dashboard.
 Run the code in eclipse toverify if the pages are running properly or not.

SELENIUM SCRIPTS FOR DASHBOARD UI

  • 1.
    Seleniumscriptssetup |Manasa Dilipkumar SELENIUMSCRIPTS FOR DASHBOARD UI Steps toinstall Web(Firefox) plugin: The easiest way to download Selenium IDEas a Firefox add-on is from http://seleniumhq.org. Start the Firefox browser and navigate to the Selenium home page at http://seleniumhq.org and click on the Download tab as shown in the following screenshot: On the Download page, go to the Selenium IDEsection and click on the version link as shown in the following screenshot. We suggestthat you download the most currentstable build and as of writing this book the most stable build.
  • 2.
    Seleniumscriptssetup |Manasa Dilipkumar Afterdownloading, Firefoxwill request your permission to install the add-on. Click on the Allow button as shown in the following screenshot:
  • 3.
    Seleniumscriptssetup |Manasa Dilipkumar Firefoxwill download the add-on and display the SoftwareInstallation dialog box as shown in the following screenshot. Click on the InstallNow button: Firefox will install the Selenium IDE. Firefoxwill restartafter the add-on is installed. To launch the Selenium IDE, click on Firefox | Web Developer | Selenium IDEas shown in the following screenshot. You might see a Firefox menu in some cases (on operating systems such as Linux, Ubuntu, and Mac OS X), where you can open the Selenium IDEby clicking on Tools | Selenium IDEfromthe Firefox main menu: Selenium IDEwillbe launched on top of the Firefox window as shown in the following screenshot:
  • 4.
    Seleniumscriptssetup |Manasa Dilipkumar Stepstofollowto export the Java Code:  Once the GUI is open in Firefox, start the recording.  After the operation is done, run the testcaseto verify the solution.  Once the testcase is efficiently run, export the java code. Java code can be modified later according to our requirements.  Java code will be tested in Eclipse, and run like a JUNITtc and check if it is working.
  • 5.
    Seleniumscriptssetup |Manasa Dilipkumar ConfiguringEclipse torunjava code for dashboard:  Download Java: http://www.oracle.com/technetwork/java/javase/downloads/index.html  Download the eclipse:  Download the SeleniumJava client driver from:  http://docs.seleniumhq.org/download/
  • 6.
    Seleniumscriptssetup |Manasa Dilipkumar Configure the Eclipse towork with the WebDriver:  Create a newproject throughFile ? New? Java Project. Name the project as “MyProject”.  Right-click on the newly created projectand select New > Package, and name that packageas “MyPackage”.  Create a new Java class under MyPackageby right-clicking on it and then selecting New > Class, and then name it as “MyClass”. Your Eclipse IDE should look like the image below:
  • 7.
    Seleniumscriptssetup |Manasa Dilipkumar Add JAR files tothe library:
  • 8.
  • 9.
    Seleniumscriptssetup |Manasa Dilipkumar Finally, click on the OK button and we are done with importing Selenium libraries into our project. Now, we are ready to write our test script in Eclipse and run it in WebDriver. WORKING ON DASHBOARD TABS:  Write java code for all tabs and subtabs in dashboard.  Run the code in eclipse toverify if the pages are running properly or not.