Skip to content

Commit e36feac

Browse files
committed
add: Adding kotlin code sample for relative locator[deploy site]
1 parent 02f11a6 commit e36feac

8 files changed

+24
-16
lines changed

docs_source_files/content/getting_started_with_webdriver/locating_elements.de.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ email_address_field = driver.find_element(relative: {tag_name: 'input', above:pa
264264
{{< / code-panel >}}
265265
{{< code-panel language="kotlin" >}}
266266
val passwordField = driver.findElement(By.id("password"))
267-
val emailAddressField = driver.findElement(withTagName("input").above(passwordField)
267+
val emailAddressField = driver.findElement(withTagName("input").above(passwordField))
268268
{{< / code-panel >}}
269269
{{< / code-tab >}}
270270

@@ -300,7 +300,8 @@ password_field = driver.find_element(relative: {tag_name: 'input', below: email_
300300
// Please raise a PR
301301
{{< / code-panel >}}
302302
{{< code-panel language="kotlin" >}}
303-
// Please raise a PR
303+
val emailAddressField = driver.findElement(By.id("email"))
304+
val passwordField = driver.findElement(withTagName("input").below(emailAddressField))
304305
{{< / code-panel >}}
305306
{{< / code-tab >}}
306307

docs_source_files/content/getting_started_with_webdriver/locating_elements.en.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ email_address_field = driver.find_element(relative: {tag_name: 'input', above:pa
258258
{{< / code-panel >}}
259259
{{< code-panel language="kotlin" >}}
260260
val passwordField = driver.findElement(By.id("password"))
261-
val emailAddressField = driver.findElement(withTagName("input").above(passwordField)
261+
val emailAddressField = driver.findElement(withTagName("input").above(passwordField))
262262
{{< / code-panel >}}
263263
{{< / code-tab >}}
264264

@@ -294,7 +294,8 @@ password_field = driver.find_element(relative: {tag_name: 'input', below: email_
294294
// Please raise a PR
295295
{{< / code-panel >}}
296296
{{< code-panel language="kotlin" >}}
297-
// Please raise a PR
297+
val emailAddressField = driver.findElement(By.id("email"))
298+
val passwordField = driver.findElement(withTagName("input").below(emailAddressField))
298299
{{< / code-panel >}}
299300
{{< / code-tab >}}
300301

docs_source_files/content/getting_started_with_webdriver/locating_elements.es.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ email_address_field = driver.find_element(relative: {tag_name: 'input', above:pa
259259
{{< / code-panel >}}
260260
{{< code-panel language="kotlin" >}}
261261
val passwordField = driver.findElement(By.id("password"))
262-
val emailAddressField = driver.findElement(withTagName("input").above(passwordField)
262+
val emailAddressField = driver.findElement(withTagName("input").above(passwordField))
263263
{{< / code-panel >}}
264264
{{< / code-tab >}}
265265

@@ -295,7 +295,8 @@ password_field = driver.find_element(relative: {tag_name: 'input', below: email_
295295
// Please raise a PR
296296
{{< / code-panel >}}
297297
{{< code-panel language="kotlin" >}}
298-
// Please raise a PR
298+
val emailAddressField = driver.findElement(By.id("email"))
299+
val passwordField = driver.findElement(withTagName("input").below(emailAddressField))
299300
{{< / code-panel >}}
300301
{{< / code-tab >}}
301302

docs_source_files/content/getting_started_with_webdriver/locating_elements.fr.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ email_address_field = driver.find_element(relative: {tag_name: 'input', above:pa
256256
{{< / code-panel >}}
257257
{{< code-panel language="kotlin" >}}
258258
val passwordField = driver.findElement(By.id("password"))
259-
val emailAddressField = driver.findElement(withTagName("input").above(passwordField)
259+
val emailAddressField = driver.findElement(withTagName("input").above(passwordField))
260260
{{< / code-panel >}}
261261
{{< / code-tab >}}
262262

@@ -292,7 +292,8 @@ password_field = driver.find_element(relative: {tag_name: 'input', below: email_
292292
// Please raise a PR
293293
{{< / code-panel >}}
294294
{{< code-panel language="kotlin" >}}
295-
// Please raise a PR
295+
val emailAddressField = driver.findElement(By.id("email"))
296+
val passwordField = driver.findElement(withTagName("input").below(emailAddressField))
296297
{{< / code-panel >}}
297298
{{< / code-tab >}}
298299

docs_source_files/content/getting_started_with_webdriver/locating_elements.ja.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ email_address_field = driver.find_element(relative: {tag_name: 'input', above:pa
226226
{{< / code-panel >}}
227227
{{< code-panel language="kotlin" >}}
228228
val passwordField = driver.findElement(By.id("password"))
229-
val emailAddressField = driver.findElement(withTagName("input").above(passwordField)
229+
val emailAddressField = driver.findElement(withTagName("input").above(passwordField))
230230
{{< / code-panel >}}
231231
{{< / code-tab >}}
232232

@@ -261,7 +261,8 @@ password_field = driver.find_element(relative: {tag_name: 'input', below: email_
261261
// Please raise a PR
262262
{{< / code-panel >}}
263263
{{< code-panel language="kotlin" >}}
264-
// Please raise a PR
264+
val emailAddressField = driver.findElement(By.id("email"))
265+
val passwordField = driver.findElement(withTagName("input").below(emailAddressField))
265266
{{< / code-panel >}}
266267
{{< / code-tab >}}
267268

docs_source_files/content/getting_started_with_webdriver/locating_elements.ko.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ email_address_field = driver.find_element(relative: {tag_name: 'input', above:pa
206206
{{< / code-panel >}}
207207
{{< code-panel language="kotlin" >}}
208208
val passwordField = driver.findElement(By.id("password"))
209-
val emailAddressField = driver.findElement(withTagName("input").above(passwordField)
209+
val emailAddressField = driver.findElement(withTagName("input").above(passwordField))
210210
{{< / code-panel >}}
211211
{{< / code-tab >}}
212212

@@ -241,7 +241,8 @@ password_field = driver.find_element(relative: {tag_name: 'input', below: email_
241241
// Please raise a PR
242242
{{< / code-panel >}}
243243
{{< code-panel language="kotlin" >}}
244-
// Please raise a PR
244+
val emailAddressField = driver.findElement(By.id("email"))
245+
val passwordField = driver.findElement(withTagName("input").below(emailAddressField))
245246
{{< / code-panel >}}
246247
{{< / code-tab >}}
247248

docs_source_files/content/getting_started_with_webdriver/locating_elements.nl.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ email_address_field = driver.find_element(relative: {tag_name: 'input', above:pa
267267
{{< / code-panel >}}
268268
{{< code-panel language="kotlin" >}}
269269
val passwordField = driver.findElement(By.id("password"))
270-
val emailAddressField = driver.findElement(withTagName("input").above(passwordField)
270+
val emailAddressField = driver.findElement(withTagName("input").above(passwordField))
271271
{{< / code-panel >}}
272272
{{< / code-tab >}}
273273

@@ -303,7 +303,8 @@ password_field = driver.find_element(relative: {tag_name: 'input', below: email_
303303
// Please raise a PR
304304
{{< / code-panel >}}
305305
{{< code-panel language="kotlin" >}}
306-
// Please raise a PR
306+
val emailAddressField = driver.findElement(By.id("email"))
307+
val passwordField = driver.findElement(withTagName("input").below(emailAddressField))
307308
{{< / code-panel >}}
308309
{{< / code-tab >}}
309310

docs_source_files/content/getting_started_with_webdriver/locating_elements.zh-cn.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ email_address_field = driver.find_element(relative: {tag_name: 'input', above:pa
210210
{{< / code-panel >}}
211211
{{< code-panel language="kotlin" >}}
212212
val passwordField = driver.findElement(By.id("password"))
213-
val emailAddressField = driver.findElement(withTagName("input").above(passwordField)
213+
val emailAddressField = driver.findElement(withTagName("input").above(passwordField))
214214
{{< / code-panel >}}
215215
{{< / code-tab >}}
216216

@@ -246,7 +246,8 @@ password_field = driver.find_element(relative: {tag_name: 'input', below: email_
246246
// Please raise a PR
247247
{{< / code-panel >}}
248248
{{< code-panel language="kotlin" >}}
249-
// Please raise a PR
249+
val emailAddressField = driver.findElement(By.id("email"))
250+
val passwordField = driver.findElement(withTagName("input").below(emailAddressField))
250251
{{< / code-panel >}}
251252
{{< / code-tab >}}
252253

0 commit comments

Comments
 (0)