The website has multiple turn off buttons and the only thing that differentiates between them is the sales_area_uid
257207. How can I code this to click on the value of the uid?
HTML Source:
<input type="submit" class="button delete sales-area-status" name="submit_sales_area_status" data-sales-area-uid="275207" data-value="0" value="Turn Off">
Code so far:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome(r'/usr/bin/chromedriver')
driver.get("https://izoneapps.zonalconnect.com/mobile_manager/login.php")
driver.implicitly_wait(7)
driver.find_element_by_id("username").send_keys('*****')
driver.find_element_by_id("password").send_keys('*****')
driver.find_element_by_name("submit_login").click()
driver.get("https://izoneapps.zonalconnect.com/mobile_manager/ordering/")
driver.find_elements_by_xpath ("//div[@data-sales-area-uid=275207]").click()