You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though this should be generally avoided in a Selenium test, there are some scenarios where there is no option rather than delegating the execution to Javascript (e.g.: Safari not doing what it's expected to with regular Selenium methods). In this context, we would like to have Spectrum expose some helper methods to run basic actions in Javascript.
Describe why this should be added to Spectrum
Having helper methods in the framework would reduce the boilerplate code a user needs to write: instead of explicitly casting the driver to JavascriptExecutor and calling the executeScript method each time, we could have methods like the already present click that could be easily chained:
Add at least one call for each method, to demonstrate how they work, in the JavascriptIT test. If needed, new tests methods can be added to that class. In this case, the COMPLETED value of the ItVerifierTest should be modified accordingly.
The text was updated successfully, but these errors were encountered:
Feature description
Though this should be generally avoided in a Selenium test, there are some scenarios where there is no option rather than delegating the execution to Javascript (e.g.: Safari not doing what it's expected to with regular Selenium methods). In this context, we would like to have Spectrum expose some helper methods to run basic actions in Javascript.
Describe why this should be added to Spectrum
Having helper methods in the framework would reduce the boilerplate code a user needs to write: instead of explicitly casting the driver to
JavascriptExecutor
and calling theexecuteScript
method each time, we could have methods like the already presentclick
that could be easily chained:We'd like to add to the Js class few methods to ideally replicate every method exposed by the WebElement interface, such as:
This way, users could use them in their tests like:
Additional context
COMPLETED
value of the ItVerifierTest should be modified accordingly.The text was updated successfully, but these errors were encountered: