<input attr1='a' attr2='b' attr3='c'>foo</input>
getAttribute(attr1)
you get ‘a’
getAttribute(attr2)
you get ‘b’
getAttribute(attr3)
you get ‘c’
getText()
with no parameter you can only get ‘foo’
More Related Contents:
- What is the difference between ChromeDriver and WebDriver in selenium?
- Element MyElement is not clickable at point (x, y)… Other element would receive the click
- How many ways to click on webElement In WebDriver?
- How to switch to the new browser window, which opens after click on the button?
- When to use explicit wait vs implicit wait in Selenium Webdriver?
- How to handle authentication popup with Selenium WebDriver using Java
- How to gettext() of an element in Selenium Webdriver
- pageLoadTimeout in Selenium not working
- The type FluentWait is not generic; it cannot be parameterized with arguments error for FluentWait Class through Selenium and Java
- Selenium WebDriver: Wait for complex page with JavaScript to load
- How to ignore protected Mode Settings for Internet Explorer using setCapability() through Selenium and Java?
- Find div element by multiple class names?
- Equivalent of waitForVisible/waitForElementPresent in Selenium WebDriver tests using Java?
- javascript error: Failed to execute ‘elementsFromPoint’ on ‘Document’: The provided double value is non-finite
- File Upload using Selenium WebDriver and Java Robot Class
- org.openqa.selenium.WebDriverException: unknown error: call function result missing ‘value’
- Check if element is clickable in Selenium Java
- Selenium WebDriver and DropDown Boxes
- What is difference between Implicit wait and Explicit wait in Selenium WebDriver? [duplicate]
- java.lang.IllegalAccessError: tried to access method com.google.common.util.concurrent.SimpleTimeLimiter. when using Selenium-Java 3.5.1 or above
- Selenium InternetExplorerDriver doesn’t get focus on the window
- How to set default download directory in selenium Chrome Capabilities?
- Test if an element is present using Selenium WebDriver
- How to make Selenium wait until an element is present?
- Why do some elements exist but not interactable/displayed?
- How to perform Basic Authentication for FirefoxDriver, ChromeDriver and IEdriver in Selenium WebDriver?
- How to open a link in new tab (chrome) using Selenium WebDriver?
- How do I load a javascript file into the DOM using selenium?
- How to wait until an element no longer exists in Selenium
- How to scroll a specific DIV using Selenium WebDriver with Java?