<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi there!<br>
<br>
I use `webdriver` package for test automation with PhantomJS. And I
need to click some button, but not with a `click` function, but with
a native JS. I see a special function for such a task, `executeJS`,
in the module
<meta charset="utf-8">
`Test.WebDriver.Commands`. So this is my code:<br>
<br>
<tt> ...</tt><tt><br>
</tt><tt> button <- findElement . ById $ "clearCart"</tt><tt><br>
</tt><tt> info <- elemInfo button</tt><tt><br>
</tt><tt> executeJS [JSArg info] "arguments[0].click();"</tt><tt><br>
</tt><tt> ...</tt><br>
<br>
But I got a runtime error:<br>
<br>
<tt>BadJSON "when expecting a (), encountered Null instead"</tt><br>
<br>
How can I fix it?<br>
<br>
- Denis<br>
</body>
</html>