[wtr-general] Re: Unable to find Items in Firefox

2009-08-19 Thread Loft_Tester

I appologize if the text wraps on your screan, It did not  when the
entry was created

On Aug 19, 2:56 pm, Loft_Tester aaronr...@gmail.com wrote:
 Recently, we updated our Web UI, and now watir is unable to find items
 in firefox.  These items are also tested vs IE and those tests are
 working fine.  I can not find a reason why these Items are failing.
 At first,  I thought that it may be an issue with the depth of where
 the fields are in the HTML but that doesn't seem to be the issue.

 In my test I am selecting an Item in the table,  however the table
 labelRow is not able to be found.  So I put a break point in my code
 before where the selection happens and do a puts $Browser.table
 (:id,labelRow).exists?  That returns false.  I check firebug and it
 shows the table is there.  I tried testin other Items on the page and
 things that were there were also returning a false positive (double
 and triple checked spelling).

 Here is an example of what is returned from IE developer toolbar.  The
 last Item is the table.  I have placed 0's near items that returned
 true on exists? and an x that returned false.
 HTML
 .BODY
 .DIV id=page-wrap
 ..DIV id=main-content-wrapper
 ..DIV id=main-content 0
 ..DIV id=main-content-1 0
 ..DIV id=main-content2 0
 ..DIV id=extendedPrintViewContent x
 ..FORM
 id=extendedPrintViewContentForm x
 ..DIV
 id=content_labelGridView.tile x
 ..DIV class=printpage
 accordian
 ..DIV class=content
 ..DIV
 id=my_grid_Container 0
 ..DIV
 class=xhdrx
 ..DIV
 class=objboxx
 ..TABLE id
 =labelRowx

 The .'s are to help with spacing, to show the structure of the
 html.  So I wondered if the table was bing seen as a different name
 so I tried puts $Browser.show_tables  and it returned There are 0
 tables 0..-1.

 I have not been able to find a pattern as to why watir can not find
 these items.  Any sugestions would be greatly appreciated.  If you
 need more information please let me know.  Thanks
--~--~-~--~~~---~--~~
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: Unable to find Items in Firefox

2009-08-19 Thread Paul Rogers
firefox is far more fussy about correct html than IE. try pasting the html
into the w3c validator to make sure there are no structure errors.

Paul

On Wed, Aug 19, 2009 at 1:36 PM, Loft_Tester aaronr...@gmail.com wrote:


 I appologize if the text wraps on your screan, It did not  when the
 entry was created

 On Aug 19, 2:56 pm, Loft_Tester aaronr...@gmail.com wrote:
  Recently, we updated our Web UI, and now watir is unable to find items
  in firefox.  These items are also tested vs IE and those tests are
  working fine.  I can not find a reason why these Items are failing.
  At first,  I thought that it may be an issue with the depth of where
  the fields are in the HTML but that doesn't seem to be the issue.
 
  In my test I am selecting an Item in the table,  however the table
  labelRow is not able to be found.  So I put a break point in my code
  before where the selection happens and do a puts $Browser.table
  (:id,labelRow).exists?  That returns false.  I check firebug and it
  shows the table is there.  I tried testin other Items on the page and
  things that were there were also returning a false positive (double
  and triple checked spelling).
 
  Here is an example of what is returned from IE developer toolbar.  The
  last Item is the table.  I have placed 0's near items that returned
  true on exists? and an x that returned false.
  HTML
  .BODY
  .DIV id=page-wrap
  ..DIV id=main-content-wrapper
  ..DIV id=main-content 0
  ..DIV id=main-content-1 0
  ..DIV id=main-content2 0
  ..DIV id=extendedPrintViewContent x
  ..FORM
  id=extendedPrintViewContentForm x
  ..DIV
  id=content_labelGridView.tile x
  ..DIV class=printpage
  accordian
  ..DIV class=content
  ..DIV
  id=my_grid_Container 0
  ..DIV
  class=xhdrx
  ..DIV
  class=objboxx
  ..TABLE id
  =labelRowx
 
  The .'s are to help with spacing, to show the structure of the
  html.  So I wondered if the table was bing seen as a different name
  so I tried puts $Browser.show_tables  and it returned There are 0
  tables 0..-1.
 
  I have not been able to find a pattern as to why watir can not find
  these items.  Any sugestions would be greatly appreciated.  If you
  need more information please let me know.  Thanks
 


--~--~-~--~~~---~--~~
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] WebDriver

2009-08-19 Thread Pallavi Sharma
Hi

Has anyone used Webdriver[http://code.google.com/p/webdriver/] as a
automation tool here??

Is there any comparisions of the same available with watir?

If used, can anyone share their experience with the tool?


Thanks

Pallavi.

--~--~-~--~~~---~--~~
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] query regarding destination of picture save

2009-08-19 Thread shailesh

I am still learning the basics .
This might be very simple but I am not getting the required result
although my other friends are able to run it properly. Please help.

This is the code to save images from a webpage from Watir Examples:

require 'watir'

browser = Watir::IE.new
browser.goto('http://twitter.com')

idx = 0

# using the images collection, iterate through all of the images on a
page
browser.images.each do |x|
  idx += 1
  # apparently the string accepted by the string method will not allow
variable substitution
  location = 'd:\file' + idx.to_s + '.jpg'
  x.save(location)
end


but the ouput images go to admin\pictures .Whatever destination folder
I give it always goes back to the same folder also the images are
overwritten so at the end of the run I get the last file saved .Also
the name of the file remains blank.jpg no matter what name is try to
give it.

Can anyone please help me out with the possible cause ? The worst part
is that it is running fine on other computers .


Thanks in Advance
--~--~-~--~~~---~--~~
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] retrieving data from Child IE window to Parent IE Window

2009-08-19 Thread blranilmenon

Hi All,

Below the test case i am currently trying to automate using Watir, if
some one in this group could help me out.

Test case is:
1) Open url(www.sample.html) in IE.
2) Click Find button. New IE (Child) window open.
3) Select JJ User from secondary window.
4) Selected user name is displayed in parent IE window.


Thanks,
Anil
--~--~-~--~~~---~--~~
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: retrieving data from Child IE window to Parent IE Window

2009-08-19 Thread Raveendran P
Hi,

Please look on this URL -- http://wtr.rubyforge.org/ and try yourself

Thanks

On Thu, Aug 20, 2009 at 10:28 AM, blranilmenon blranilme...@gmail.comwrote:


 Hi All,

 Below the test case i am currently trying to automate using Watir, if
 some one in this group could help me out.

 Test case is:
 1) Open url(www.sample.html) in IE.
 2) Click Find button. New IE (Child) window open.
 3) Select JJ User from secondary window.
 4) Selected user name is displayed in parent IE window.


 Thanks,
 Anil
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---