Hey,
Try the following it should work:
bool hasText = webdriver.findelement(by.id (” element id“)).text==””;
Regards,
Manar Husrieh
Hey,
Try the following it should work:
bool hasText = webdriver.findelement(by.id (� element id�)).text==��;
Regards,
Manar HusriehOn Oct 27, 2011 3:34 PM, "Thiago Morais" <fun...@hotmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
How i can verify if the field is empety?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/vAvQqsXxh6IJ.
VerifyValue | txtUsername |
VerifyValue | txtUsername | moises.siles
VerifyValue | txtUsername | "asdfsasfsdfsda"
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/qz5nKAx_uT8J.
Hi,
First of all, are you using web driver or selenium ide?
If you are using web driver the above statement will work, but this is how it will works:
1) find the field using any locator you wish to use. (what I used above is the id locator i.e. By.id )
2) to get the text of the field I used the text property and I checked if its value is empty.
3) I put the result in a bool variable. Instead of that you could use it in an if statement.
I hope I made my self clearer.
Good luck.
Reguards,
Manar Husrieh
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/qz5nKAx_uT8J.
If the textbox is empty the following will return trueVerifyValue | txtUsername |
First of all, are you using web driver or selenium ide?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/65q53CJffBcJ.
so it is the problem i want verify if the field is in blankand if i use the command verifyvalue with value in blank it don't works
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/Qpe5r4xSRMAJ.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/gyT8x7LzJaUJ.
is true, i was doind confusion, thanks a lot ;)
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/VVW0k-mFCM4J.