0

Is there a way to get the element value from browser to web driver. i.e. whenever I click on browser it should send value of that element to selenium web driver.

2
  • 1
    Please provide an example what exactly you are trying to do. Commented Aug 23, 2014 at 5:32
  • look what i want is that if user click any where in side browser any where it should send its value to selenium Commented Sep 5, 2014 at 16:37

1 Answer 1

3

If you are trying to get some value from browser, you can use

String str = Driver.findElement(By.xpath("xpath of the object").getText();

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.