html - not able to get the value WebDriver using java -
After
please search the HTML code
I need to get this oldtitle value ("password does not match password policy")
Zero values are following my code (Java), but I'm getting
string Validationmessagepwd = driver.findElement (By.cssSelector ("input # txtRegPassword")) getAttribute ("oldtitle");. Version code
Note A zero value output: The oldtitle (dynamic) KO (knockout js) binding feature with the binding that I am not capable of getting this, please The guide
Try it out. We go into a loop for a maximum of 500 seconds, as long as the method Every 500 ms does not apply.
WebDriverWait wait = new WebDriverWait (driver, 5) .until (New ExpectedCondition & LT; Boolean & gt; () {Public Boolean Applied (WebDriver Driver) {WebElement inputElement = driver.findElement (By.cssSelector ("input # txtRegPassword"); if (inputElement.getAttribute ("old title") == faucet) return false;} Other {back true;} });
Comments
Post a Comment