You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# automate flickr login https://mlogin.yahoo.com/w/login?# first click into the webview, then attach.webview=Appium::Android::Webview.attach_to_tabpackage: 'com.example.Package',url: 'yahoo.com/'webview.client.page_events=true# javascript from this commit:# https://github.com/appium/ruby_lib/commit/9b838f4dc280126e4468a177fa4dd83eb2417512js=Appium::Android::Webview.javascript + <<-JSfirstEmailInput().value = 'example@example.com';firstPasswordInput().value = 'password'firstSubmitElement().click();JSwebview.client.remote_evaljswebview.client.wait_for(type: WebkitRemote::Event::PageLoaded).last# must sleep to let the page load. the page loaded event doesn't mean the page has loaded...sleep5# wait for element to exist on page, then check readystatewait_true{webview.client.remote_eval('firstAuthElement() !== null;')}wait_true{webview.client.remote_eval('document.readyState') == 'complete'}js=Appium::Android::Webview.javascript + <<-JSfirstAuthElement().click();JSwebview.client.remote_evaljs# now we're successfully logge in and authorized on flickr
uiautomator accessibility
Load a webview. Exit the webview. From now on all webviews will have accessibility enabled.