| || |
Return value of command\'s selenium
I want to verify a object and if it exist the command's selenium return is true and otherwise. But I can't find any command for it. I just saw these assert.... but these command don't have any return value.
The Watir tool has support the similar command (exist? or exists?).And I don't know the selenium has support those commands. Please help me. Thanks
Re: Return value of command\'s selenium
Not sure if this helps but you can use selenium commands inside assert like this -
assertEquals("error message is objects don't match", "Expected Object", selenium.getText("element locator")