what is the command for identifing the color of the object.
please help me ? my numberis 9916800532
Answers were Sorted based on User's Feedback
Answer / punj
Set Obj=browser().page().link()
obj.object.currentstyle.color
will give the color
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / messai
This method Object.currentStyle.color can be used for
any object to find the font color. You will get many
attributes falls under currentstyle
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sayonita
e.g. You have a button colored. You want to get the color of the button. So the code will be:
WebElement ButtonColor=driver.findElement(r.getLocator("BtnColor")); //BtnColor is the element whose xpath I have mentioned in a properties file
String color=status.getCssValue("background-color"); //Captures the color and stores in a variable
System.out.println(color); //prints the color of the button
String hex = Color.fromString(color).asHex(); //convert this color code into hexadecimal format
System.out.println(hex); //print the color code and then you compare in your script
| Is This Answer Correct ? | 0 Yes | 0 No |
What tools are available for support of testing during software development life cycle?
what is critical test case ? please give an example .
How do select which automation testing tool is the best for you?
Do you know what is the purpose of deselectall() method?
i have file name called add.sh how to run and where to run this shell script file???
Can test automation improve test effectiveness?
What do you think holds the testers back to do automation? Is there a way to overcome it?
Bug report formate in bugzilla
define joins? when you will joins use?
Describe some problem that you had with automating testing tool.
How did you use WR in your project? Please can i get in detail answer for this?
Tell us what is the difference between @factory and @dataprovider annotation?