Selenium File Locators

Storing Element Locators in excel, json and properties files

License

License

GroupId

GroupId

tech.grasshopper
ArtifactId

ArtifactId

findbyfilewebelement
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Selenium File Locators
Storing Element Locators in excel, json and properties files
Project URL

Project URL

https://github.com/grasshopper7/findbyfilewebelement
Source Code Management

Source Code Management

https://github.com/grasshopper7/findbyfilewebelement

Download findbyfilewebelement

How to add to project

<!-- https://jarcasting.com/artifacts/tech.grasshopper/findbyfilewebelement/ -->
<dependency>
    <groupId>tech.grasshopper</groupId>
    <artifactId>findbyfilewebelement</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/tech.grasshopper/findbyfilewebelement/
implementation 'tech.grasshopper:findbyfilewebelement:1.0.0'
// https://jarcasting.com/artifacts/tech.grasshopper/findbyfilewebelement/
implementation ("tech.grasshopper:findbyfilewebelement:1.0.0")
'tech.grasshopper:findbyfilewebelement:jar:1.0.0'
<dependency org="tech.grasshopper" name="findbyfilewebelement" rev="1.0.0">
  <artifact name="findbyfilewebelement" type="jar" />
</dependency>
@Grapes(
@Grab(group='tech.grasshopper', module='findbyfilewebelement', version='1.0.0')
)
libraryDependencies += "tech.grasshopper" % "findbyfilewebelement" % "1.0.0"
[tech.grasshopper/findbyfilewebelement "1.0.0"]

Dependencies

compile (5)

Group / Artifact Type Version
org.apache.poi : poi jar 3.17
org.apache.poi : poi-ooxml jar 3.17
com.google.code.gson : gson jar 2.8.5
junit : junit jar 4.12
org.mockito : mockito-core jar 2.18.3

provided (1)

Group / Artifact Type Version
org.seleniumhq.selenium : selenium-java jar 3.14.0

Project Modules

There are no modules declared in this project.

Refer here for repository details - Maven Central

Refer here for a detailed explanation of the framework - https://grasshopper.tech/220/

Refer here for a sample implementation - https://github.com/grasshopper7/SOfilelocator

When @FindBy annotation is used in the Selenium Page Object Model the value of its attributes how, using etc need to be available in the code. There is no mechanism to store and access these locator data from outside the source code, say in an excel file. This mechanism requires Java-8.

This mechanism seamlessly integrates with the current Page Object Model and PageFactory implementations. More importantly this supports existing @FindBy, @FindBys and @FindAll annotations alongside new development in the same PageObject.

<dependency>
	<groupId>tech.grasshopper</groupId>
	<artifactId>findbyfilewebelement</artifactId>
	<version>1.0.0</version>
</dependency>

Versions

Version
1.0.0