0

I have some error with Chrome and Selenium in new tab

I try much of thing to solve it like

IWebElement inputBox = driver.FindElement(By.TagName("html"));
        inputBox.SendKeys(OpenQA.Selenium.Keys.Control + "t");

and much more like Actions but not work I try it with also chrome v43 also not a good result

anyone know how to open the new tab in Chrome with selenium?

Qais Bsharat
  • 146
  • 3
  • 12
  • Have a look here http://stackoverflow.com/questions/17547473/how-to-open-a-new-tab-using-selenium-webdriver-with-java. – Saurabh Gaur Jan 12 '17 at 08:20
  • In Chrome it not work bro – Qais Bsharat Jan 12 '17 at 09:45
  • try with `body` element, `IWebElement inputBox = driver.FindElement(By.TagName("body")); inputBox.SendKeys(OpenQA.Selenium.Keys.Control + "t");` – Naveen Kumar R B Jan 12 '17 at 10:38
  • bro its work with firefox but I have a problem in chrome anyway also not work with chrome Thanks – Qais Bsharat Jan 12 '17 at 18:48
  • Any new help with chrome in selenium :) – Qais Bsharat Jan 14 '17 at 13:12
  • @Qais, Hi there, did you find out how to do this? I am finding the same results. None of the above works. Been digging around stackoverflow for an hour now! – Obbles Sep 10 '18 at 03:09
  • @Obbles I used Autoit LIBRARY :) – Qais Bsharat Sep 12 '18 at 18:26
  • haha, actually that's what I ended up doing also. Worked well. For other readers who may read this there are a few things that might hamper the usage of autoit. But here https://stackoverflow.com/questions/52257548/how-to-get-selenium-to-operate-two-browser-windows-using-only-one-driver-seleniu/52303079#52303079 is a thread that I posted on the matter. There is not yet an answer, but there are some things there I am still working through. It may prove fruitful... – Obbles Sep 13 '18 at 07:13

0 Answers0