[wtr-general] Re: NoMethodError: undefined method 'show_all_objects' for #Watir::Browser:0x28..............

2014-01-08 Thread Chuck van der Linden
On Tuesday, January 7, 2014 10:48:45 PM UTC-8, Sanjeev Singh wrote:

 Hi All,

 I am getting the below error when I type the below code
 irb
 require watir
 ie = Watir::Browser.new :ie
 ie.goto http://www.google.com;
 #till this point it works fine

 ie.show_all_objects gives the error NoMethodError: undefined method 
 'show_all_objects' for #Watir::Browser:0x28..

 Any help on this will be greatly appreciated.


 thanks..!!


The error means just what it says, the method you are trying to call is not 
defined, in other words you are trying to invoke a method that does not 
exist.

What is it that you are trying to do/accomplish? 

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[wtr-general] Re: NoMethodError: undefined method 'show_all_objects' for #Watir::Browser:0x28..............

2014-01-08 Thread Sanjeev Singh


On Wednesday, January 8, 2014 12:48:37 PM UTC-5, Chuck van der Linden wrote:

 On Tuesday, January 7, 2014 10:48:45 PM UTC-8, Sanjeev Singh wrote:

 Hi All,

 I am getting the below error when I type the below code
 irb
 require watir
 ie = Watir::Browser.new :ie
 ie.goto http://www.google.com;
 #till this point it works fine

 ie.show_all_objects gives the error NoMethodError: undefined method 
 'show_all_objects' for #Watir::Browser:0x28..

 Any help on this will be greatly appreciated.


 thanks..!!


 The error means just what it says, the method you are trying to call is 
 not defined, in other words you are trying to invoke a method that does not 
 exist.

 What is it that you are trying to do/accomplish? 






Thanks for responding..!!!

I am new to Watir and my aim is to automate our application for regression 
testing using Watir a little bit and then demo it against my team for 
approval.
I am just stuck at the second page of my application and could not able to 
locate the object I am looking for.

Here is what I got from the page's HTML code:

html 
body 
div id = context-wrapper
iframe. . #[name= 
ConcertoContext]
html
div id = cpo-folder ..#this is the 3rd div within 
the above html
div class = cpo-cntent-wrapper ...#this is the 3rd div within the 
above div
div class = cpo-content
iframe 
 ..#name=application-content
html lang=en
frameset
frame .#name=SearchFilter
html
body .#id=SearchFilter
div ...#class = dt-filter 
filter
form  ...#id=FilterForm
table
tbody
tr
td .#this is the second 
td within the abovetr
script
input ..#name=
attribute.Name-given

NOTE: I am not able to locate the above highlighted in YELLOW object. That 
is the reason I was searching for all the objects so I will get to know all 
the elements, frames, tables etc.

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[wtr-general] Re: NoMethodError: undefined method 'show_all_objects' for #Watir::Browser:0x28..............

2014-01-08 Thread Sanjeev Singh
Hi All,

I finally was able to do the coding and set the values for the desired 
field. Below is the code that I used:

browser.div(:id = context-wrapper).frame(:id = 
ConcertoContext).div(:id = cpo-folder).div(:class = 
cpo-content-wrapper).div(:class = cpo-content).frame(:id = 
application-content).frame(:name = SearchFilter).div(:class = 
dt-filter filter).form(:id = filterForm).text_field(:id = 
attribute.Name-given).set DEMO
browser.div(:id = context-wrapper).frame(:id = 
ConcertoContext).div(:id = cpo-folder).div(:class = 
cpo-content-wrapper).div(:class = cpo-content).frame(:id = 
application-content).frame(:name = SearchFilter).div(:class = 
dt-filter filter).form(:id = filterForm).text_field(:id = 
attribute.Name-surname).set HIEONE
browser.div(:id = context-wrapper).frame(:id = 
ConcertoContext).div(:id = cpo-folder).div(:class = 
cpo-content-wrapper).div(:class = cpo-content).frame(:id = 
application-content).frame(:name = SearchFilter).div(:class = 
dt-filter filter).div(:class = actions).span(:id = 
default-button).span(:class = first-child).button(:id = 
default-button-button).click


All of the above 3 lines of code takes 3-4 minutes each to execute and by 
the time the last line executes the browser session expires. 

Please let me know if there is a quicker and smarter solution.


thanks in advance...!!!


On Wednesday, January 8, 2014 1:48:45 AM UTC-5, Sanjeev Singh wrote:

 Hi All,

 I am getting the below error when I type the below code
 irb
 require watir
 ie = Watir::Browser.new :ie
 ie.goto http://www.google.com;
 #till this point it works fine

 ie.show_all_objects gives the error NoMethodError: undefined method 
 'show_all_objects' for #Watir::Browser:0x28..

 Any help on this will be greatly appreciated.


 thanks..!!


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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.