Class: Selenium::WebDriver::Opera::Bridge
Constant Summary
Remote::Bridge::QUIT_ERRORS
Instance Attribute Summary
#context, #http
Instance Method Summary
collapse
#acceptAlert, #addCookie, #clearElement, #click, #clickElement, #close, command, #contextClick, #create_session, #deleteAllCookies, #deleteCookie, #dismissAlert, #doubleClick, #dragElement, #elementEquals, #executeAsyncScript, #executeScript, #find_element_by, #find_elements_by, #get, #getActiveElement, #getAlert, #getAlertText, #getAllCookies, #getCapabilities, #getCurrentUrl, #getCurrentWindowHandle, #getElementAttribute, #getElementLocation, #getElementLocationOnceScrolledIntoView, #getElementSize, #getElementTagName, #getElementText, #getElementValue, #getElementValueOfCssProperty, #getPageSource, #getScreenshot, #getTitle, #getVisible, #getWindowHandles, #goBack, #goForward, #isElementDisplayed, #isElementEnabled, #isElementSelected, #mouseDown, #mouseMoveTo, #mouseUp, #refresh, #sendKeysToElement, #sendModifierKeyToActiveElement, #session_id, #setAlertValue, #setElementSelected, #setImplicitWaitTimeout, #setScriptTimeout, #setVisible, #submitElement, #switchToDefaultContent, #switchToFrame, #switchToWindow
#element_id_from, #parse_cookie_string, #unwrap_script_result
Constructor Details
#initialize(opts = {}) ⇒ Bridge
Returns a new instance of Bridge.
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/selenium/webdriver/opera/bridge.rb', line 13
def initialize(opts = {})
@service = Service.default_service :log => (opts[:logging_level] ? true : false)
http_client = opts.delete(:http_client)
caps = create_capabilities(opts)
@service.start
remote_opts = {
:url => @service.uri,
:desired_capabilities => caps
}
remote_opts.merge!(:http_client => http_client) if http_client
super(remote_opts)
end
|
Instance Method Details
#browser ⇒ Object
31
32
33
|
# File 'lib/selenium/webdriver/opera/bridge.rb', line 31
def browser
:opera
end
|
#capabilities ⇒ Object
42
43
44
|
# File 'lib/selenium/webdriver/opera/bridge.rb', line 42
def capabilities
@capabilities ||= Remote::Capabilities.opera
end
|
#driver_extensions ⇒ Object
#quit ⇒ Object
46
47
48
49
50
|
# File 'lib/selenium/webdriver/opera/bridge.rb', line 46
def quit
super
ensure
@service.stop
end
|