I'm trying to click on see more (se flere) on this particular website using selenium and python. This is how I am testing it, and i get the following error
driver.find_element_by_css_selector('[class="button button--primary style_loadMore__2rYaL style_button__xicB7"]').click()
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted:
This is what works:
tresults = driver.find_elements_by_xpath('//button[text()="Se flere"]') #flere"]')
for idx, tr in enumerate(tresults):
    #print (tr.text, tr.get_attribute('class'))
    if tr.get_attribute('class') == 'button button--primary style_loadMore__2rYaL style_button__xicB7':
        driver.execute_script("arguments[0].click();", tr)
        #tr.click()
What am I missing?
 
    
 
    