I have this HTML code:
<button ng-show="vm.loading_update" class="alert alert-warning">
<strong>Upgrading firmware... Please Wait...</strong>
</button>
This alert message is open when a previous button was clicked (this is ok). So, I have this small code but doesn't work, the alert message isn't found.
self.elem = self.driver.find_element_by_xpath('//button[text()="Upgrade"]')
self.elem.click()
time.sleep(1)
WebDriverWait(self.driver, 2).until(EC.alert_is_present(),
"Upgrading firmware... Please Wait...")
alert_test = self.driver.switch_to.alert()
alert_test.accept()
I need to know if this message is displayed to continue the test...
Thanks in advance.