Friday, 2 September 2011

Selenese

the selenium often callled as selenese
Browser Commands:
start(): to lunch the browser.
open(): to open the url of the application
windowMaximize() to maximize the current window.
stop(): to stop the execution of the script
close(): to kill the browser
Interaction Commands:
type(): to enter some value into the textbox
selenium.type("property name","value");
click(): by using this command we can click on a button,radio button, check box,image and link.
selenium.click("property name")  //button, radio button and check box,image
selenium.click("link=display name") //link
select(): to select some value from combo box,drop down or list box
selenium.select("property name","male");
check(): to click ona check box
selenium.check("property name");
selectWindow(): to identify the popups
selenium.selectWindow("window name or id or title");
getAlert(): to click on "Ok" button on the alet box
selenium.getAlert();
getConfirmation: to click "Ok" on the confirmation message
selenium.getConfirmation();
selenium.chooseCancelonNextConfirmation();

No comments:

Post a Comment