forked from instaclick/php-webdriver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDevice.php
34 lines (30 loc) · 1.07 KB
/
Device.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace Webdriver;
final class Device extends AbstractWebDriver
{
protected function methods()
{
return array(
'lock' => array( 'POST' ),
'shake' => array( 'POST' ),
'is_locked' => array( 'POST' ),
'press_keycode' => array( 'POST' ),
'long_press_keycode' => array( 'POST' ),
'keyevent' => array( 'POST' ),
'rotate' => array( 'POST' ),
'current_activity' => array( 'GET' ),
'install_app' => array( 'POST' ),
'remove_app' => array( 'POST' ),
'app_installed' => array( 'POST' ),
'hide_keyboard' => array( 'POST' ),
'pull_file' => array( 'POST' ),
'push_file' => array( 'POST' ),
'pull_folder' => array( 'POST' ),
'toggle_airplane_mode' => array( 'POST' ),
'toggle_data' => array( 'POST' ),
'toggle_wifi' => array( 'POST' ),
'toggle_location_services' => array( 'POST' ),
'open_notifications' => array( 'POST' ),
);
}
}