Menu

Home

Sangeeth

Selenium Developer Utility

Selenium developer utility is developed to assist selenium java developers with functionalities that can help in design and maintenance phase. There are three major features,

1. Object Scan

2. Object Locator

3. Fiddle

Getting Started

     Download the latest version. Open the application.

1. Object Scan

     Object scan will extract WebElements defined inside the Java file. Utility can extract Webelements which are defined in any of the below format.

        a. Normal Java WebElement definition (Ex : driver.findElement(By.name("q"))

        b. POM PageObject Model (Ex: By.name("q"))

        c. Page Factory Model (Ex: @FindBy(how = How.NAME, using = "q"))

        d. Enum pageobject definition (Example : lnk_LogInHeader("nav-bar-login-icon",ID,"Login Link"),)

Usage Guide:

  1. Click Open button in the quick links and select folder where the Java code are available
  2. Now the Java files will be listed in the explorer pane(On-left)
  3. Double click on a Java file. All object defined in any of the above listed format will extracted and listed the on the objects table(On-right)

    Selector and Selector String indicates the locator type and locator value in the WebElement definition.
  4. Now to scan objects availability in the web page.You should open browser from the utility.
  5. To open browser click on any of browser icon in the quick links bar. It will ask for browser details and IEDriver/Chromedriver details. Fill the details required.(This is one time setup)
  6. After configuring the preferences click the icon to open required browser. Browser should open in few minutes(Please wait for minutes it will take sometime to open browser).
  7. Now navigate to page in UI from where the extracted webelements are defined.
  8. There are two icons available Single tick and Double tick. Click Double tick to validate all extracted objects in the current webpage. But if you just want to validate few selective objects First select the objects and then click Single-tick button.

    Object scan result will be shown in the Result column(Available or NA)

    Highlight : If you want Highlight an object in the UI. Select the object in the table and click on Highlight button.

    Export : If you want to export the result to excel. Click on export button in the quick links list(last one) and follow the steps. scan table will exported in excel format.

2. Object Locator

Object Locator will generate possible xPath of any webelement.

Usage Guide

  1. Click Object Locator button(quick link with mouse pointer). It will open Object locator window.
  2. Click Inspect button in the object locator window. Now hover over already opened browser.
  3. Right click on the target object. List of possible xpath will be generated in the Object Locator window.

    There is another Java tab where the xpath will be defined in raw Java Webelement definition.

3. Fiddle

Fiddle is simple and small code editor designed to run selenium snippet. You can test your snippet of selenium code with fiddle without invoking browser everytime. Also you can run the selenium code on desired web page in the browser. Which will reduce your design effort, you don't need run whole testcase again and again to test a snippet of selenium code.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.