AMOfunctions
AMOfunctions
This is intended as a summary of functions. Refer to the in-line function doc regarding parameters and other information.
login - login to a generic user. The parameter is mnenomic for the user type.
submitHeaderSearch - supplies data to the search panel in the AMO header and submits the search. Only the selenium instance (sel) parameter is required, and other parameter are named and optional. The script does not return the search results, rather it returns one of three strings: null string - at least one item was returned in the search results based on locators defined in AMOlocators. itself. 'no results' - the 'No Result Found' message was returned, based on locators defined in AMOlocators 'unexpected layout' - neither of the above conditions were detected using is_element_present( ) and locators for search results page.
getAdminFeaturedList - returns a dictionary of featured items from the admin control panel. Items are qualified by the application and feature type (ex: extensions, persona) specified by the parameters. The parameter values are the corresponding values found in the admin featured items list. See the in-line function doc for more information on the structure of the dictionary that is returned.
isUserURL - returns True if the parameter is the format of a user profile URL, otherwise False.
getAddonIdFromURL - returns the add-on id segment of a URL for an add-on
userURLpattern - returns the pattern for a user profile URL. defined as a function to allow more extendability.
userURLpatternGroup - returns the pattern for a user profile URL with id in a grouping to allow parsing URL id. defined as a function.
isAddonURL - returns True if the parameter is the format of a add-on URL, otherwise False.
addonURLpattern - returns the pattern for a add-on URL. defined as a function to allow more extendability.
addonURLpatternGroup - returns the pattern for a add-on URL with id in a grouping to allow parsing add-on id. defined as a function.
verifyStarsRating - confirms the stars rating elements are in agreement within the locator specified by the parameter. returns a list of strings describing the exceptions found, or an empty list if no exceptions are found.