def launch(self): """ Open the instrument summary page with the webdriver """ self.driver.get(configuration.get_url()) self.driver.get(self.url()) return self
def launch(self): """ Navigate the webdriver to this page :return: The page object """ self.driver.get(configuration.get_url()) self.driver.get(self.url()) return self
def launch(self) -> RunSummaryPage: """ Open the page with the webdriver :return: The RunSummaryPage object model """ # Navigates to / first to force a login. Check the README and # the "index" view for more details self.driver.get(configuration.get_url()) self.driver.get(self.url()) return self
def launch(self): """ This is a bit of a hack to get around the fact that you will only be logged in when connecting to / and not /overview. Once we have a better way to simulate logging in on the dev/local environments we can remove this method and add proper logging in methods and tests """ self.driver.get(configuration.get_url()) self.driver.get(self.url()) WebDriverWait(self.driver, 10).until( presence_of_element_located((By.CLASS_NAME, "instrument-btn"))) return self
def url(self): """ Return the URL of the page object :return: (str) The url of the page object """ return configuration.get_url() + self.url_path()