0

How can we capture run time values using selenium webdriver ?

For e.g while testing a banking site, we provide all details necessary to create a new customer and click submit. A customer ID is generated shown in the next page with the details of the customer listed in a tabular format (after successful new customer creation). How do we capture this ID ?

Any help appreciated

asked Nov 18, 2014 at 11:06
1
  • 1
    Do you mean you just want to find the value on the page, so you can use it as a variable in your test method? Commented Nov 18, 2014 at 12:23

1 Answer 1

1

If ID is shown on the page - it is shown as text in some element. Which has some locator. Find that element and get it's text or value property, as appropriate.

answered Nov 18, 2014 at 13:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.