When the JS function passed to selectorExecute has // comments in it, Webdriver fails with the error "Failed: unknown error: Runtime.evaluate threw exception: SyntaxError: Unexpected end of input".
https://github.com/webdriverio/webdriverio/issues/2172
When the JS function passed to selectorExecute has // comments in it, Webdriver fails with the error "Failed: unknown error: Runtime.evaluate threw exception: SyntaxError: Unexpected end of input". https://github.com/webdriverio/webdriverio/issues/2172