Mo.
Mo.

Reputation: 42523

How do I check the value inside a text feild while using ruby selenium testing?

I am running a selenium test using ruby and was wondering how I can assert the value inside a text field?

I have a page where once it's loaded has text inside the editable text field and I was wondering how I can check if the text is present?

Upvotes: 0

Views: 365

Answers (1)

Dave Hunt
Dave Hunt

Reputation: 8223

assert_equal "myValue", @selenium.get_value("id=myField")

Upvotes: 3

Related Questions