How To Find Value From Disable Text Field Using Selenium WebDriver

Steps:
1. Navigate to the web Page.
2. Find disable text box by help of locators.
3. Then Use getAttribute(attributeName). 
attribute name may be value,innertext etc..

Ex:
WebDriver driver= new FirefoxDriver();
driver.navigate().to("http://someUrl.com");
 string phoneNumberViewPage = driver.findElement(By.xpath("//*[@name='n']")).getAttribute("value");
Assert.assertEquals("Gooogle", phoneNumberViewPage);


Copyright © 2017 qatoolsguide.blogspot.com || ALL RIGHTS RESERVED