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:

  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>  

If you have any concerns please let me know!

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -