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
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
New contributor
add a comment |
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
New contributor
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
add a comment |
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
New contributor
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
macos selenium
New contributor
New contributor
edited 2 days ago
Maxime11
New contributor
asked 2 days ago
Maxime11Maxime11
11
11
New contributor
New contributor
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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