I want to open a new tab on Selenium Firefox (on Python 3.6 and MacBook) but the command key does not work to open a new tab. For example,
driver.find_element_by_tag_name('body').send_keys(Keys.DOWN)
This works (moves a page a little down). But the following code does not work.
driver.find_element_by_tag_name('body').send_keys(Keys.COMMAND + "t")
, which should open a new tab. Another key such as "q" does not work, either.
So I'm looking for a way to open a new tab (or any other command key combinations) on Selenium and Firefox.
Is there any way except the keyboard shortcut?