Wednesday, November 19, 2014

On 1:02 AM by Unknown   No comments
Answer 44You can change default behavior of Selenium IDE > element locator preference by crating JS file with following–

LocatorBuilders.order = ['css:name', 'css:id', 'id', 'link', 'name', 'xpath:attributes']; 

And add the file under “Selenium IDE Extension” under Selenium Options.

Answer 45If you want to simulate clicking “ok “ on alert than use – chooseOkOnNextConfirmation and if you want to simulate clicking “cancel” on alert than use - 
chooseCancelOnNextConfirmation ( )

Answer 46You can use command - contextMenu (locator) to simulate right click on an element in web page.


Answer 47Use command – captureEntirePageScreenshot to take screen shot of page.

0 comments:

Post a Comment