Selenium IDE Tutorial : verifySelectedId in addition to verifyNotSelectedId commands alongside example

Earlier nosotros had seen how to verify selected value of driblet downward or listing box using LABEL, VALUE together with INDEX. In selenium IDE, at that topographic point is 1 to a greater extent than command is "verifySelectedId" to verify id of selected value inwards driblet downward or list box. If your driblet downward value contains id attribute hence you lot tin dismiss purpose it to choose it. Let me
explain you lot 2 related commands amongst example.

"verifySelectedId" Command
"verifySelectedId" ascendance volition cheque the id attribute of electrical flow selected value together with compare it amongst expected id. If both check hence it volition driblet dead else it volition neglect together with provide mistake similar "[error] Actual value 'car1' did non check 'car2'" inwards log. 

"verifyNotSelectedId" Command
"verifyNotSelectedId" ascendance volition remember together with compare id attribute of selected value. If expected together with actual check hence it volition neglect else it volition pass. Both these commands plant exclusively if driblet downward values incorporate id attribute.

New Test
CommandTargetValue
open
verifySelectedId//select[@id='Carlist']car1
verifySelectedId//select[@id='Carlist']car2
verifyNotSelectedId//select[@id='Carlist']car1
verifyNotSelectedId//select[@id='Carlist']car2

Run inwards a higher house illustration together with verify result. For both commands, 1 volition driblet dead together with 1 volition fail. Prepare same assay illustration of your software spider web application's regression assay scenario together with verify result.

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