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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -