62
edits
(→APIs) |
(Added android IDs) |
||
Line 39: | Line 39: | ||
//Returns the text currently displayed on the element, or direct sub-elements. | //Returns the text currently displayed on the element, or direct sub-elements. | ||
String getText(); | String getText(); | ||
</pre> | |||
= Usable IDs = | |||
The following is a list of ids that can be used with Driver.findElement(). Most of the following ids have not been tested, so might have unexpeced results, or require increased APIs for them. To know how a given object is used, in mobile/android/base, grep R.id.[id-name] * | |||
(from Objdir/mobile/android/base/R.java#id) | |||
<pre> | |||
abouthome_content | |||
add_tab | |||
addons | |||
address_bar | |||
agent_mode | |||
all_pages_list | |||
awesome_bar | |||
awesome_screen | |||
awesomebar_button | |||
awesomebar_tabs | |||
awesomebar_text | |||
background | |||
bookmark | |||
bookmark_icon | |||
bookmark_title | |||
bookmark_url | |||
bookmarks_list | |||
browser_toolbar | |||
close | |||
container | |||
doorhanger_choices | |||
doorhanger_container | |||
doorhanger_title | |||
favicon | |||
forward | |||
gecko_layout | |||
grid | |||
history_list | |||
info | |||
list | |||
main_layout | |||
notification_image | |||
notification_progressbar | |||
notification_text | |||
notification_title | |||
outline | |||
plugin_container | |||
preferences | |||
quit | |||
recommended_addon_list | |||
reload | |||
save_as_pdf | |||
screenshot | |||
select_list | |||
share | |||
site_security | |||
stop | |||
tabs | |||
tabs_count | |||
title | |||
url | |||
</pre> | </pre> |
edits