|
Here it is link text, and this code is verified.
vcv2=driver.findElement(By.linkText("google.com")).getCssValue("Color");
vcv2 will be in Hexa values, and we need to convert them.
TO type a new line:
driver.findElement(By.name("ta")).sendKeys("line one \nline two");
|