Places

The Places class provides low-level access for several bookmark and history related methods.

Places

class firefox_puppeteer.api.places.Places(marionette)

Low-level access to several bookmark and history related actions.

BookmarkFolders

alias of bookmark_folders

clear_plugin_data()

Clear any kind of locally stored data from plugins.

get_all_urls_in_history()

Retrieve any URLs which have been stored in the history.

get_folder_ids_for_url(url)

Retrieve the folder ids where the given URL has been bookmarked in.

Parameters:url – URL of the bookmark
Returns:List of folder ids
is_bookmark_star_button_ready()

Check if the status of the star-button is not updating.

Returns:True, if the button is ready
is_bookmarked(url)

Check if the given URL is bookmarked.

Parameters:url – The URL to Check
Returns:True, if the URL is a bookmark
remove_all_history()

Remove all history items.

restore_default_bookmarks()

Restore the default bookmarks for the current profile.

wait_for_visited(urls, callback)

Wait until all passed-in urls have been visited.

Parameters:
  • urls – List of URLs which need to be visited and indexed
  • callback – Method to execute which triggers loading of the URLs