lib/pwn/www/pandora.rb in pwn-0.4.367 vs lib/pwn/www/pandora.rb in pwn-0.4.368

- old
+ new

@@ -74,11 +74,11 @@ browser_obj.goto('https://www.pandora.com/account/sign-in') browser_obj.text_field(id: 'login_username').wait_until(&:present?).set(username) browser_obj.text_field(id: 'login_password').wait_until(&:present?).set(password) - browser_obj.button(text: 'Log In').wait_until(&:present?).click + browser_obj.button(text: 'Log In').click! browser_obj rescue StandardError => e raise e end @@ -88,11 +88,11 @@ # browser_obj: 'required - browser_obj returned from #open method' # ) public_class_method def self.logout(opts = {}) browser_obj = opts[:browser_obj] - browser_obj.img(alt: 'Account Menu').wait_until(&:present?).click - browser_obj.span(text: 'Sign Out').wait_until(&:present?).click + browser_obj.img(alt: 'Account Menu').wait_until(&:present?).click! + browser_obj.span(text: 'Sign Out').wait_until(&:present?).click! browser_obj rescue StandardError => e raise e end