Wednesday, November 19, 2014

On 1:00 AM by Unknown   No comments

Answer 84This is because IE expects attribute values to be in caps while other browsers expect it to be lower case letters. Hence

//tr[@style="background-color:yellow"] --- works with other browsers 
//tr[@style="BACKGROUND-COLOUR:yellow"] --- works with IE

Answer 85Besides notorious “same origin policy” restriction from JS, Selenium is also restricted from exercising anything which is outside browser. For example you cannot click on “Tools” option of your browser by just using Selenium.


Answer 86You can use Robot class in java to achieve this, but it would be dirty solution even if you get through this.

0 comments:

Post a Comment