File tree 5 files changed +36
-8
lines changed
examples/ruby/spec/selenium_manager
website_and_docs/content/documentation
5 files changed +36
-8
lines changed Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ require 'selenium-webdriver'
4
+
5
+ def setup_without_selenium_manager
6
+ service = Selenium ::WebDriver ::Chrome ::Service . new ( path : '/path/to/chromedriver' )
7
+ driver = Selenium ::WebDriver . for ( :chrome , service : service )
8
+ driver . get ( 'https://www.selenium.dev/documentation/selenium_manager/' )
9
+ driver . quit
10
+ end
11
+
12
+ def setup_with_selenium_manager
13
+ driver = Selenium ::WebDriver . for ( :chrome ) # Selenium Manager handles the driver automatically
14
+ driver . get ( 'https://www.selenium.dev/documentation/selenium_manager/' )
15
+ driver . quit
16
+ end
Original file line number Diff line number Diff line change @@ -234,8 +234,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
234
234
{{% tab header="CSharp" %}}
235
235
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
236
236
{{< /tab >}}
237
- {{< tab header="Ruby" >}}
238
- {{< badge-code >}}
237
+ {{% tab header="Ruby" %}}
238
+ ** Previously**
239
+ {{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L5-L10" >}}
240
+ ** Selenium Manager**
241
+ {{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L12-L16" >}}
239
242
{{< /tab >}}
240
243
{{< tab header="JavaScript" >}}
241
244
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -234,8 +234,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
234
234
{{% tab header="CSharp" %}}
235
235
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
236
236
{{< /tab >}}
237
- {{< tab header="Ruby" >}}
238
- {{< badge-code >}}
237
+ {{% tab header="Ruby" %}}
238
+ ** Previously**
239
+ {{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L5-L10" >}}
240
+ ** Selenium Manager**
241
+ {{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L12-L16" >}}
239
242
{{< /tab >}}
240
243
{{< tab header="JavaScript" >}}
241
244
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -234,8 +234,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
234
234
{{% tab header="CSharp" %}}
235
235
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
236
236
{{< /tab >}}
237
- {{< tab header="Ruby" >}}
238
- {{< badge-code >}}
237
+ {{% tab header="Ruby" %}}
238
+ ** Previously**
239
+ {{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L5-L10" >}}
240
+ ** Selenium Manager**
241
+ {{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L12-L16" >}}
239
242
{{< /tab >}}
240
243
{{< tab header="JavaScript" >}}
241
244
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -340,8 +340,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
340
340
{{% tab header="CSharp" %}}
341
341
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
342
342
{{< /tab >}}
343
- {{< tab header="Ruby" >}}
344
- {{< badge-code >}}
343
+ {{% tab header="Ruby" %}}
344
+ ** Previously**
345
+ {{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L5-L10" >}}
346
+ ** Selenium Manager**
347
+ {{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L12-L16" >}}
345
348
{{< /tab >}}
346
349
{{< tab header="JavaScript" >}}
347
350
{{< badge-code >}}
You can’t perform that action at this time.
0 commit comments