diff --git a/examples/ruby/spec/selenium_manager/usage.rb b/examples/ruby/spec/selenium_manager/usage.rb new file mode 100644 index 000000000000..d0abb6102f32 --- /dev/null +++ b/examples/ruby/spec/selenium_manager/usage.rb @@ -0,0 +1,14 @@ +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 \ No newline at end of file diff --git a/website_and_docs/content/documentation/selenium_manager.en.md b/website_and_docs/content/documentation/selenium_manager.en.md index 567396905fc4..f8a15b30f3ec 100644 --- a/website_and_docs/content/documentation/selenium_manager.en.md +++ b/website_and_docs/content/documentation/selenium_manager.en.md @@ -231,8 +231,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c {{< tab header="CSharp" >}} {{< badge-code >}} {{< /tab >}} -{{< tab header="Ruby" >}} -{{< badge-code >}} +{{% tab header="Ruby" %}} +**Previously** +{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L3-L8" >}} +**Selenium Manager** +{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L10-L14" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/selenium_manager.ja.md b/website_and_docs/content/documentation/selenium_manager.ja.md index 18d4d7b71856..23e38ca1bc3a 100644 --- a/website_and_docs/content/documentation/selenium_manager.ja.md +++ b/website_and_docs/content/documentation/selenium_manager.ja.md @@ -231,8 +231,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c {{< tab header="CSharp" >}} {{< badge-code >}} {{< /tab >}} -{{< tab header="Ruby" >}} -{{< badge-code >}} +{{% tab header="Ruby" %}} +**Previously** +{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L3-L8" >}} +**Selenium Manager** +{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L10-L14" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/selenium_manager.pt-br.md b/website_and_docs/content/documentation/selenium_manager.pt-br.md index 18d4d7b71856..23e38ca1bc3a 100644 --- a/website_and_docs/content/documentation/selenium_manager.pt-br.md +++ b/website_and_docs/content/documentation/selenium_manager.pt-br.md @@ -231,8 +231,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c {{< tab header="CSharp" >}} {{< badge-code >}} {{< /tab >}} -{{< tab header="Ruby" >}} -{{< badge-code >}} +{{% tab header="Ruby" %}} +**Previously** +{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L3-L8" >}} +**Selenium Manager** +{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L10-L14" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} diff --git a/website_and_docs/content/documentation/selenium_manager.zh-cn.md b/website_and_docs/content/documentation/selenium_manager.zh-cn.md index 18d4d7b71856..23e38ca1bc3a 100644 --- a/website_and_docs/content/documentation/selenium_manager.zh-cn.md +++ b/website_and_docs/content/documentation/selenium_manager.zh-cn.md @@ -231,8 +231,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c {{< tab header="CSharp" >}} {{< badge-code >}} {{< /tab >}} -{{< tab header="Ruby" >}} -{{< badge-code >}} +{{% tab header="Ruby" %}} +**Previously** +{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L3-L8" >}} +**Selenium Manager** +{{< gh-codeblock path="examples/ruby/spec/selenium_manager/usage.rb#L10-L14" >}} {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}}