java - Not able to add Recipient and not able to print -


i using selenium webdriver+java+testng

  1. on web page there textbox, need add email address of recipient , click 'add recipient button'

  2. after click on button, email address moved box (which embedded in select tag) below it.

  3. 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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -