File tree 6 files changed +42
-12
lines changed
docs_source_files/content/webdriver 6 files changed +42
-12
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,11 @@ driver.get("https://www.seleniumhq.org")
80
80
driver.Navigate().GoToUrl(@"http://google.com ");
81
81
{{< / code-panel >}}
82
82
{{< code-panel language="ruby" >}}
83
- # We don't have a Ruby code sample yet - Help us out and raise a PR
83
+ # Convenient way
84
+ driver.get 'https://www.seleniumhq.org '
85
+
86
+ # Longer Way
87
+ driver.navigate.to 'https://www.seleniumhq.org '
84
88
{{< / code-panel >}}
85
89
{{< code-panel language="javascript" >}}
86
90
await driver.get('https://seleniumhq.github.io/docs/ ');
@@ -517,7 +521,8 @@ driver.findElement(By.tagName("button")).click();
517
521
driver.FindElement(By.TagName("button")).Click();
518
522
{{< / code-panel >}}
519
523
{{< code-panel language="ruby" >}}
520
- # We don't have a Ruby code sample yet - Help us out and raise a PR
524
+ # This won't work
525
+ driver.find_element(: tag_name ,'button').click
521
526
{{< / code-panel >}}
522
527
{{< code-panel language="javascript" >}}
523
528
// This won't work
Original file line number Diff line number Diff line change @@ -86,7 +86,11 @@ driver.get("https://www.seleniumhq.org")
86
86
driver.Navigate().GoToUrl(@"http://google.com ");
87
87
{{< / code-panel >}}
88
88
{{< code-panel language="ruby" >}}
89
- # We don't have a Ruby code sample yet - Help us out and raise a PR
89
+ # Convenient way
90
+ driver.get 'https://www.seleniumhq.org '
91
+
92
+ # Longer Way
93
+ driver.navigate.to 'https://www.seleniumhq.org '
90
94
{{< / code-panel >}}
91
95
{{< code-panel language="javascript" >}}
92
96
await driver.get('https://seleniumhq.github.io/docs/ ');
@@ -523,7 +527,8 @@ driver.findElement(By.tagName("button")).click();
523
527
driver.FindElement(By.TagName("button")).Click();
524
528
{{< / code-panel >}}
525
529
{{< code-panel language="ruby" >}}
526
- # We don't have a Ruby code sample yet - Help us out and raise a PR
530
+ # This won't work
531
+ driver.find_element(: tag_name ,'button').click
527
532
{{< / code-panel >}}
528
533
{{< code-panel language="javascript" >}}
529
534
// This won't work
Original file line number Diff line number Diff line change @@ -86,7 +86,11 @@ driver.get("https://www.seleniumhq.org")
86
86
driver.Navigate().GoToUrl(@"http://google.com ");
87
87
{{< / code-panel >}}
88
88
{{< code-panel language="ruby" >}}
89
- # We don't have a Ruby code sample yet - Help us out and raise a PR
89
+ # Convenient way
90
+ driver.get 'https://www.seleniumhq.org '
91
+
92
+ # Longer Way
93
+ driver.navigate.to 'https://www.seleniumhq.org '
90
94
{{< / code-panel >}}
91
95
{{< code-panel language="javascript" >}}
92
96
await driver.get('https://seleniumhq.github.io/docs/ ');
@@ -523,7 +527,8 @@ driver.findElement(By.tagName("button")).click();
523
527
driver.FindElement(By.TagName("button")).Click();
524
528
{{< / code-panel >}}
525
529
{{< code-panel language="ruby" >}}
526
- # We don't have a Ruby code sample yet - Help us out and raise a PR
530
+ # This won't work
531
+ driver.find_element(: tag_name ,'button').click
527
532
{{< / code-panel >}}
528
533
{{< code-panel language="javascript" >}}
529
534
// This won't work
Original file line number Diff line number Diff line change @@ -84,7 +84,11 @@ driver.get("https://www.seleniumhq.org")
84
84
driver.Navigate().GoToUrl(@"http://google.com ");
85
85
{{< / code-panel >}}
86
86
{{< code-panel language="ruby" >}}
87
- # We don't have a Ruby code sample yet - Help us out and raise a PR
87
+ # Convenient way
88
+ driver.get 'https://www.seleniumhq.org '
89
+
90
+ # Longer Way
91
+ driver.navigate.to 'https://www.seleniumhq.org '
88
92
{{< / code-panel >}}
89
93
{{< code-panel language="javascript" >}}
90
94
await driver.get('https://seleniumhq.github.io/docs/ ');
@@ -521,7 +525,8 @@ driver.findElement(By.tagName("button")).click();
521
525
driver.FindElement(By.TagName("button")).Click();
522
526
{{< / code-panel >}}
523
527
{{< code-panel language="ruby" >}}
524
- # We don't have a Ruby code sample yet - Help us out and raise a PR
528
+ # This won't work
529
+ driver.find_element(: tag_name ,'button').click
525
530
{{< / code-panel >}}
526
531
{{< code-panel language="javascript" >}}
527
532
// This won't work
Original file line number Diff line number Diff line change @@ -86,7 +86,11 @@ driver.get("https://www.seleniumhq.org")
86
86
driver.Navigate().GoToUrl(@"http://google.com ");
87
87
{{< / code-panel >}}
88
88
{{< code-panel language="ruby" >}}
89
- # We don't have a Ruby code sample yet - Help us out and raise a PR
89
+ # Convenient way
90
+ driver.get 'https://www.seleniumhq.org '
91
+
92
+ # Longer Way
93
+ driver.navigate.to 'https://www.seleniumhq.org '
90
94
{{< / code-panel >}}
91
95
{{< code-panel language="javascript" >}}
92
96
await driver.get('https://seleniumhq.github.io/docs/ ');
@@ -523,7 +527,8 @@ driver.findElement(By.tagName("button")).click();
523
527
driver.FindElement(By.TagName("button")).Click();
524
528
{{< / code-panel >}}
525
529
{{< code-panel language="ruby" >}}
526
- # We don't have a Ruby code sample yet - Help us out and raise a PR
530
+ # This won't work
531
+ driver.find_element(: tag_name ,'button').click
527
532
{{< / code-panel >}}
528
533
{{< code-panel language="javascript" >}}
529
534
// This won't work
Original file line number Diff line number Diff line change @@ -85,7 +85,11 @@ driver.get("https://www.seleniumhq.org")
85
85
driver.Navigate().GoToUrl(@"http://google.com ");
86
86
{{< / code-panel >}}
87
87
{{< code-panel language="ruby" >}}
88
- # We don't have a Ruby code sample yet - Help us out and raise a PR
88
+ # Convenient way
89
+ driver.get 'https://www.seleniumhq.org '
90
+
91
+ # Longer Way
92
+ driver.navigate.to 'https://www.seleniumhq.org '
89
93
{{< / code-panel >}}
90
94
{{< code-panel language="javascript" >}}
91
95
await driver.get('https://seleniumhq.github.io/docs/ ');
@@ -522,7 +526,8 @@ driver.findElement(By.tagName("button")).click();
522
526
driver.FindElement(By.TagName("button")).Click();
523
527
{{< / code-panel >}}
524
528
{{< code-panel language="ruby" >}}
525
- # We don't have a Ruby code sample yet - Help us out and raise a PR
529
+ # This won't work
530
+ driver.find_element(: tag_name ,'button').click
526
531
{{< / code-panel >}}
527
532
{{< code-panel language="javascript" >}}
528
533
// This won't work
You can’t perform that action at this time.
0 commit comments