try .present? instead

      From: Raja gopalan <[email protected]>
 To: [email protected] 
 Sent: Thursday, March 23, 2017 9:52 AM
 Subject: [wtr-general] Exist method is needed while I use visible method, Can 
it be avoided?
   
I find I couldn't use visible method without exists method because visible 
method throws the error if element is not present. Though it seems to be 
logically correct, it doesn't give the practical easiness, for an example, 
I can't write 
If element.visible?
instead I need to write
If element.exists? and element.visible? 
I always need to include the exists method call while I use visible method 
call, So can this method be changed to return true or false according to 
whether it is visible or not visible? 

-- 
Rajagopalan-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.
 
[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


   

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to