This is my python/selenium code
username = driver.find_element_by_xpath('//*[@id="username"]')
password = driver.find_element_by_xpath('//*[@id="password"]')
enter = driver.find_element_by_xpath('//*[@id="loginbox"]/input[3]')
passfile = open(alltools.get_letter() + "path\pass.txt", "r")
line = passfile.readlines()
username.send_keys(line[0])
password.send_keys(line[1])
enter.click()
The form I'm trying to fill is
<form style="align: center;" id="loginForm" method="post" action="j_security_check" autocomplete="off">
      <div class="identity-box" id="loginbox">
        <div class="alert-error" style="display: none">Invalid username or password</div>
        <label class="label" for="username">Username</label>
        <input type="text" class="text-input" size="30" name="j_username" id="username">
        <label class="label" for="password">Password</label>
        <input type="password" class="text-input" size="30" name="j_password" id="password">
        <input type="submit" class="button" value="Sign In">
      </div>
    </form>
I know the issue is with the autocomplete="off". How do I turn it off?
 
    