Skip to content Skip to sidebar Skip to footer

Selenium Webdriver Python Attributeerror Type Object Has No Attribute

I am getting the following error in my Python Selenium Webdriver script. Error Traceback (most recent call last): File 'C:\Webdriver\ClearCore 501\TestCases\VariablesPage_TestCas

Solution 1:

There is a spelling/typo mistake while declaring variable

variables_projet_navigator_link2 = (By.XPATH, 'html/body/div[2]/div[2]/div/div[4]/div/div[2]/div/div[3]/div/div[5]/div/div[3]/div/div[2]/div/div/div/div/div/div/div[1]/div/div[2]/div/div[1]/div[3]/div[1]/div/div[2]/div/div[2]/span')

variables_projet_navigator_link2 should be variables_project_navigator_link2

Post a Comment for "Selenium Webdriver Python Attributeerror Type Object Has No Attribute"