Hi,
Does webtest check the current state of CSS? For example in my test
below, the page is initially loaded with display:none div. If the
user/webtest select the false radio button, the div remains hidden. If
the user selects the true radio, the div is display:block.
When using webtest recorder and its XPath utility, it does select the
current state when toggle the div. But the test below fails as it does
not see the CSS property change. Is there a way to make this work? (the
failure occurs on the last verifyXPath)
<invoke description="GET Onboarding/hr/previous-employee"
url="Onboarding/hr/previous-employee?empNum=${test.empNum}"/>
<setRadioButton description="Check radio button previous: false"
htmlId="previousfalse"/>
<verifyXPath description="if false - container should not display"
xpath="//[EMAIL PROTECTED]'prevEmplCont'][contains(@style, 'display: none')]"/>
<setRadioButton description="Check radio button previous: true"
htmlId="previoustrue"/>
<verifyXPath description="if true - container should be a block"
xpath="//[EMAIL PROTECTED]'prevEmplCont'][contains(@style, 'display: block')]"/>
thanks,
-Rob
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest