Version 1.11.x #172
giulong
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Html reports with Google Charts
Beside the default html template, a new one that leverages Google's pie charts is available for both Summary and Testbook. Here's a preview of the latter:
To pick this one, you just need to specify this template in your
configuration.yaml
:Js
Thanks to @AndreaDotDev for working on the Add Javascript helper methods feature, Spectrum now injects the
js
object that you can use to programmatically execute Javascript actions without manually writing the scripts. As an example, instead of writing:you can directly do this:
Be sure to check the Javascript Executor docs for the details.
@JsWebElement
The
Js
implementation above lets you run Javascript programmatically in a clean way. If you need to always interact with a webElement using Javascript, you can also choose to annotate it with@JsWebElement
like this:The result is that, without doing nothing else, you can call the regular webElement methods and the execution will actually be delegated to
Js
, resulting in Javascript-only interactions. This means, as an example, that methods likesendKeys
orgetText
will actually be executed in Javascript.Check the JsWebElement docs for the details.
This discussion was created from the release Version 1.11.x.
Beta Was this translation helpful? Give feedback.
All reactions