File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,21 @@ def test_open_browser(self):
16
16
self .dut .adb .shell ('am start -a android.intent.action.VIEW -d "http://www.google.com"' )
17
17
time .sleep (5 ) # Wait for the page to load
18
18
19
- self .dut .adb .shell ('am start -a android.intent.action.VIEW -d "http://www.github.com"' )
19
+ # self.dut.adb.shell('am start -a android.intent.action.VIEW -d "http://www.github.com"')
20
20
time .sleep (5 ) # Wait for the page to load
21
21
self .search_github ()
22
22
23
23
24
24
def search_github (self ):
25
25
print (">>> Searching for 'github' on Google" )
26
26
27
- # Focus on the search bar: tapping on the search bar (coordinates need to be accurate)
28
- self .dut .adb .shell ('input tap 540 160' ) # Coordinates for the Google search bar (adjust as needed)
27
+ # Focus on the search bar: tapping on the search bar (coordinates need to be accurate
28
+ # ABS_MT_POSITION_X : 00001725
29
+ # ABS_MT_POSITION_Y: 000014ab
30
+
31
+ #self.dut.adb.shell('input tap 540 160') # Coordinates for the Google search bar (adjust as needed)
32
+ self .dut .adb .shell ('input tap 5941 5291' )
33
+
29
34
time .sleep (1 ) # Give it some time to focus
30
35
31
36
# Simulate typing 'github' into the search box
You can’t perform that action at this time.
0 commit comments