You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Issue does not reproducible for the getAttrtibute property.
How can we reproduce the issue?
public class getTextBoxValue() {
public static void main(String[] args) {
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
driver.get("http://www.automationpractice.pl/index.php");
WebElement element = driver.findElement(By.name("search_query"));element.click();
element.sendKeys("iPhone");
System.out.println(element.getDomAttrtibute("value"));
}
}
Relevant log output
There is no value printed in console after running above script.
Operating System
Windows 11
Selenium version
Java(V21) & Selenium(4.27.0)
What are the browser(s) and version(s) where you see this issue?
Chrome(V131), Edge(V131)
What are the browser driver(s) and version(s) where you see this issue?
Chromedriver(V131)
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered:
@shreyans1223, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template label.
If the issue is a question, add the I-question label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-* label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer label.
@shreyans1223 getAttribute is deprecated, reason it didn't work is there is no corresponding value in the DOM for the attribute 'value'. Try with getDomProperty. It should work.
What happened?
Selenium Version: 4.27.0
Reproducible browsers: Chrome(V131), Edge(V131)
Steps to reproduce:
Note: Issue does not reproducible for the getAttrtibute property.
How can we reproduce the issue?
Relevant log output
There is no value printed in console after running above script.
Operating System
Windows 11
Selenium version
Java(V21) & Selenium(4.27.0)
What are the browser(s) and version(s) where you see this issue?
Chrome(V131), Edge(V131)
What are the browser driver(s) and version(s) where you see this issue?
Chromedriver(V131)
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: