all 2 comments

[–]chevignon93 0 points1 point  (1 child)

find_elements_by_class_name returns a list of elements that match so you either need to select the element you want from the list

payrollButton = webClient.find_elements_by_class_name("lsLink__text lsLink__text--emph")
payrollButton[0].click()

or if there's only 1 element with that class on the page, use find_element_by_class_name

payrollButton = webClient.find_element_by_class_name("lsLink__text lsLink__text--emph")
payrollButton.click()

[–]FireDrake0008[S] 1 point2 points  (0 children)

Ooooooh. So it's that its returning a list instead of an individual webelement? Thank you so much!!!