Scenario
I fill in:
textBox34.Text;
textBox19.Text;
textBox1.Text;I press the button
- I press the button a second time I get an error:
No frame element found with name or id ads_frame1
Code
Browser.SwitchTo().Frame(textBox34.Text); // переключаемся в фрейм IWebElement selector = Browser.FindElement(By.CssSelector(textBox19.Text)); textBox1.Text = selector.Text; Application.DoEvents(); selector.Click(); Question
Why when I press the button again, an error occurs?