Open link in new tab using Chrome driver and C#?

gardentools at 17h58
Open link in new tab using Chrome driver and C#?

Hi everyone,

I'm having a problem getting Selenium to act as though a link was clicked to open it up in a new tab, rather than in a new window which the link defaults to. I'm using the Chrome driver and C# in visual studio.

I know that in chrome normally if you hold down the control key and then click a link as normal with the left mouse button it will open in a new tab. However I seem to be failing to achieve this. So far I have the code:

driver [......]
This topic belongs to the forum
  • Numbers of topics : 2331
  • Numbers of messages : 6045
  • Numbers of users : 5010
  • Numbers of points : 257
Similar topics
hi, how to open a browser in selenium web driver
FireFox and IE run fine in windows 7 but Chrome is a continual problem. I was getting the Aw Shucks window but I installed the standalone Chrome for all users and updated to the most current ChromeDriver. Now it brings up a chrome window that is blank
is it possible to make every link in my forum open in a new tab?
Hi How can we open multiple tabs and put the url in all the tabs invoked in webdriver selenium. Please Help
Hi, In the same case I'm getting an error "warn(1292245359123): Link has target '_blank', which is not supported in Selenium! Randomizing target to be: selenium_blank69196", when i run this code. Some one please help me out, in this
Forums from same category