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
Scaffold's BasePage should provide the JavascriptExecutor with protected access
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
BasePage
should provide theJavascriptExecutor
with protected access