close

[Solved] Selenium ‘WebElement’ object has no attribute ‘Get_Attribute’

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Selenium ‘WebElement’ object has no attribute ‘Get_Attribute’ in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Selenium ‘WebElement’ object has no attribute ‘Get_Attribute’ Error Occurs?

Today I get the following error Selenium ‘WebElement’ object has no attribute ‘Get_Attribute’ in python.

How To Solve Selenium ‘WebElement’ object has no attribute ‘Get_Attribute’ Error ?

  1. How To Solve Selenium 'WebElement' object has no attribute 'Get_Attribute' Error ?

    To Solve Selenium 'WebElement' object has no attribute 'Get_Attribute' Error The “Get_Attribute” property doesn't exist, but the “get_attribute” property does:

  2. Selenium 'WebElement' object has no attribute 'Get_Attribute'

    To Solve Selenium 'WebElement' object has no attribute 'Get_Attribute' Error The “Get_Attribute” property doesn't exist, but the “get_attribute” property does:

Solution 1

The “Get_Attribute” property doesn’t exist, but the “get_attribute” property does:

items = driver.find_elements_by_tag_name("a")
print items

for item in items:
    href = item.get_attribute('href')
    print href

Solution 2

For python with input-field is like:

nowText = driver.find_element_by_id("source").get_attribute("value")
print(nowText)

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read