Quality is delighting customers
Hi Everyone,
Hope all are doing well.
I am new to Selenium Tool so Kindly help me how to use "Assertions" in Selenium with some examples.
Thanks & Regards
Chitra.C
Tags:
Permalink Reply by Anil kumar B on February 10, 2012 at 9:27am If you are using c# webdriver then you can use the Assert() method that comes with visual stdio unit test dll.. Create a test project in vs. You will get Assert() method in it.
Permalink Reply by Chitra.C on February 10, 2012 at 11:57am Hi Anil,
Thanks for the reply. Actually i m using Selenium IDE. I want to insert checkpoints and test. I think in Selenium IDE they use Assertions. Thats why i asked.
plz send more info on this.
Regards
Chitra.C
Permalink Reply by Anil kumar B on February 10, 2012 at 2:37pm i am sorry chitra.. i am not working on ide..
Permalink Reply by Thite Nitin on February 10, 2012 at 3:11pm Hi Chitra,
While recording the scripts,select that object> right click > (A popup list will appear)> There u can have an assert command for the same (With other assert commands)>Select the suitable. (This is the easiest way of inserting commands while recording)
Thanks and Regards,
Nitin
Permalink Reply by Venu Madhav on March 28, 2012 at 5:51pm you have lot of commands on assertions like assertelementpresent, asserttext, asserttextpresent etc. all you need to do is, in the command list box, select the assertcommands and fill the target and value based on the arguments.
© 2012 Created by Quality Testing.