Skip to content

Commit c5a9c20

Browse files
harsha509diemol
authored andcommitted
Add: Added doc for keyDown in Keyboard actions (SeleniumHQ#94) [deploy site]
* Add: Added doc for keyDown in Keyboard actions Signed-off-by: Sri Harsha <[email protected]> * MOdify: Updated repo address issue as mentioned in SeleniumHQ#86 Signed-off-by: Sri Harsha <[email protected]>
1 parent 2d8def8 commit c5a9c20

14 files changed

+294
-7
lines changed

docs_source_files/content/CONTRIBUTING.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Fork the project [on Github](https://github.com/seleniumhq/seleniumhq.github.io)
5353
and check out your copy locally.
5454

5555
```shell
56-
% git clone [email protected]:username/seleniumhq.github.io.git
56+
% git clone [email protected]:seleniumhq/seleniumhq.github.io.git
5757
% cd seleniumhq.github.io
5858
```
5959

docs_source_files/content/CONTRIBUTING.es.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Haga _fork_ al proyecto [en Github](https://github.com/seleniumhq/seleniumhq.git
5757
y verifique su copia localmente.
5858

5959
```shell
60-
% git clone [email protected]:username/seleniumhq.github.io.git
60+
% git clone [email protected]:seleniumhq/seleniumhq.github.io.git
6161
% cd seleniumhq.github.io
6262
```
6363

docs_source_files/content/CONTRIBUTING.fr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Fork the project [on Github](https://github.com/seleniumhq/seleniumhq.github.io)
6060
and check out your copy locally.
6161

6262
```shell
63-
% git clone [email protected]:username/seleniumhq.github.io.git
63+
% git clone [email protected]:seleniumhq/seleniumhq.github.io.git
6464
% cd seleniumhq.github.io
6565
```
6666

docs_source_files/content/CONTRIBUTING.ja.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Fork the project [on Github](https://github.com/seleniumhq/seleniumhq.github.io)
6060
and check out your copy locally.
6161

6262
```shell
63-
% git clone [email protected]:username/seleniumhq.github.io.git
63+
% git clone [email protected]:seleniumhq/seleniumhq.github.io.git
6464
% cd seleniumhq.github.io
6565
```
6666

docs_source_files/content/CONTRIBUTING.ko.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Selenium 프로젝트는 새로운 기여자를 환영합니다. 꾸준히 중
3939
로컬에서 확인하세요.
4040

4141
```shell
42-
% git clone [email protected]:username/seleniumhq.github.io.git
42+
% git clone [email protected]:seleniumhq/seleniumhq.github.io.git
4343
% cd seleniumhq.github.io
4444
```
4545

docs_source_files/content/CONTRIBUTING.nl.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Fork the project [on Github](https://github.com/seleniumhq/seleniumhq.github.io)
6060
and check out your copy locally.
6161

6262
```shell
63-
% git clone [email protected]:username/seleniumhq.github.io.git
63+
% git clone [email protected]:seleniumhq/seleniumhq.github.io.git
6464
% cd seleniumhq.github.io
6565
```
6666

docs_source_files/content/CONTRIBUTING.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Fork the project [on Github](https://github.com/seleniumhq/seleniumhq.github.io)
6060
and check out your copy locally.
6161

6262
```shell
63-
% git clone [email protected]:username/seleniumhq.github.io.git
63+
% git clone [email protected]:seleniumhq/seleniumhq.github.io.git
6464
% cd seleniumhq.github.io
6565
```
6666

docs_source_files/content/webdriver/keyboard.en.md

+41
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,44 @@ class HelloSelenium {
109109
}
110110
{{< / code-panel >}}
111111
{{< / code-tab >}}
112+
113+
## keyDown
114+
115+
The keyDown is used to simulate action of pressing a modifier key(CONTROL, SHIFT, ALT)
116+
117+
{{< code-tab >}}
118+
{{< code-panel language="java" >}}
119+
// Please make a PR
120+
{{< / code-panel >}}
121+
{{< code-panel language="python" >}}
122+
// Please make a PR
123+
{{< / code-panel >}}
124+
{{< code-panel language="csharp" >}}
125+
// Please make a PR
126+
{{< / code-panel >}}
127+
{{< code-panel language="ruby" >}}
128+
# Please make a PR
129+
{{< / code-panel >}}
130+
{{< code-panel language="javascript" >}}
131+
(async function example() {
132+
let driver = await new Builder().forBrowser('chrome').build();
133+
134+
try {
135+
// Navigate to Url
136+
await driver.get('https://www.google.com');
137+
138+
// Enter text "webdriver" and perform keyboard action "Enter"
139+
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.ENTER);
140+
141+
// Perform action ctrl + A (modifier CONTROL + Alphabet A) to select the page
142+
await driver.actions().keyDown(Key.CONTROL).sendKeys('a').perform();
143+
}
144+
finally {
145+
await driver.quit();
146+
}
147+
})();
148+
{{< / code-panel >}}
149+
{{< code-panel language="kotlin" >}}
150+
// Please make a PR for this
151+
{{< / code-panel >}}
152+
{{< / code-tab >}}

docs_source_files/content/webdriver/keyboard.es.md

+41
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,44 @@ class HelloSelenium {
115115
}
116116
{{< / code-panel >}}
117117
{{< / code-tab >}}
118+
119+
## keyDown
120+
121+
The keyDown is used to simulate action of pressing a modifier key(CONTROL, SHIFT, ALT)
122+
123+
{{< code-tab >}}
124+
{{< code-panel language="java" >}}
125+
// Please make a PR
126+
{{< / code-panel >}}
127+
{{< code-panel language="python" >}}
128+
// Please make a PR
129+
{{< / code-panel >}}
130+
{{< code-panel language="csharp" >}}
131+
// Please make a PR
132+
{{< / code-panel >}}
133+
{{< code-panel language="ruby" >}}
134+
# Please make a PR
135+
{{< / code-panel >}}
136+
{{< code-panel language="javascript" >}}
137+
(async function example() {
138+
let driver = await new Builder().forBrowser('chrome').build();
139+
140+
try {
141+
// Navigate to Url
142+
await driver.get('https://www.google.com');
143+
144+
// Enter text "webdriver" and perform keyboard action "Enter"
145+
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.ENTER);
146+
147+
// Perform action ctrl + A (modifier CONTROL + Alphabet A) to select the page
148+
await driver.actions().keyDown(Key.CONTROL).sendKeys('a').perform();
149+
}
150+
finally {
151+
await driver.quit();
152+
}
153+
})();
154+
{{< / code-panel >}}
155+
{{< code-panel language="kotlin" >}}
156+
// Please make a PR for this
157+
{{< / code-panel >}}
158+
{{< / code-tab >}}

docs_source_files/content/webdriver/keyboard.fr.md

+41
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,44 @@ class HelloSelenium {
115115
}
116116
{{< / code-panel >}}
117117
{{< / code-tab >}}
118+
119+
## keyDown
120+
121+
The keyDown is used to simulate action of pressing a modifier key(CONTROL, SHIFT, ALT)
122+
123+
{{< code-tab >}}
124+
{{< code-panel language="java" >}}
125+
// Please make a PR
126+
{{< / code-panel >}}
127+
{{< code-panel language="python" >}}
128+
// Please make a PR
129+
{{< / code-panel >}}
130+
{{< code-panel language="csharp" >}}
131+
// Please make a PR
132+
{{< / code-panel >}}
133+
{{< code-panel language="ruby" >}}
134+
# Please make a PR
135+
{{< / code-panel >}}
136+
{{< code-panel language="javascript" >}}
137+
(async function example() {
138+
let driver = await new Builder().forBrowser('chrome').build();
139+
140+
try {
141+
// Navigate to Url
142+
await driver.get('https://www.google.com');
143+
144+
// Enter text "webdriver" and perform keyboard action "Enter"
145+
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.ENTER);
146+
147+
// Perform action ctrl + A (modifier CONTROL + Alphabet A) to select the page
148+
await driver.actions().keyDown(Key.CONTROL).sendKeys('a').perform();
149+
}
150+
finally {
151+
await driver.quit();
152+
}
153+
})();
154+
{{< / code-panel >}}
155+
{{< code-panel language="kotlin" >}}
156+
// Please make a PR for this
157+
{{< / code-panel >}}
158+
{{< / code-tab >}}

docs_source_files/content/webdriver/keyboard.ja.md

+41
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,44 @@ class HelloSelenium {
114114
}
115115
{{< / code-panel >}}
116116
{{< / code-tab >}}
117+
118+
## keyDown
119+
120+
The keyDown is used to simulate action of pressing a modifier key(CONTROL, SHIFT, ALT)
121+
122+
{{< code-tab >}}
123+
{{< code-panel language="java" >}}
124+
// Please make a PR
125+
{{< / code-panel >}}
126+
{{< code-panel language="python" >}}
127+
// Please make a PR
128+
{{< / code-panel >}}
129+
{{< code-panel language="csharp" >}}
130+
// Please make a PR
131+
{{< / code-panel >}}
132+
{{< code-panel language="ruby" >}}
133+
# Please make a PR
134+
{{< / code-panel >}}
135+
{{< code-panel language="javascript" >}}
136+
(async function example() {
137+
let driver = await new Builder().forBrowser('chrome').build();
138+
139+
try {
140+
// Navigate to Url
141+
await driver.get('https://www.google.com');
142+
143+
// Enter text "webdriver" and perform keyboard action "Enter"
144+
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.ENTER);
145+
146+
// Perform action ctrl + A (modifier CONTROL + Alphabet A) to select the page
147+
await driver.actions().keyDown(Key.CONTROL).sendKeys('a').perform();
148+
}
149+
finally {
150+
await driver.quit();
151+
}
152+
})();
153+
{{< / code-panel >}}
154+
{{< code-panel language="kotlin" >}}
155+
// Please make a PR for this
156+
{{< / code-panel >}}
157+
{{< / code-tab >}}

docs_source_files/content/webdriver/keyboard.ko.md

+41
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,44 @@ class HelloSelenium {
115115
}
116116
{{< / code-panel >}}
117117
{{< / code-tab >}}
118+
119+
## keyDown
120+
121+
The keyDown is used to simulate action of pressing a modifier key(CONTROL, SHIFT, ALT)
122+
123+
{{< code-tab >}}
124+
{{< code-panel language="java" >}}
125+
// Please make a PR
126+
{{< / code-panel >}}
127+
{{< code-panel language="python" >}}
128+
// Please make a PR
129+
{{< / code-panel >}}
130+
{{< code-panel language="csharp" >}}
131+
// Please make a PR
132+
{{< / code-panel >}}
133+
{{< code-panel language="ruby" >}}
134+
# Please make a PR
135+
{{< / code-panel >}}
136+
{{< code-panel language="javascript" >}}
137+
(async function example() {
138+
let driver = await new Builder().forBrowser('chrome').build();
139+
140+
try {
141+
// Navigate to Url
142+
await driver.get('https://www.google.com');
143+
144+
// Enter text "webdriver" and perform keyboard action "Enter"
145+
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.ENTER);
146+
147+
// Perform action ctrl + A (modifier CONTROL + Alphabet A) to select the page
148+
await driver.actions().keyDown(Key.CONTROL).sendKeys('a').perform();
149+
}
150+
finally {
151+
await driver.quit();
152+
}
153+
})();
154+
{{< / code-panel >}}
155+
{{< code-panel language="kotlin" >}}
156+
// Please make a PR for this
157+
{{< / code-panel >}}
158+
{{< / code-tab >}}

docs_source_files/content/webdriver/keyboard.nl.md

+41
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,44 @@ class HelloSelenium {
115115
}
116116
{{< / code-panel >}}
117117
{{< / code-tab >}}
118+
119+
## keyDown
120+
121+
The keyDown is used to simulate action of pressing a modifier key(CONTROL, SHIFT, ALT)
122+
123+
{{< code-tab >}}
124+
{{< code-panel language="java" >}}
125+
// Please make a PR
126+
{{< / code-panel >}}
127+
{{< code-panel language="python" >}}
128+
// Please make a PR
129+
{{< / code-panel >}}
130+
{{< code-panel language="csharp" >}}
131+
// Please make a PR
132+
{{< / code-panel >}}
133+
{{< code-panel language="ruby" >}}
134+
# Please make a PR
135+
{{< / code-panel >}}
136+
{{< code-panel language="javascript" >}}
137+
(async function example() {
138+
let driver = await new Builder().forBrowser('chrome').build();
139+
140+
try {
141+
// Navigate to Url
142+
await driver.get('https://www.google.com');
143+
144+
// Enter text "webdriver" and perform keyboard action "Enter"
145+
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.ENTER);
146+
147+
// Perform action ctrl + A (modifier CONTROL + Alphabet A) to select the page
148+
await driver.actions().keyDown(Key.CONTROL).sendKeys('a').perform();
149+
}
150+
finally {
151+
await driver.quit();
152+
}
153+
})();
154+
{{< / code-panel >}}
155+
{{< code-panel language="kotlin" >}}
156+
// Please make a PR for this
157+
{{< / code-panel >}}
158+
{{< / code-tab >}}

docs_source_files/content/webdriver/keyboard.zh-cn.md

+41
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,44 @@ class HelloSelenium {
109109
}
110110
{{< / code-panel >}}
111111
{{< / code-tab >}}
112+
113+
## keyDown
114+
115+
The keyDown is used to simulate action of pressing a modifier key(CONTROL, SHIFT, ALT)
116+
117+
{{< code-tab >}}
118+
{{< code-panel language="java" >}}
119+
// Please make a PR
120+
{{< / code-panel >}}
121+
{{< code-panel language="python" >}}
122+
// Please make a PR
123+
{{< / code-panel >}}
124+
{{< code-panel language="csharp" >}}
125+
// Please make a PR
126+
{{< / code-panel >}}
127+
{{< code-panel language="ruby" >}}
128+
# Please make a PR
129+
{{< / code-panel >}}
130+
{{< code-panel language="javascript" >}}
131+
(async function example() {
132+
let driver = await new Builder().forBrowser('chrome').build();
133+
134+
try {
135+
// Navigate to Url
136+
await driver.get('https://www.google.com');
137+
138+
// Enter text "webdriver" and perform keyboard action "Enter"
139+
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.ENTER);
140+
141+
// Perform action ctrl + A (modifier CONTROL + Alphabet A) to select the page
142+
await driver.actions().keyDown(Key.CONTROL).sendKeys('a').perform();
143+
}
144+
finally {
145+
await driver.quit();
146+
}
147+
})();
148+
{{< / code-panel >}}
149+
{{< code-panel language="kotlin" >}}
150+
// Please make a PR for this
151+
{{< / code-panel >}}
152+
{{< / code-tab >}}

0 commit comments

Comments
 (0)