Hello the process of login to my bank account is very tedious because it has a randomly generated keyboard that changes letters positions all the time can I make a bot to do it in my place?? I tried it with selenium but because the letters positions change all the time on the keyboard I could not locate the letters with the xpath and the buttons don't have an id.
CodePudding user response:
try to find the buttons by text using this:
def find_button_by_text(text):
for i in driver.find_elements_by_tag_name('button'):
if i.text == text:
return i
then click it
