Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions examples/ruby/spec/selenium_manager/usage.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

require 'selenium-webdriver'

def setup_without_selenium_manager
service = Selenium::WebDriver::Chrome::Service.new(path: '/path/to/chromedriver')
driver = Selenium::WebDriver.for(:chrome, service: service)
driver.get('https://www.selenium.dev/documentation/selenium_manager/')
driver.quit
end

def setup_with_selenium_manager
driver = Selenium::WebDriver.for(:chrome) # Selenium Manager handles the driver automatically
driver.get('https://www.selenium.dev/documentation/selenium_manager/')
driver.quit
end
7 changes: 5 additions & 2 deletions website_and_docs/content/documentation/selenium_manager.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
{{% tab header="CSharp" %}}
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
{{< /tab >}}
{{< tab header="Ruby" >}}
{{< badge-code >}}
{{% tab header="Ruby" %}}
**Previously**
{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L5-L10" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L12-L16" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-code >}}
Expand Down
7 changes: 5 additions & 2 deletions website_and_docs/content/documentation/selenium_manager.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
{{% tab header="CSharp" %}}
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
{{< /tab >}}
{{< tab header="Ruby" >}}
{{< badge-code >}}
{{% tab header="Ruby" %}}
**Previously**
{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L5-L10" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L12-L16" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-code >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
{{% tab header="CSharp" %}}
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
{{< /tab >}}
{{< tab header="Ruby" >}}
{{< badge-code >}}
{{% tab header="Ruby" %}}
**Previously**
{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L5-L10" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L12-L16" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-code >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
{{% tab header="CSharp" %}}
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
{{< /tab >}}
{{< tab header="Ruby" >}}
{{< badge-code >}}
{{% tab header="Ruby" %}}
**Previously**
{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L5-L10" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L12-L16" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-code >}}
Expand Down
Loading