korimo / firewatir

Automatically exported from code.google.com/p/firewatir
0 stars 0 forks source link

getAllContents doesn't work in FireWatir, works in Watir #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  I am trying to use getAllContents on this fragment of HTML:

<select name="CountrySelector" id="CountrySelector">
<option selected="selected" value="">&lt; Select Country &gt;</option>
<option value="ca-en">Canada</option>
<option value="de-de">Deutschland</option>
<option value="gb-en">United Kingdom</option>
<option value="us-en">United States</option>
</select>

In FireWatir I get an empty array, in Watir I get a 5 element array as
expected.  Here's the FireWatir code:

site = "http://www.mysite.com"
log = Logger.new(STDOUT)
ff = FireWatir::Firefox.new()
ff.goto(site)
ff.select_lists.each { |select| log.info(select.getAllContents()) }

Output in irb:

I, [2007-05-07T14:20:01.448000 #2216]  INFO -- :
=> 0..0

Here's the Watir version:

ie = Watir::IE.new
ie.goto(site)
ie.select_lists.each { |select| log.info(select.getAllContents()) }

Output in irb:

I, [2007-05-07T14:28:43.724000 #3748]  INFO -- : ["< Select Country >",
"Canada", "Deutschland", "United Kingdom", "United States"]
=> 0

I would expect both watir and firewatir to return the same results for
getAllContents.

Original issue reported on code.google.com by adha...@gmail.com on 7 May 2007 at 7:30

GoogleCodeExporter commented 9 years ago
thanks a lot for pointing that out

Original comment by ang...@gmail.com on 10 May 2007 at 10:55

GoogleCodeExporter commented 9 years ago
Fixed. Needs testing, then will update SVN

Original comment by ang...@gmail.com on 19 Jun 2007 at 5:26

GoogleCodeExporter commented 9 years ago

Original comment by ang...@gmail.com on 22 Jun 2007 at 10:10

GoogleCodeExporter commented 9 years ago

Original comment by prema.a...@gmail.com on 22 Jun 2007 at 11:32