Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 75b2f4f

Browse files
author
yennj12
committed
update
1 parent b37d334 commit 75b2f4f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎mobly/browser_test.py‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /