[wtr-general] Re: need a command to check for a feild is visible ornot

2009-09-22 Thread ravi pulipaka
its giving me an error undefiend meathod visible
i tried updating the gems but stil the error is there
can you help regarding

thanx in advance
ravi

On Mon, Sep 21, 2009 at 11:12 PM, Rohan Ojha rohan.o...@bsil.com wrote:

  If you want to check whether a given object is visible in the UI of the
 page then you can try:





 ie.hidden (:attribute, property).visible? ==false then

 puts ‘Object is hidden’

 else

 puts ‘Object is not hidden’

 end





 Note that you have to use hidden instead of text_field or button





 *Thanks*,
 *Rohan Ojha*
  *Blue Star Infotech* lÈ+91 900 4955058l ( +91 22 6688 6969 l 6 +91 22
 6688 6999 l * rohan.o...@bsil.com
   www.bsil.com - Where Partnerships Are Built on Trust
  --

 *From:* watir-general@googlegroups.com [mailto:
 watir-gene...@googlegroups.com] *On Behalf Of *ravi pulipaka
 *Sent:* Tuesday, September 22, 2009 6:29 AM
 *To:* watir-general@googlegroups.com
 *Subject:* [wtr-general] Re: need a command to check for a feild is
 visible ornot



 I have tried visible?.should be false but it didnt work




  On Mon, Sep 21, 2009 at 8:19 PM, orde ohil...@gmail.com wrote:


 Maybe something like:

 browser.text_field(:id, 'id').visible?

 http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html#M000318

 Hope that helps.


 On Sep 21, 1:31 pm, ravi ravi8...@gmail.com wrote:
  I have a situation
 
  I have a text box which pops up when I select a option from a
  selectlist above it, otherwise is is not visible on the screen
 
  if I use the command available in watir
 
   eval(browser.field).should_not exist -  it fails
 
  if i say should exist ---it passes
 
  I think it is in the dom
  can you suggest me any options
 
  Thanx in advance
 
  regards
  ravi




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: need a command to check for a feild is visible ornot

2009-09-22 Thread karim rayani
Could you share the URL of the application with us so that I could
understand how the application id designed.

FROM
Karim Rayani

http://karimnumerouno.wordpress.com



On Tue, Sep 22, 2009 at 7:42 AM, ravi pulipaka ravi8...@gmail.com wrote:

 its giving me an error undefiend meathod visible
 i tried updating the gems but stil the error is there
 can you help regarding

 thanx in advance
 ravi

 On Mon, Sep 21, 2009 at 11:12 PM, Rohan Ojha rohan.o...@bsil.com wrote:

  If you want to check whether a given object is visible in the UI of the
 page then you can try:





 ie.hidden (:attribute, property).visible? ==false then

 puts ‘Object is hidden’

 else

 puts ‘Object is not hidden’

 end





 Note that you have to use hidden instead of text_field or button





 *Thanks*,
 *Rohan Ojha*
  *Blue Star Infotech* lÈ+91 900 4955058l ( +91 22 6688 6969 l 6 +91 22
 6688 6999 l * rohan.o...@bsil.com
   www.bsil.com - Where Partnerships Are Built on Trust
   --

 *From:* watir-general@googlegroups.com [mailto:
 watir-gene...@googlegroups.com] *On Behalf Of *ravi pulipaka
 *Sent:* Tuesday, September 22, 2009 6:29 AM
 *To:* watir-general@googlegroups.com
 *Subject:* [wtr-general] Re: need a command to check for a feild is
 visible ornot



 I have tried visible?.should be false but it didnt work




  On Mon, Sep 21, 2009 at 8:19 PM, orde ohil...@gmail.com wrote:


 Maybe something like:

 browser.text_field(:id, 'id').visible?

 http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html#M000318

 Hope that helps.


 On Sep 21, 1:31 pm, ravi ravi8...@gmail.com wrote:
  I have a situation
 
  I have a text box which pops up when I select a option from a
  selectlist above it, otherwise is is not visible on the screen
 
  if I use the command available in watir
 
   eval(browser.field).should_not exist -  it fails
 
  if i say should exist ---it passes
 
  I think it is in the dom
  can you suggest me any options
 
  Thanx in advance
 
  regards
  ravi







 



-- 
Regards,

Alkarim Rayani

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: need a command to check for a feild is visible ornot

2009-09-22 Thread ravi pulipaka
thanx guys I go it

http://wiki.openqa.org/pages/viewpage.action?pageId=1119

once agin thanx agin for youe help

On Tue, Sep 22, 2009 at 11:59 AM, karim rayani karim@gmail.com wrote:

 Could you share the URL of the application with us so that I could
 understand how the application id designed.

 FROM
 Karim Rayani

 http://karimnumerouno.wordpress.com




 On Tue, Sep 22, 2009 at 7:42 AM, ravi pulipaka ravi8...@gmail.com wrote:

 its giving me an error undefiend meathod visible
 i tried updating the gems but stil the error is there
 can you help regarding

 thanx in advance
 ravi

   On Mon, Sep 21, 2009 at 11:12 PM, Rohan Ojha rohan.o...@bsil.comwrote:

  If you want to check whether a given object is visible in the UI of the
 page then you can try:





 ie.hidden (:attribute, property).visible? ==false then

 puts ‘Object is hidden’

 else

 puts ‘Object is not hidden’

 end





 Note that you have to use hidden instead of text_field or button





 *Thanks*,
 *Rohan Ojha*
  *Blue Star Infotech* lÈ+91 900 4955058l ( +91 22 6688 6969 l 6 +91 22
 6688 6999 l * rohan.o...@bsil.com
   www.bsil.com - Where Partnerships Are Built on Trust
  --

 *From:* watir-general@googlegroups.com [mailto:
 watir-gene...@googlegroups.com] *On Behalf Of *ravi pulipaka
 *Sent:* Tuesday, September 22, 2009 6:29 AM
 *To:* watir-general@googlegroups.com
 *Subject:* [wtr-general] Re: need a command to check for a feild is
 visible ornot



 I have tried visible?.should be false but it didnt work




  On Mon, Sep 21, 2009 at 8:19 PM, orde ohil...@gmail.com wrote:


 Maybe something like:

 browser.text_field(:id, 'id').visible?

 http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html#M000318

 Hope that helps.


 On Sep 21, 1:31 pm, ravi ravi8...@gmail.com wrote:
  I have a situation
 
  I have a text box which pops up when I select a option from a
  selectlist above it, otherwise is is not visible on the screen
 
  if I use the command available in watir
 
   eval(browser.field).should_not exist -  it fails
 
  if i say should exist ---it passes
 
  I think it is in the dom
  can you suggest me any options
 
  Thanx in advance
 
  regards
  ravi











 --
 Regards,

 Alkarim Rayani


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: need a command to check for a feild is visible or not

2009-09-21 Thread orde

Maybe something like:

browser.text_field(:id, 'id').visible?

http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html#M000318

Hope that helps.

On Sep 21, 1:31 pm, ravi ravi8...@gmail.com wrote:
 I have a situation

 I have a text box which pops up when I select a option from a
 selectlist above it, otherwise is is not visible on the screen

 if I use the command available in watir

  eval(browser.field).should_not exist -  it fails

 if i say should exist ---it passes

 I think it is in the dom
 can you suggest me any options

 Thanx in advance

 regards
 ravi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: need a command to check for a feild is visible or not

2009-09-21 Thread ravi pulipaka
I have tried visible?.should be false but it didnt work





On Mon, Sep 21, 2009 at 8:19 PM, orde ohil...@gmail.com wrote:


 Maybe something like:

 browser.text_field(:id, 'id').visible?

 http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html#M000318

 Hope that helps.

 On Sep 21, 1:31 pm, ravi ravi8...@gmail.com wrote:
  I have a situation
 
  I have a text box which pops up when I select a option from a
  selectlist above it, otherwise is is not visible on the screen
 
  if I use the command available in watir
 
   eval(browser.field).should_not exist -  it fails
 
  if i say should exist ---it passes
 
  I think it is in the dom
  can you suggest me any options
 
  Thanx in advance
 
  regards
  ravi
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: need a command to check for a feild is visible ornot

2009-09-21 Thread Rohan Ojha
If you want to check whether a given object is visible in the UI of the page
then you can try:

 


 

ie.hidden (:attribute, property).visible? ==false then

puts 'Object is hidden'

else

puts 'Object is not hidden'

end

 

 

Note that you have to use hidden instead of text_field or button

 

 

Thanks,
Rohan Ojha
 Blue Star Infotech l*+91 900 4955058l * +91 22 6688 6969 l 6 +91 22 6688
6999 l *  mailto:rohan.o...@bsil.com rohan.o...@bsil.com
   http://www.bsil.com/ www.bsil.com - Where Partnerships Are Built on
Trust 

  _  

From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com]
On Behalf Of ravi pulipaka
Sent: Tuesday, September 22, 2009 6:29 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: need a command to check for a feild is visible
ornot

 

I have tried visible?.should be false but it didnt work






On Mon, Sep 21, 2009 at 8:19 PM, orde ohil...@gmail.com wrote:


Maybe something like:

browser.text_field(:id, 'id').visible?

http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html#M000318

Hope that helps.


On Sep 21, 1:31 pm, ravi ravi8...@gmail.com wrote:
 I have a situation

 I have a text box which pops up when I select a option from a
 selectlist above it, otherwise is is not visible on the screen

 if I use the command available in watir

  eval(browser.field).should_not exist -  it fails

 if i say should exist ---it passes

 I think it is in the dom
 can you suggest me any options

 Thanx in advance

 regards
 ravi





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---