Share
Go down
tpskarthick
Posts : 6
Join date : 2010-02-09
Age : 31
Location : Chennai

Selenium RC code in c sharp to capture alert messages...

on Wed Feb 10, 2010 10:58 pm
Could anyone kindly help me how to alter the code in C sharp to make selenium RC capture the alert,,,,,,,,,,,,,

thanks in advance,,,,,,,,,,,,,


Last edited by tpskarthick on Thu Feb 11, 2010 3:43 pm; edited 1 time in total
tpskarthick
Posts : 6
Join date : 2010-02-09
Age : 31
Location : Chennai

Re: Selenium RC code in c sharp to capture alert messages...

on Thu Feb 11, 2010 3:42 pm
selenium.Click("ctl00_lnkHome");
selenium.WaitForPageToLoad("60000");
selenium.Click("ctl00_ContentPlaceHolder1_HyperLink13");
selenium.WaitForPageToLoad("60000");
selenium.Click("ctl00_ContentPlaceHolder1_btnReport");
selenium.Select("ctl00_ContentPlaceHolder1_ddlOption", "label=AND");
selenium.Click("//option[@value='AND']");
selenium.Click("ctl00_ContentPlaceHolder1_btnRemove");
selenium.Select("ctl00_ContentPlaceHolder1_ddlOption", "label=OR");
selenium.Click("//option[@value='OR']");
selenium.Click("ctl00_ContentPlaceHolder1_btnRemove");
selenium.Select("ctl00_ContentPlaceHolder1_ddlOption", "label=AND");
selenium.Click("//option[@value='AND']");
selenium.Click("ctl00_ContentPlaceHolder1_btnRemove");

could any one help me in altering this code which in c sharp...... the bolded statements are not executed which shows error........
Back to top
Permissions in this forum:
You cannot reply to topics in this forum