korimo / firewatir

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

2 problems regarding FireWatir version 1.1.1 on Firefox 3.0 #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

first problem:

The flash method doesn't seem to work properly, that is i don't see
anything flashing on the webpage.

second problem:

html (shortend version) of the page

<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
</head>
<body>
<div id="tiplayer" style="visibility: hidden; position: absolute; z-index:
1000;"/>
<script type="text/javascript" src="/javascripts/style.js?1213866874">
</script>
<div id="header" class="nounder">
</div>
<div id="sidebar">
<script type="text/javascript">
</script>
<div class="dtree">
<div class="dTreeNode">
<img id="id0" alt="" src="/images/dtree/all.gif?1154524929"/>
<a id="sd0" class="node" onclick="javascript: d.s(0);" href="/">All Results</a>
</div>
<div id="dd0" class="clip" style="display: block;">
<div class="dTreeNode">
</div>
<div id="dd2" class="clip" style="display: block;">
</div>
<div class="dTreeNode">
</div>
<div id="dd10" class="clip" style="display: none;">
</div>
<div class="dTreeNode">
</div>
<div class="dTreeNode">
</div>
<div class="dTreeNode">
</div>
<div id="dd14" class="clip" style="display: none;">
</div>
<div class="dTreeNode">
</div>
<div id="dd17" class="clip" style="display: none;">
</div>
<div class="dTreeNode">
</div>
<div id="dd18" class="clip" style="display: none;">
</div>
<div class="dTreeNode">
</div>
<div id="dd19" class="clip" style="display: none;">
</div>
<div class="dTreeNode">
</div>
<div id="dd21" class="clip" style="display: none;">
</div>
<div class="dTreeNode">
</div>
<div class="dTreeNode">
</div>
</div>
<div class="dTreeNode">
</div>
</div>
<div id="statusinfo">
</div>
</div>
<div id="content">
</div>
</body>
</html>

I would like to access the style attribute inside the div tags and get the
value of the display

now if i do (ff is the browser set to the webpage)

t=ff.div(:id,'dd2')
puts t.style

i get: [object CSSStyleDeclaration]

when i type

puts t.style.display

i get: [object CSSStyleDeclaration]nil

if i try something like 

puts t.document.currentStyle.invoke('display')
(which works in Watir)

i get: undefined method `currentStyle' for "":String (NoMethodError)

or if i do

puts t.style.invoke('display')
(which also works on Watir)

i get: undefined method `invoke' for "[object CSSStyleDeclaration]":String
(NoMethodError)

what im actually expecting to see is either
"block" or "none" depending on the situation

is there perhaps another way of accessing the attribute in FireWatir?
if so how?

What version of the product are you using? On what operating system?

FireWatir version 1.1.1
ruby version 1.8.6
windows xp 32

Please provide any additional information below.

If u need further information feel free to write me.

Dave Meyer 

Original issue reported on code.google.com by dme...@greenliff.com on 31 Jul 2008 at 9:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I got asked how i got past the fact that jssh is marked not compatible with ff3?

Well i just downloaded a newer version of jssh from croczilla. This probably 
wasn't a
good solution since 3 of the unittest failed. So i downgraded ff3 to 2.x when 
all the
unit tests passed. But unfortunatly it didn't solve the the 2 issues stated 
above

Original comment by dme...@greenliff.com on 12 Aug 2008 at 10:25

GoogleCodeExporter commented 9 years ago
There no need to downgrade to 2.x.

We need to add support for using "style" & "Flash" in Firewatir as you can use 
in Watir.

Original comment by ang...@gmail.com on 12 Aug 2008 at 11:58

GoogleCodeExporter commented 9 years ago
moved to http://jira.openqa.org/browse/WTR-395

Original comment by zeljko.f...@gmail.com on 5 Nov 2009 at 12:05

GoogleCodeExporter commented 9 years ago
Ticket moved to http://jira.openqa.org/browse/WTR. Please see comments for
the exact URL.

Original comment by zeljko.f...@gmail.com on 20 Nov 2009 at 10:39