blob: 99e79d2e5a4674490be9b1e7936411333c0af536 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
module QA
module Vendor
module Facebook
module Page
class Login < Vendor::Page::Base
def login
fill_in 'email', with: QA::Runtime::Env.facebook_username
fill_in 'pass', with: QA::Runtime::Env.facebook_password
find('#loginbutton').click
confirm_oauth_access
end
def confirm_oauth_access
first('span', text: 'Continue as').click if has_css?('span', text: 'Continue as')
end
end
end
end
end
end
|