Sto provando a usare il comando click in selenium webdriver usando python. Ma sto ottenendo l'errore qui sotto. Qualcuno può aiutarmi?AttributeError: l'oggetto 'list' non ha attributo 'click' - Selenium Webdriver
Traceback (most recent call last):
File "C:\Users\vikram\workspace\LDC\test.py", line 13, in <module>
driver.find_elements_by_link_text("MISCQA Misc Tests").click()
AttributeError: 'list' object has no attribute 'click'
Ecco il mio programma
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.support.ui import WebDriverWait
import config
url = config.config.get('url')
driver = webdriver.Ie()
driver.get(url)
driver.find_elements_by_link_text("MISCQA Misc Tests").click()
driver.close()
penso che mi manca qualche cosa. Si prega di suggerire me
driver.find_elements_by_link_text ("MISCQA Misc Tests") ritorna l'elenco, non oggetto richiamabile – cval