I am working on web scraping from LinkedIn. I have a filter for roles on a sales navigator page. Here I need to add filter for roles using python.
driver.find_element(By.XPATH,"//[@id='ember219']/div/input").send_keys('Marketing')
However, the xpath keeps changing each time I open the page like this:
//[@id='ember220']/div/input
//[@id='ember221']/div/input
//[@id='ember222']/div/input
Please help me match the pattern for my driver so that each time I have a smooth action happening. Roles can be Marketing , VP, Director so on.