'how to select phpmyadmin sql query box using selenium and send value to it

i am trying to select phpmyadmin SQL query textarean using selenium but it's not working, as any query you add it will be converted to spans in a div not an actual textarea, please advise. i tired this using xpath but not working

sql_query = "UPDATE es_su SET goodsCd = 'xxxx' WHERE No='1000000002'"
driver.find_element_by_xpath('//*[@id="sqlquery"]').sendKeys(sql_query)

This is the xpath for phpMyAdmin(version 4.9.10) query box


driver.find_element_by_xpath('//*[@id="sqlquery"]').sendKeys(sql_query)
AttributeError: 'WebElement' object has no attribute 'sendKeys'


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source