Skip to content

Allows evaluating PageObjects without starting a full Selenium test run, just feed it some HTML.

License

Notifications You must be signed in to change notification settings

bjorndown/PageObjectEvaluator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PageObjectEvaluator

Allows evaluating PageObjects without starting a full Selenium test run, just feed it some HTML.

  • Evaluates @FindBy*
  • Tries to inject WebDriver into PageObject, if there is such a field
  • Executes all no-args methods and prints their output in the console
  • HTML snippets work as well

Screenshot

How to install

  • Install using IntelliJ's plugin registry
  • Download from plugins.jetbrains.com
  • Build it yourself, see below

How to build and run locally

You need to use Java 11 for building, see Troubleshooting section for reason

Build

./gradlew build

Run tests

./gradlew test

Verify plugin archive and folder structure

./gradlew verifyPlugin

Start an IntelliJ instance with the plugin installed

./gradlew runIde

Troubleshooting

Run-time

Class not found: Webdriver

If you encounter java.lang.NoClassDefFoundError: org/openqa/selenium/WebDriver, make sure you have the correct module selected in the run configuration: Run config module selection Note: This example is taken from a gradle project

About

Allows evaluating PageObjects without starting a full Selenium test run, just feed it some HTML.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages