kgress / scaffold

A Java based Selenium WebDriver abstraction
MIT License
4 stars 7 forks source link

Add JavascriptExecutor access to BasePage #57

Closed kgress closed 4 years ago

kgress commented 4 years ago

Summary

Currently, the BasePage does not have functionality for providing access to the Javascript Executor. There are possible use cases where a website may require javascript access where selenium web driver is not able to interact with certain elements.

For example, if there is a hidden element on a page, JavascriptExecutor can be used to unhide the element. The JS executor can also be used to set the value of the hidden element. This is useful since Scaffold will only handle visible elements when explicit waits are enabled.

A/C