File tree Expand file tree Collapse file tree 5 files changed +36
-8
lines changed
examples/ruby/spec/selenium_manager
website_and_docs/content/documentation Expand file tree Collapse file tree 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
234234{{% tab header="CSharp" %}}
235235{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
236236{{< /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" >}}
239242{{< /tab >}}
240243{{< tab header="JavaScript" >}}
241244{{< 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
234234{{% tab header="CSharp" %}}
235235{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
236236{{< /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" >}}
239242{{< /tab >}}
240243{{< tab header="JavaScript" >}}
241244{{< 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
234234{{% tab header="CSharp" %}}
235235{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
236236{{< /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" >}}
239242{{< /tab >}}
240243{{< tab header="JavaScript" >}}
241244{{< 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
340340{{% tab header="CSharp" %}}
341341{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
342342{{< /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" >}}
345348{{< /tab >}}
346349{{< tab header="JavaScript" >}}
347350{{< badge-code >}}
You can’t perform that action at this time.
0 commit comments