Using the project attached, execute test4 with Firefox.
Expected behavior: Step 9 is supposed to click on the Fang link.
Actual behavior: Another link is clicked instead.
With IE and Chrome it works as expected.
1 comment
ADMIN
Pavel
Posted on:27 Aug 2015 06:27
We have investigated this problem further and it seems the it is caused by some invalid html on the page. As seen in this screenshot (http://screencast.com/t/Q5JEs7SH0V) the HTML for the whole first column containing "HtmlAnchor" elements with text "Assume" is incorrect. The function wired to the "onclick" event ends with semicolon(";"), but in this case the semicolon is outside the quotes. This wrong html is rendered differently by different browsers and is also breaking Test Studio's indexing.
Test Studio is performing built-in validation when indexing the elements and if an element is considered invalid, it will not be added to the collection. For example, if we want to click on the 68-th link, but there are two incorrectly defined link elements before that(61&67), Test Studio will click on the 66-th link instead.
Here's how the wrong HTML looks like:
<a href="#" testtype="assume" testid="fang" onclick="openCheckAssumeWin('3')" ; >Assume</a>
while it should be like this:
<a href="#" testtype="assume" testid="fang" onclick="openCheckAssumeWin('3');" >Assume</a>