SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

Prevent phone/emulator from going to sleep on Android #6335

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 6335

It would be great if Selenium apk would ask for a screen lock, so emulator won't go
dim.

Something like:

http://www.androidsnippets.com/stop-screen-from-dimming-by-enforcing-wake-lock

Reported by mobile.qa.redhat on 2013-09-29 14:00:37

lukeis commented 8 years ago

Reported by barancev on 2013-09-29 20:06:02

lukeis commented 8 years ago
This about replacing SCREEN_DIM_WAKE_LOCK (deprecated in API 17), which allows screen
to be dimmed, with FLAG_KEEP_SCREEN_ON in http://code.google.com/p/selenium/source/browse/android/src/org/openqa/selenium/android/server/HttpdService.java#186

Reported by mobile.qa.redhat on 2013-10-01 08:17:54

lukeis commented 8 years ago
Selenium project no longer supports the AndroidDriver.

Please use Selendroid instead:
http://selendroid.io/webview.html

And log any issues against that project:
https://github.com/selendroid/selendroid/issues

Reported by luke.semerau on 2013-12-26 21:57:36

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:18:01