79311757

Date: 2024-12-27 12:10:33
Score: 1.5
Natty:
Report link

Found it with the long xpath names. When I use the sort names it's not always working. The input names change somrtimes (input-7 becomes input-10 and input-10 becomes input-13)

username_field = driver.find_element(By.XPATH,'/html/body/div[3]/div/div/div[1]/div[2]/div/div/div/div/c-login-page/div/lightning-layout/slot/lightning-layout-item[1]/slot/lightning-input/lightning-primitive-input-simple/div[1]/div/input')

password_field = driver.find_element(By.XPATH,'/html/body/div[3]/div/div/div[1]/div[2]/div/div/div/div/c-login-page/div/lightning-layout/slot/lightning-layout-item[2]/slot/lightning-input/lightning-primitive-input-simple/div[1]/div/input')

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hans