parser.add_argument('--password', nargs=1, required=True) parser.add_argument('--company', nargs=1, required=True) parser.add_argument('--headless', nargs=1, required=True) args = parser.parse_args() inputFile = str(args.inputFile[0]) outputFile = str(args.outputFile[0]) companyId = str(args.company[0]) userId = str(args.userId[0]) password = str(args.password[0]) headless = str(args.headless[0]) spreadsheet = Spreadsheet(inputFile) # To begin, we load the form on the supplied URL. # This is just the starting point, so the URL will change as we navigate around. form = Form('https://www.e-oscar-web.net/EntryController?trigger=Login', headless) # First we need to log in. form.fill([ form.select(id='companyId', val=companyId), form.select(id='userId', val=userId), form.select(id='password', val=password), form.select(id='securityMsgAck1'), form.select(selector='.loginBtn') ]) #We need to get the correct AUD Panel with form.frame('topFrame'): form.fill([form.select(id='DFProcessAUDanch')])