Hi,

<groovy>
def jsEnabled = step.context.webClient.javaScriptEnabled
println "JS enabled: $jsEnabled"
</groovy>

Cheers,
Marc.

Parkin Roman wrote:
Hi all

JavaScript is activate via config.
<config >
       <option name="JavaScriptEnabled" value="true"/>
</config>
But during test it is possible to disable/enable JavaScript again by <enableJavaScript />

Can i get current JavaScript state via groovy or other methods as for Webtest results dir?

<groovy description="Output">
step.setWebtestProperty 'results.dir.test', step.context.config.webTestResultDir.absolutePath
</groovy>
and then check ${results.dir.test} property.


Best regards,
Roman Parkin

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to