File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 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):
1616 self .dut .adb .shell ('am start -a android.intent.action.VIEW -d "http://www.google.com"' )
1717 time .sleep (5 ) # Wait for the page to load
1818
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"')
2020 time .sleep (5 ) # Wait for the page to load
2121 self .search_github ()
2222
2323
2424 def search_github (self ):
2525 print (">>> Searching for 'github' on Google" )
2626
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+
2934 time .sleep (1 ) # Give it some time to focus
3035
3136 # Simulate typing 'github' into the search box
You can’t perform that action at this time.
0 commit comments