3

Is it possible to click on hidden/non-visible elements, using the selenium java webdriver, without using the JavaScript executor to click via JavaScript? The tests I'm performing are in a browser with JavaScript disabled, which is why I can't use the jse.

1 Answer 1

3

Selenium is meant to replicate the end user's behavior. Since any end user cannot do anything with the hidden element it's not realistic to interact with hidden elements directly. See this answer.

So, the answer is No there is no way without the javascript executor. Selenium does not interact with the hidden element directly

Sign up to request clarification or add additional context in comments.

Comments

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.