Class: DriverExtensions
- Inherits:
-
Object
- Object
- DriverExtensions
- Defined in:
- lib/driver_extensions.rb
Class Method Summary collapse
Class Method Details
.close_window ⇒ Object
7 8 9 10 |
# File 'lib/driver_extensions.rb', line 7 def self.close_window Driver.execute_script_driver("window.close()") sleep 1 end |
.open_new_window(url) ⇒ Object
2 3 4 5 |
# File 'lib/driver_extensions.rb', line 2 def self.open_new_window(url) Driver.execute_script_driver("window.open('#{url}')") sleep 1 end |