• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

"verifyElementNotPresent" in Selenium RC

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to use a while loop in selenium RC and command : "verifyElementNotPresent"

Let's say for this scenario: while an element or text is not present in the page, the script to click on a button or to type on a field.

1. If I write like this: while(selenium.isElementPresent("id=ui_user")); is for "verifyElementPresent" and the script can't make difference between: "verifyElementNotPresent" and "verifyElementPresent"

2. If I write like this: while(verifyFalse(selenium.isElementPresent("id=ui_user"))); can't compile the code because Eclipse tell me: "Type mismatch: cannot convert from void to boolean. The method verifyFalse(boolean) from the type SeleneseTestCase is deprecated"

Example: while(verifyFalse(selenium.isElementPresent("id=ui_user"))) {
selenium.type("name=username", "UserTest");

So, how can I resolve this?

Thank you!
 
reply
    Bookmark Topic Watch Topic
  • New Topic