0

I have tried this:

@browser.execute_script("arguments[0].click();", button_element)

I took help from here:

but it is giving error:

   Selenium::WebDriver::Error::UnknownError:
       unknown error: arguments[0].click is not a function
2
  • 1
    Seems like it means that arguments[0] doesnt have click function. Commented Nov 30, 2015 at 10:09
  • Could you give us a bit more information about what you are actually trying to achieve here? Commented Dec 1, 2015 at 12:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.