Is there any way I can change selenium firefox settings, so whenever i click a button on website that links to another website for example, that link opens in new tab, not new window?
I tried making custom profile, but it never worked for me.. always loads with anonymous one.
Any help is well appreciated.
You will have to send it via Browser action chaining only as selenium opens an anonymous session everytime. So, send click command like this.
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
ActionChains(driver).send_keys(Keys.COMMAND, "t").perform()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With