I am trying to get selenium to find an element and click on it.
The element is as follows:
<button class="btn btn-link">search criteria: on support work 'took place on' (grouped by author), from: 2020-10-01, to: 2020-12-31</button>
When clicked, this button opens a form within the same URL that allows me to input an upper and lower time restraint. The goal is to get Selenium to fill in the form and click 'Update'.
I've tried a few different methods ('find_element_by_xpath', '...by_class_name', 'WebDriverWait' etc but selenium doesn't ever recognise the button element. Ive all tried skipping this step and trying to fill in the form directly (since its all under the same URL but no luck.
I'm a total beginner so the solution is probably very basic. I just don't know what it is.
Try:
driver.findElement(By.cssSelector('btn.btn-link'))
.