Pages

Saturday, 19 September 2015

Selenium IDE "open"and "openWindow" commands with example 

DAY 2

 "open" Command

"Open" command in selenium IDE is mostly used command in selenium IDE. "Open" command opens the URL whatever you want to open in your current selected browser window or tab.

In bellow given sample script, it will open "https://www.google.com" URL into your currently selected browser window.
New Test
Command Target Value
open https://www.google.com

 
"openWindow" Command

"openWindow" is useful to open your URL in new window. If you have not entered URL in target, It will open just blank window.

In bellow given example, "openWindow" command will open "https://www.yahoo.com" in new browser tab. Please note, it firefox has blocked popup window then selenium IDE will show you error. In this case please allow browser to open popups.


New Test
Command Target Value
open https://www.google.com
openWindow https://www.yahoo.com My_ID








No comments:

Post a Comment