I would like to use Selenium to click on a button on a Linkedln web page to activate the “Easy Apply” filter. I want to find a button with a specific aria-label attribute and at the same time use Linkedln’s Easy Apply feature.
The following HTML element represents the button to activate the “Easy Apply” filter:
`
<div class="search-reusables__filter-binary-toggle">
<button aria-checked="false" role="radio" aria-label="Easy Apply filter." id="ember404" class="artdeco-pill artdeco-pill--slate artdeco-pill--2 artdeco-pill--choice ember-view search-reusables__filter-pill-button" type="button">
Easy Apply
`
When I ran the following Python code, I could not find such an attribute. This is my Python code.
easy_apply_button = driver.find_element(By.XPATH, "//button[@aria-label='Easy Apply filter.']")
sveerrr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.