java - Not able to add Recipient and not able to print -
i using selenium webdriver+java+testng
on web page there textbox, need add email address of recipient , click 'add recipient button'
after click on button, email address moved box (which embedded in select tag) below it.
after email gets added box, embedded in option tag. have 2 problem this,
3.a. after have clicked add recipient button, not moved below box
3.b. not able print email address. using
driver.findelement(by.id("txtrecipients")).sendkeys("xx"); driver.findelement(by.xpath(".//*[@id='btnaddrecipient']")).click();
to print using
string myemail=driver.findelement(by.xpath(".//* [@id='lstboxalertrecipients']/option")).gettext(); system.out.println("the output :" +myemail);
so problem is, able write text box , after have clicked on addrecipient button, not able move below box.
are able move below box manually?
Comments
Post a Comment