Module: SpecTest::Platforms::SeleniumWebDriver
- Defined in:
- lib/spectest/platform_selenium.rb,
lib/spectest/platform_selenium/platform_object.rb,
lib/spectest/platform_selenium/web_objects/all.rb,
lib/spectest/platform_selenium/web_objects/link.rb,
lib/spectest/platform_selenium/web_objects/button.rb,
lib/spectest/platform_selenium/web_objects/text_field.rb
Defined Under Namespace
Modules: Button, Link, TextField, WebObject
Classes: PlatformObject
Class Method Summary
collapse
Class Method Details
5
6
7
8
|
# File 'lib/spectest/platform_selenium.rb', line 5
def self.create_platform_object_for(browser)
require "spectest/platform_selenium/platform_object"
return SeleniumWebDriver::PlatformObject.new(browser)
end
|
.works_for?(browser) ⇒ Boolean
10
11
12
|
# File 'lib/spectest/platform_selenium.rb', line 10
def self.works_for?(browser)
browser.is_a?(Selenium::WebDriver::Driver)
end
|