I am stuck. Can you help me?
I have an input box on a site, where the client number is entered. The number is in format NO0000 (contains both letters and numbers). I want the script to increment NO0000 with 1, depending on if the client number already exists.
For example, if I have NO000, i want the input to add an increment to the last number of the client no, so the output will be NO001.
I want to do this with Selenium webdriver on a page with an input box.
`#input client details
clientno = driver.find_element(by=By.XPATH, value='//*[@id="ctl00_MainContentPlaceHolder_tbclient_no"]')
clientno.send_keys('NO000')
clientno = bytes(clientno, 'utf-8')
clientnoincr = bytes(clientno + 1)
clientnoincr = str(clientnoincr)`
When i do this, nothing happens. Why?