How can I use "sendkeys" or find new elements in a new opened browser window and return back to my old window?
Here is the code I have so far:
DesiredCapabilities EQcapabilities = new DesiredCapabilities();
EQcapabilities.SetCapability("appTopLevelWindow", EQWindowHandle);
var EQSession = new WindowsDriver<WindowsElement>(
new Uri("http://127.0.0.1:4723"), EQcapabilities);
// new window:
EQSession.FindElementByName("...").Click();
// I have tried this, but it is not working
String newWindowHandle = EQSession.WindowHandles.Last();
var newWindow = EQSession.SwitchTo().Window(newWindowHandle);
newWindow.sendkeys("some text");