Confirmed users
905
edits
No edit summary |
No edit summary |
||
| Line 66: | Line 66: | ||
mSolo.waitForText("^Settings$"); | mSolo.waitForText("^Settings$"); | ||
mSolo.clickOnText("^Settings$"); | mSolo.clickOnText("^Settings$"); | ||
== Use the Back key == | |||
mActions.sendSpecialKey(Actions.SpecialKey.BACK); | |||
== Set up listeners to catch the page load == | == Set up listeners to catch the page load == | ||
| Line 74: | Line 77: | ||
tabEventExpecter.blockForEvent(); | tabEventExpecter.blockForEvent(); | ||
contentEventExpecter.blockForEvent(); | contentEventExpecter.blockForEvent(); | ||
== Wait for Gecko to load == | |||
mActions.expectGeckoEvent("Gecko:Ready").blockForEvent(); | |||
== Open the Bookmarks tab - method == | |||
private ListView openBookmarksList() { | |||
Activity awesomeBarActivity = clickOnAwesomeBar(); | |||
// Click the "Bookmarks" tab to switch to bookmarks list | |||
mSolo.clickOnText("Bookmarks"); | |||
TabHost tabHost = (TabHost)mSolo.getView(TabHost.class, 0); | |||
return (ListView)tabHost.getCurrentView(); | |||
} | |||
*Similarly you can get the History and Top Sites tabs | |||
== Open Bookmark context menu == | |||
View child = list.getChildAt(<nr>); //bookmark nr- '''numbering starts at 0 ''' | |||
mSolo.clickLongOnView(child); //long tap to open context menu | |||
*Similarly you can open the context menu for History and Top Sites items | |||