mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Add sample of openBrowser() usage. Unfortunately it doesn't work because the radio buttons are acting weird.
This commit is contained in:
@@ -38,6 +38,13 @@ module.exports = syrup.serial()
|
||||
})
|
||||
|
||||
router.on(wire.BrowserOpenMessage, function(channel, message) {
|
||||
if (message.browser) {
|
||||
log.info('Opening "%s" in "%s"', message.url, message.browser)
|
||||
}
|
||||
else {
|
||||
log.info('Opening "%s"', message.url)
|
||||
}
|
||||
|
||||
var reply = wireutil.reply(options.serial)
|
||||
adb.startActivity(options.serial, {
|
||||
action: 'android.intent.action.VIEW'
|
||||
|
||||
Reference in New Issue
Block a user