Sha256: af1acb59284dc8ef90fc9c7b590a6cb831d08149e91888427a1a12a091fca8d5

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

require File.expand_path("../spec_helper", __FILE__)

module Selenium
  module WebDriver
    describe Error do

      context "backwards compatibility" do
        it "aliases StaleElementReferenceError as ObsoleteElementError" do
          lambda {
            raise Error::StaleElementReferenceError
          }.should raise_error(Error::ObsoleteElementError)
        end

        it "aliases UnknownError as UnhandledError" do
          lambda {
            raise Error::UnknownError
          }.should raise_error(Error::UnhandledError)
        end

        it "aliases JavascriptError as UnexpectedJavascriptError" do
          lambda {
            raise Error::JavascriptError
          }.should raise_error(Error::UnexpectedJavascriptError)
        end

        it "aliases NoAlertPresentError as NoAlertOpenError" do
          lambda {
            raise Error::NoAlertPresentError
          }.should raise_error(Error::NoAlertOpenError)
        end

        it "aliases ElementNotVisibleError as ElementNotDisplayedError" do
          lambda {
            raise Error::ElementNotVisibleError
          }.should raise_error(Error::ElementNotDisplayedError)
        end
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
browserstack-webdriver-2.40.1 spec/unit/selenium/webdriver/error_spec.rb
browserstack-webdriver-0.0.22 spec/unit/selenium/webdriver/error_spec.rb
browserstack-webdriver-0.0.1 spec/unit/selenium/webdriver/error_spec.rb
bbc-selenium-webdriver-1.17.0 spec/unit/selenium/webdriver/error_spec.rb