Hi Mark,
Thanks for getting back to me.
Do you mean that the show_attribute method will work?
I've given it a try but no joy.
Thanks,
Mark.
-----Original Message-----
From: Cain, Mark [mailto:[EMAIL PROTECTED]
Sent: 14 October 2005 15:07
To: [email protected]
Subject: Re: [Wtr-general] Table style attribute changes
This will work as long as this statement:
tbl = $ie.table(:id, /someuniqueid/)
is after any dynamically changed items on the page.
--Mark
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Gargan
Sent: Friday, October 14, 2005 6:57 AM
To: '[email protected]'
Subject: Re: [Wtr-general] Table style attribute changes
Hi Ulrike,
I'm pretty new to Ruby and Watir to be honest so I may not be
off much help but I was wondering about this aswell recently when trying
to access ie's scrollIntoView method. I was hoping there was some way of
calling an method on the IE object in the browser using WATIR as opposed
to calling a WATIR wrapped method. Hope this makes sense.
I guess in the example below the el in el.style.display is the table?
Does anyone know if there's anyway to get further information about the
table object through WATIR? Is there a method that you can test the
attributes of objects in the IE DOM object directly?
something along the lines of
WATIR::IE.show_attribute(tableToCheck, attributeToCheck)
so
tbl = $ie.table(:id, /someuniqueid/)
tblDisplayed =$ie.show_attribute(tbl,"style.display")
Thanks,
Mark.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 14 October 2005 14:26
To: [email protected]
Subject: [Wtr-general] Table style attribute changes
Hi all,
Im trying to verify if the correct table is displayed, depending on a
selection from a dropdown list.
All tables (for all categories in the dropdown list) are already present
in the HTML with the attributes :
<table id="someuniqueid" cellspacing="1" cellpadding="2" border="0"
style="{display:none}">
Depending on the selection I make, the attribute style changes to
display: .
function show(id, show) {
var el = getElementById(id);
if (null != el) {
el.style.display = show ? "" : "none";
}
}
The problem is that this change is not shown in the DOM.
This means that my test case will never fail (if I verify if the
correct table is present on the page depending on my dropdown list
selection)
How can I verify that the correct table is displayed?
Any help would be much appreciated.
Ulrike
Ulrike Polle
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general