To get the color of text with webdriver.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

To get the color of text with webdriver.

Illusion0Reality
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");
Reply | Threaded
Open this post in threaded view
|

Re: To get the color of text with webdriver.

softwaretestingforum
Administrator
Thanks for sharing it
~ seleniumtests.com