We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af5effb commit 42c6772Copy full SHA for 42c6772
openwisp_firmware_upgrader/tests/test_selenium.py
@@ -95,7 +95,7 @@ def test_restoring_deleted_device(self):
95
reverse(f'admin:{self.config_app_label}_device_delete', args=[device.id])
96
)
97
self.web_driver.find_element(
98
- by=By.XPATH, value='//*[@id="content"]/form/div/input[2]'
+ by=By.CSS_SELECTOR, value='#content form input[type="submit"]'
99
).click()
100
self.assertEqual(Device.objects.count(), 0)
101
self.assertEqual(DeviceConnection.objects.count(), 0)
0 commit comments