selenium IDE storeAlertPresent too storePromptPresent Commands

After real long time, New postal service near selenium IDE. If you lot are novel user of selenium as well as then you lot tin laissez passer on the sack larn selenium IDE commands i yesteryear i from ascendancy listing PART 1 as well as PART 2 where I own got described to a greater extent than oftentimes than non used commands amongst elementary examples. Selenium IDE tin laissez passer on the sack equally good helps you lot to automate your web
application testing procedure If It has elementary flow. Now today, Let me laissez passer on you lot an instance of two to a greater extent than selenium IDE commands.

You tin laissez passer on the sack read to a greater extent than store related commands of selenium IDE.

"storeAlertPresent" Command
"storeAlertPresent" ascendancy volition banking concern gibe as well as verify If in that place Is whatever warning message on electrical flow page. If warning Is in that place as well as then It volition supply as well as shop truthful In variable else It volition supply false.

"storePromptPresent" Command
Same way, "storePromptPresent" volition banking concern gibe for "Prompt" popular upward  on page. If institute as well as then shop truthful else shop faux In variable.

You tin laissez passer on the sack role both these commands when you lot wants to own got only about activity based on warning or promp introduce or non present.

New Test
CommandTargetValue
open
clickcss=div > input[type="button"]
storeAlertPresenti
assertAlertHi.. This is warning message!
echo${i}
click//button[@onclick='myFunctionf()']
storePromptPresentj
echo${j}
assertPromptYour Name Please


Run to a higher house instance In your selenium IDE as well as divulge result. Both "storeAlertPresent" as well as "storePromptPresent" commands volition shop truthful In variables because previous activity for both ascendancy Is generating popup of warning as well as prompt.
More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post