How can I simultaneously perform 'CTRL + Enter ' in Selenium WebDriver?Typing Enter/Return key in SeleniumKey press in (Ctrl+A) Selenium WebDriverHow to take screenshot with Selenium WebDriverSelenium WebDriver - Test if element is presentIs there a way to get element by XPath using JavaScript in Selenium WebDriver?How do I find an element that contains specific text in Selenium Webdriver (Python)?How to run Selenium WebDriver test cases in Chrome?How to perform load testing using Selenium WebDriver?Press TAB and then ENTER key in Selenium WebDriverIs there any other way(not sendKeys) to enter text into textbox using selenium webdriver?How to press CTRL+T and CTRL+TAB in selenium WebDriver using Java?How to click CTRL+P using Java and selenium web driver?
What should you do when eye contact makes your subordinate uncomfortable?
Non-trope happy ending?
Invalid date error by date command
Plot of a tornado-shaped surface
Picking the different solutions to the time independent Schrodinger eqaution
Add big quotation marks inside my colorbox
Why can Carol Danvers change her suit colours in the first place?
Fear of getting stuck on one programming language / technology that is not used in my country
Strong empirical falsification of quantum mechanics based on vacuum energy density
How to rewrite equation of hyperbola in standard form
Keeping a ball lost forever
How much character growth crosses the line into breaking the character
Is there an injective, monotonically increasing, strictly concave function from the reals, to the reals?
Biological Blimps: Propulsion
What happens to a creature that changes size inside of Otiluke's Resilient Sphere?
Are Captain Marvel's powers affected by Thanos' actions in Infinity War
Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?
How do you make your own symbol when Detexify fails?
How should I respond when I lied about my education and the company finds out through background check?
Mixing PEX brands
Multiplicative persistence
Why is this estimator biased?
Calculate sum of polynomial roots
Extract more than nine arguments that occur periodically in a sentence to use in macros in order to typset
How can I simultaneously perform 'CTRL + Enter ' in Selenium WebDriver?
Typing Enter/Return key in SeleniumKey press in (Ctrl+A) Selenium WebDriverHow to take screenshot with Selenium WebDriverSelenium WebDriver - Test if element is presentIs there a way to get element by XPath using JavaScript in Selenium WebDriver?How do I find an element that contains specific text in Selenium Webdriver (Python)?How to run Selenium WebDriver test cases in Chrome?How to perform load testing using Selenium WebDriver?Press TAB and then ENTER key in Selenium WebDriverIs there any other way(not sendKeys) to enter text into textbox using selenium webdriver?How to press CTRL+T and CTRL+TAB in selenium WebDriver using Java?How to click CTRL+P using Java and selenium web driver?
How can I simultaneously perform Ctrl+Enter↵ in Selenium WebDriver?
I tried this one:
body1.sendKeys(Keys.CONTROL + "ENTER");
But it doesn't work.
selenium-webdriver
add a comment |
How can I simultaneously perform Ctrl+Enter↵ in Selenium WebDriver?
I tried this one:
body1.sendKeys(Keys.CONTROL + "ENTER");
But it doesn't work.
selenium-webdriver
Check : 1. stackoverflow.com/questions/1629053/… and, 2. stackoverflow.com/questions/11503736/…
– rags
Aug 28 '13 at 12:02
add a comment |
How can I simultaneously perform Ctrl+Enter↵ in Selenium WebDriver?
I tried this one:
body1.sendKeys(Keys.CONTROL + "ENTER");
But it doesn't work.
selenium-webdriver
How can I simultaneously perform Ctrl+Enter↵ in Selenium WebDriver?
I tried this one:
body1.sendKeys(Keys.CONTROL + "ENTER");
But it doesn't work.
selenium-webdriver
selenium-webdriver
edited Mar 7 at 6:11
Cœur
19k9114155
19k9114155
asked Aug 28 '13 at 11:54
Bilow YuriyBilow Yuriy
3892619
3892619
Check : 1. stackoverflow.com/questions/1629053/… and, 2. stackoverflow.com/questions/11503736/…
– rags
Aug 28 '13 at 12:02
add a comment |
Check : 1. stackoverflow.com/questions/1629053/… and, 2. stackoverflow.com/questions/11503736/…
– rags
Aug 28 '13 at 12:02
Check : 1. stackoverflow.com/questions/1629053/… and, 2. stackoverflow.com/questions/11503736/…
– rags
Aug 28 '13 at 12:02
Check : 1. stackoverflow.com/questions/1629053/… and, 2. stackoverflow.com/questions/11503736/…
– rags
Aug 28 '13 at 12:02
add a comment |
2 Answers
2
active
oldest
votes
String keysPressed = Keys.chord(Keys.CONTROL, Keys.RETURN);
element.sendKeys(keysPressed) ;
will do the work for you..
Yep. It works. Thank you!!!
– Bilow Yuriy
Aug 28 '13 at 12:23
Happy to help :)
– Abhishek Singh
Aug 28 '13 at 12:48
add a comment |
This method uses actions instead of the chord function.
Actions action = new Actions(driver);
action.keyDown(Keys.CONTROL).keyDown(Keys.RETURN).keyUp(Keys.CONTROL).keyUp(Keys.RETURN).perform();
add a comment |
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
);
);
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%2f18487159%2fhow-can-i-simultaneously-perform-ctrl-enter-in-selenium-webdriver%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
String keysPressed = Keys.chord(Keys.CONTROL, Keys.RETURN);
element.sendKeys(keysPressed) ;
will do the work for you..
Yep. It works. Thank you!!!
– Bilow Yuriy
Aug 28 '13 at 12:23
Happy to help :)
– Abhishek Singh
Aug 28 '13 at 12:48
add a comment |
String keysPressed = Keys.chord(Keys.CONTROL, Keys.RETURN);
element.sendKeys(keysPressed) ;
will do the work for you..
Yep. It works. Thank you!!!
– Bilow Yuriy
Aug 28 '13 at 12:23
Happy to help :)
– Abhishek Singh
Aug 28 '13 at 12:48
add a comment |
String keysPressed = Keys.chord(Keys.CONTROL, Keys.RETURN);
element.sendKeys(keysPressed) ;
will do the work for you..
String keysPressed = Keys.chord(Keys.CONTROL, Keys.RETURN);
element.sendKeys(keysPressed) ;
will do the work for you..
answered Aug 28 '13 at 12:14
Abhishek SinghAbhishek Singh
5,049145789
5,049145789
Yep. It works. Thank you!!!
– Bilow Yuriy
Aug 28 '13 at 12:23
Happy to help :)
– Abhishek Singh
Aug 28 '13 at 12:48
add a comment |
Yep. It works. Thank you!!!
– Bilow Yuriy
Aug 28 '13 at 12:23
Happy to help :)
– Abhishek Singh
Aug 28 '13 at 12:48
Yep. It works. Thank you!!!
– Bilow Yuriy
Aug 28 '13 at 12:23
Yep. It works. Thank you!!!
– Bilow Yuriy
Aug 28 '13 at 12:23
Happy to help :)
– Abhishek Singh
Aug 28 '13 at 12:48
Happy to help :)
– Abhishek Singh
Aug 28 '13 at 12:48
add a comment |
This method uses actions instead of the chord function.
Actions action = new Actions(driver);
action.keyDown(Keys.CONTROL).keyDown(Keys.RETURN).keyUp(Keys.CONTROL).keyUp(Keys.RETURN).perform();
add a comment |
This method uses actions instead of the chord function.
Actions action = new Actions(driver);
action.keyDown(Keys.CONTROL).keyDown(Keys.RETURN).keyUp(Keys.CONTROL).keyUp(Keys.RETURN).perform();
add a comment |
This method uses actions instead of the chord function.
Actions action = new Actions(driver);
action.keyDown(Keys.CONTROL).keyDown(Keys.RETURN).keyUp(Keys.CONTROL).keyUp(Keys.RETURN).perform();
This method uses actions instead of the chord function.
Actions action = new Actions(driver);
action.keyDown(Keys.CONTROL).keyDown(Keys.RETURN).keyUp(Keys.CONTROL).keyUp(Keys.RETURN).perform();
answered Jan 7 '16 at 22:45
Revanth KumarRevanth Kumar
546614
546614
add a comment |
add a comment |
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%2f18487159%2fhow-can-i-simultaneously-perform-ctrl-enter-in-selenium-webdriver%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
Check : 1. stackoverflow.com/questions/1629053/… and, 2. stackoverflow.com/questions/11503736/…
– rags
Aug 28 '13 at 12:02