I want to click on an element(found by xpath) but if i use:
ActionChains(driver).key_down(Keys.CONTROL).move_to_element(myElement).click().key_up(Keys.CONTROL).perform()
-> I get a new tab but the current tab also Redirects to the page
So what I need is a way to perform a right click and choose "open in new tab" but that does not work for me.
I use this code but after I get into the context_menu nothing happens.
ActionChains(driver).context_click(myElement).send_keys(Keys.DOWN).send_keys(Keys.RETURN).perform()
Another way would be to click "myElement" with the scroll wheel button but i can not find the click method for that.
Thank you.
(I do not need anything with Control + mouse click :-) )