Class: Selenium::WebDriver::Driver

Inherits:
Object
  • Object
show all
Defined in:
lib/angular_webdriver/protractor/webdriver_patch.rb

Instance Method Summary collapse

Instance Method Details

#bridgeObject


19
20
21
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 19

def bridge
  @bridge
end

#max_page_wait_secondsNumeric

Gets the wait time in seconds used when loading pages with protractor.get

Defaults to 30 seconds

Returns:

  • (Numeric)

    the wait time in seconds


57
58
59
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 57

def max_page_wait_seconds
  @max_page_wait || 30
end

#max_wait_secondsObject

Returns the wait time in seconds used when locating elements and waiting for angular to load.


39
40
41
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 39

def max_wait_seconds
  @bridge.max_wait_seconds || 0
end

#protractorObject


11
12
13
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 11

def protractor
  @bridge.protractor
end

#protractor=(protractor_object) ⇒ Object


15
16
17
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 15

def protractor= protractor_object
  @bridge.protractor = protractor_object
end

#set_max_page_wait(value) ⇒ Numeric

Sets the wait time in seconds used when loading pages with protractor.get

Parameters:

  • value (Numeric)

    the amount of time to wait in seconds

Returns:

  • (Numeric)

    the wait time in seconds


48
49
50
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 48

def set_max_page_wait value
  @max_page_wait = value
end

#set_max_wait(value) ⇒ Numeric

Sets the wait time in seconds used when locating elements and waiting for angular towww.youtube.com/watch?v=o9c3U5_8tGY load.

Parameters:

  • value (Numeric)

    the amount of time to wait in seconds

Returns:

  • (Numeric)

    the wait time in seconds


31
32
33
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 31

def set_max_wait value
  @bridge.set_max_wait value
end