thoffmann
8 years agoNew Contributor
Issue with Chrome and ClickItem
Hello,
i have a problem with a select combo box and the method ClickItem() in Chrome.
Here is an example (converted from keyword test to script):
function SelectFromDropDown_Chrome()
{
//Opens the specified URL in a running instance of the specified browser.
Browsers.Item(btChrome).Navigate("https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select");
//Selects the 'Audi' item of the 'select' combo box.
Aliases.browser.pageWwwW3schoolsComTagsTryitAspF.frameIframeresult.select.ClickItem("Audi");
//Checks whether the 'wText' property of the Aliases.browser.pageWwwW3schoolsComTagsTryitAspF.frameIframeresult.select object equals 'Audi'.
aqObject.CheckProperty(Aliases.browser.pageWwwW3schoolsComTagsTryitAspF.frameIframeresult.select, "wText", cmpEqual, "Audi");
}
At the end Chrome select "Opel" and not the given text "Audi".
This strange behavior only exists in Chrome. In the others browsers (Firefox, Internet Explorer, Edge) the keyword test or script works.
Can anyone help me with this problem?
Regards
Thomas