Selenium webdriver - browser shortcuts not working with ActionChains MAC OS2019 Community Moderator ElectionDoes anybody know how to launch the print dialog from chrome by selenium+pythonTake a screenshot with Selenium WebDriverSelenium for multiple browsers - Need webDriver that can execute javascriptSelenium WebDriver's Keys.chord() function does not work in Internet Explorer (9)Python, Selenium Webdriver: Spans are not loaded for Firefox driverPython Selenium Webdriver Chrome windows [4512:11852:0709/110013:ERROR:textfield.h(162)] NOT IMPLEMENTEDSending keyboard shortcuts to chrome with Selenium and RubyTimeout on Selenium WebdriverAutomate Google Chrome keyboard shortcuts using SeleniumKeys.ALT and Keys.LEFT_ALT doesn't work in selenium? (Python)Use Selenium with headless Chrome Webdriver for password login

Professor forcing me to attend a conference, I can't afford even with 50% funding

How spaceships determine each other's mass in space?

Can the Witch Sight warlock invocation see through the Mirror Image spell?

Precision notation for voltmeters

In Diabelli's "Duet in D" for piano, what are these brackets on chords that look like vertical slurs?

Is "cogitate" used appropriately in "I cogitate that success relies on hard work"?

Was this cameo in Captain Marvel computer generated?

Can I negotiate a patent idea for a raise, under French law?

How to install "rounded" brake pads

When Central Limit Theorem breaks down

ESPP--any reason not to go all in?

Limpar string com Regex

Can I challenge the interviewer to give me a proper technical feedback?

How to educate team mate to take screenshots for bugs with out unwanted stuff

How do you use environments that have the same name within a single latex document?

Exempt portion of equation line from aligning?

Can inspiration allow the Rogue to make a Sneak Attack?

Giving a career talk in my old university, how prominently should I tell students my salary?

Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?

The (Easy) Road to Code

Issue with units for a rocket nozzle throat area problem

Ultrafilters as a double dual

Is divide-by-zero a security vulnerability?

What does *dead* mean in *What do you mean, dead?*?



Selenium webdriver - browser shortcuts not working with ActionChains MAC OS



2019 Community Moderator ElectionDoes anybody know how to launch the print dialog from chrome by selenium+pythonTake a screenshot with Selenium WebDriverSelenium for multiple browsers - Need webDriver that can execute javascriptSelenium WebDriver's Keys.chord() function does not work in Internet Explorer (9)Python, Selenium Webdriver: Spans are not loaded for Firefox driverPython Selenium Webdriver Chrome windows [4512:11852:0709/110013:ERROR:textfield.h(162)] NOT IMPLEMENTEDSending keyboard shortcuts to chrome with Selenium and RubyTimeout on Selenium WebdriverAutomate Google Chrome keyboard shortcuts using SeleniumKeys.ALT and Keys.LEFT_ALT doesn't work in selenium? (Python)Use Selenium with headless Chrome Webdriver for password login










0















I am trying to use selenium webdriver to open webpages and perform some browser shortcut. However even if I achieve to press keys, the shortcuts do not happen.
I have been trying with chrome (72.0.3626.119) and firefox (65.0.2), none seems to work.
I am running on Mac OS 10.13.6.



For the demonstration I give you my code with the printing shortcut (command-P).
(I know I would not be able to hit enter to print using Selenium : my problem is before that : the dialog box does not even show up)



url = 'https://unixpapa.com/js/testkey.html'
driver = webdriver.Chrome()
driver.get(url)
actions = ActionChains(driver)
actions.key_down(Keys.COMMAND).send_keys('p').key_up(Keys.COMMAND).perform()


When I try to see if keys are pressed with https://unixpapa.com/js/testkey.html they appear to be, the shortcut just does not happen.



I found that it may be impossible on chrome driver according to here : https://bugs.chromium.org/p/chromedriver/issues/detail?id=581

But firefox did not work either, and multiple people have the shortcuts working all over other stackoverflow posts.



Shortcuts do work using Pyautogui instead of ActionChains.
However I need to put it on a display-less server afterwards, which does not support Pyautogui.










share|improve this question









New contributor




Maxime11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • when I say multiple people have the shortcuts working I am referring to here stackoverflow.com/a/25903341 for example, which does not work for me.

    – Maxime11
    2 days ago















0















I am trying to use selenium webdriver to open webpages and perform some browser shortcut. However even if I achieve to press keys, the shortcuts do not happen.
I have been trying with chrome (72.0.3626.119) and firefox (65.0.2), none seems to work.
I am running on Mac OS 10.13.6.



For the demonstration I give you my code with the printing shortcut (command-P).
(I know I would not be able to hit enter to print using Selenium : my problem is before that : the dialog box does not even show up)



url = 'https://unixpapa.com/js/testkey.html'
driver = webdriver.Chrome()
driver.get(url)
actions = ActionChains(driver)
actions.key_down(Keys.COMMAND).send_keys('p').key_up(Keys.COMMAND).perform()


When I try to see if keys are pressed with https://unixpapa.com/js/testkey.html they appear to be, the shortcut just does not happen.



I found that it may be impossible on chrome driver according to here : https://bugs.chromium.org/p/chromedriver/issues/detail?id=581

But firefox did not work either, and multiple people have the shortcuts working all over other stackoverflow posts.



Shortcuts do work using Pyautogui instead of ActionChains.
However I need to put it on a display-less server afterwards, which does not support Pyautogui.










share|improve this question









New contributor




Maxime11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • when I say multiple people have the shortcuts working I am referring to here stackoverflow.com/a/25903341 for example, which does not work for me.

    – Maxime11
    2 days ago













0












0








0








I am trying to use selenium webdriver to open webpages and perform some browser shortcut. However even if I achieve to press keys, the shortcuts do not happen.
I have been trying with chrome (72.0.3626.119) and firefox (65.0.2), none seems to work.
I am running on Mac OS 10.13.6.



For the demonstration I give you my code with the printing shortcut (command-P).
(I know I would not be able to hit enter to print using Selenium : my problem is before that : the dialog box does not even show up)



url = 'https://unixpapa.com/js/testkey.html'
driver = webdriver.Chrome()
driver.get(url)
actions = ActionChains(driver)
actions.key_down(Keys.COMMAND).send_keys('p').key_up(Keys.COMMAND).perform()


When I try to see if keys are pressed with https://unixpapa.com/js/testkey.html they appear to be, the shortcut just does not happen.



I found that it may be impossible on chrome driver according to here : https://bugs.chromium.org/p/chromedriver/issues/detail?id=581

But firefox did not work either, and multiple people have the shortcuts working all over other stackoverflow posts.



Shortcuts do work using Pyautogui instead of ActionChains.
However I need to put it on a display-less server afterwards, which does not support Pyautogui.










share|improve this question









New contributor




Maxime11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I am trying to use selenium webdriver to open webpages and perform some browser shortcut. However even if I achieve to press keys, the shortcuts do not happen.
I have been trying with chrome (72.0.3626.119) and firefox (65.0.2), none seems to work.
I am running on Mac OS 10.13.6.



For the demonstration I give you my code with the printing shortcut (command-P).
(I know I would not be able to hit enter to print using Selenium : my problem is before that : the dialog box does not even show up)



url = 'https://unixpapa.com/js/testkey.html'
driver = webdriver.Chrome()
driver.get(url)
actions = ActionChains(driver)
actions.key_down(Keys.COMMAND).send_keys('p').key_up(Keys.COMMAND).perform()


When I try to see if keys are pressed with https://unixpapa.com/js/testkey.html they appear to be, the shortcut just does not happen.



I found that it may be impossible on chrome driver according to here : https://bugs.chromium.org/p/chromedriver/issues/detail?id=581

But firefox did not work either, and multiple people have the shortcuts working all over other stackoverflow posts.



Shortcuts do work using Pyautogui instead of ActionChains.
However I need to put it on a display-less server afterwards, which does not support Pyautogui.







macos selenium






share|improve this question









New contributor




Maxime11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Maxime11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago







Maxime11













New contributor




Maxime11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Maxime11Maxime11

11




11




New contributor




Maxime11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Maxime11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Maxime11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • when I say multiple people have the shortcuts working I am referring to here stackoverflow.com/a/25903341 for example, which does not work for me.

    – Maxime11
    2 days ago

















  • when I say multiple people have the shortcuts working I am referring to here stackoverflow.com/a/25903341 for example, which does not work for me.

    – Maxime11
    2 days ago
















when I say multiple people have the shortcuts working I am referring to here stackoverflow.com/a/25903341 for example, which does not work for me.

– Maxime11
2 days ago





when I say multiple people have the shortcuts working I am referring to here stackoverflow.com/a/25903341 for example, which does not work for me.

– Maxime11
2 days ago












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Maxime11 is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55027993%2fselenium-webdriver-browser-shortcuts-not-working-with-actionchains-mac-os%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Maxime11 is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Maxime11 is a new contributor. Be nice, and check out our Code of Conduct.












Maxime11 is a new contributor. Be nice, and check out our Code of Conduct.











Maxime11 is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55027993%2fselenium-webdriver-browser-shortcuts-not-working-with-actionchains-mac-os%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme