I am trying to edit the Column "Stock". Editing must be done for all rows having a value greater than 5. Right now, if it is 10, then it must reduce 1 by 1 until it gets to 5 and then adding back to 10. One it is completed going from 10 to 5 and then back to 10, then it must process next row.
Image of website's screen grid/table is uploaded.
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
browser = webdriver.Chrome('C:\\Users\\ABC\\Downloads\\chromedriver_win32\chromedriver')
browser.get('https://seller.Mine.com/')
browser.find_element_by_id('Final').click()
browser.find_element_by_name('username').send_keys('mine@gmail.com')
browser.find_element_by_name('password').send_keys('xxxx')
submit = WebDriverWait(browser, 5).until(EC.visibility_of_element_located((By.XPATH, "//button[@class='sc-aewfc iesYjz']//span")))
submit.click()
browser.get('https://seller.Mine.com/index.html#dashboard/listings-management?listingState=ACTIVE')