We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e83917b commit ca38a91Copy full SHA for ca38a91
openwisp_monitoring/tests/test_selenium.py
@@ -145,7 +145,7 @@ def test_restoring_deleted_device(self):
145
reverse(f'admin:{self.config_app_label}_device_delete', args=[device.id])
146
)
147
self.web_driver.find_element(
148
- By.XPATH, '//*[@id="content"]/form/div/input[2]'
+ by=By.CSS_SELECTOR, value='#content form input[type="submit"]'
149
).click()
150
self.assertEqual(Device.objects.count(), 0)
151
self.assertEqual(DeviceConnection.objects.count(), 0)
0 commit comments