Add/update translations. Make get() more flexible.
- Add/update multiple translations for the Translation API
- The SeleniumBase Translation API now includes all language translations from the seleniumbase/translate folder.
- Make the self.get(url) method more flexible:
def get(self, url):
""" If url looks like a page URL, opens the URL in the web browser.
Otherwise, returns self.get_element(URL_AS_A_SELECTOR)
Examples:
self.get("https://seleniumbase.io") # Navigates to the URL
self.get("input.class") # Finds and returns the WebElement
"""
if self.__looks_like_a_page_url(url):
self.open(url)
else:
return self.get_element(url) # url is treated like a selector
- Update the
flake8
Python dependency