c# - Selenium WebDriver with RadWindow -
i attempting access form within radwindow. web page uses window.radopen() generate asp.net popup. need access popup, edit it, , click button. there way using selenium webdriver?
specifically, radwindow contains textarea id of "txtentries" , button , id of "btnaccept". have tried finding textarea first, below, no luck.
i attempting:
state = wait.until<iwebelement>((d) => { return d.findelement(by.cssselector("div#radwindow #txtentries")); }); with failed results.
yea, there's way.. since radwindow not actual window, makes easier.
first, use css , have parent selector. like,
div#radwindow then add elements want find that. e.g.
input[type='text'].someclass then concatenate them, turns -
div#radwindow input[type='text'].someclass which translates in css "first find div id radwindow, , find input descendant of div, type attribute equals text has someclass attached.
Comments
Post a Comment