Class: Driver

Inherits:
Object
  • Object
show all
Defined in:
lib/ui/driver/Driver.rb

Instance Method Summary collapse

Constructor Details

#initialize(driver) ⇒ Driver

Pass in an instance of the driver

Parameters:

  • The

    driver from Selenium Webdriver class



8
9
10
# File 'lib/ui/driver/Driver.rb', line 8

def initialize(driver)
  @driver = driver
end

Instance Method Details

#set_implicit_wait(implicit_wait) ⇒ Object

Set the amount of time the driver should wait when searching for elements.

Parameters:

  • implicit_wait

    seconds for implicit wait



14
15
# File 'lib/ui/driver/Driver.rb', line 14

def set_implicit_wait(implicit_wait)
end

#set_navigate_to(navigate_to) ⇒ Object

The URL to navigate to

Parameters:

  • navigate_to

    location for the browser to navigate to



29
30
# File 'lib/ui/driver/Driver.rb', line 29

def set_navigate_to(navigate_to)
end

#set_page_load(page_load) ⇒ Object

Sets the amount of time to wait for a page load to complete before throwing an error.

Parameters:

  • page_load

    seconds to wait for page to load



19
20
# File 'lib/ui/driver/Driver.rb', line 19

def set_page_load(page_load)
end

#set_script_tiemout(script_tiemout) ⇒ Object

Sets the amount of time to wait for an asynchronous script to finish execution before throwing an error.

Parameters:

  • script_time

    seconds to wait for script to complete



24
25
# File 'lib/ui/driver/Driver.rb', line 24

def set_script_tiemout(script_tiemout)
end