1
Try to include:
using System.Linq;
1
2
Try to include:
using System.Linq;
0
Try to identify the window you need using:
foreach (var handle in driver.WindowHandles)
{
driver.SwitchTo().Window(handle);
}
Once you figure out which window, you can reach it like this:
driver.SwitchTo().Window(driver.WindowHandles[1]);
Browser other questions tagged c# selenium selenium-webdriver
You are not signed in. Login or sign up in order to post.
It worked for Last() to be accepted, but when I went around the application, it didn’t change the windows, it just went to the next instruction that I was looking for an element in the other window and didn’t find.
– Camila Cardoso