c# - Identifying elements in Iframe after content change using Selenium -
problem I have an iframe that contains a form, Once upon a time, I present some of the content of the IFRM transformation on the basis of information. So I need to verify the results / elements as part of my test. What did I do I used the switch () is. The data for frame IFrame for submitting, and "WebDriveWit" is used to wait for the results (I'm waiting for one element) issue After submitting new elements Am I doing something and after time the "waiting element" fails, even if the result screen is visually impaired Are you loaded in IFrame wrong? Or can someone suggest me? I am working on the same scenario and for this To work, you can try: If you have any concerns please let me know!
driver. SwitchTo (). Frame (frame); Driver.findElement (by.cssSelector ("input [name = \" login \ "]). Click (); // whatever you want to frame. Driver.switchTo () defaultContent (); Thread.Sleep (3000); driver.switchTo (frame). Driver.findElement (By.cssSelector ("Input [name = \" login \ "]")). GetText (); // Whar you ever want to < / Code>
Comments
Post a Comment