You are probably looking for get_attribute()
. An example is shown here as well
def test_chart_renders_from_url(self):
url="http://localhost:8000/analyse/"
self.browser.get(url)
org = driver.find_element_by_id('org')
# Find the value of org?
val = org.get_attribute("attribute name")
More Related Contents:
- How to get attribute of element from Selenium?
- Selenium “selenium.common.exceptions.NoSuchElementException” when using Chrome
- Switch to an iframe through Selenium and python
- Python + Selenium: Wait until element is fully loaded
- How to select a drop-down menu value with Selenium using Python?
- Get HTML source of WebElement in Selenium WebDriver using Python
- How to allow or deny notification geo-location microphone camera pop up
- find_element_by_* commands are deprecated in selenium
- Don’t wait for a page to load using Selenium in Python
- Selenium: FirefoxProfile exception Can’t load the profile
- How to rotate Selenium webrowser IP address
- How do you fix the “element not interactable” exception?
- How to open multiple webpages in separate tabs within a browser using selenium-webdriver and python
- How to get rid of the infobar “Chrome is being controlled by automated test software” through Selenium
- Undetected Chromedriver not loading correctly
- How to change the User Agent using Selenium and Python
- selenium grid listening on node port instead of hub port
- How to test non-standard drop down lists through a crawler using Selenium and Python
- Python selenium: wait until element is clickable – not working
- Finding elements by class name with Selenium in Python
- How to execute tests with selenium webdriver while browser is minimized
- Webpage Is Detecting Selenium Webdriver with Chromedriver as a bot
- How to select multiple options from multi select list using Selenium-Python?
- How to rotate various user agents using selenium python on each request
- Python Selenium driver.execute_script WebDriverException: Message: unknown error: call function result missing ‘value’
- __init__() takes 2 positional arguments but 3 were given using WebDriverWait and expected_conditions as element_to_be_clickable with Selenium Python
- What is unittest in selenium Python?
- Send keys not working selenium webdriver python
- selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedriver.exe while opening chrome browser
- Webdriver Screenshot