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 |
Where do we get the QTP and Load runner softwares CDs ( Original ) in chennai
Kindly let me know how to setup JMeter for functionality testing of a Web application.. The apache help doc is good but i m little confused with it... :(
what is the difference between keyword driven frame work and data driven frame work.
Write a short compiled module which selects random numbers. and what function is used to call your customized compiled module?
How you will evaluate the tool for test automation?
How do you Test Credit Card Validation
Types of F/w in Automation
Describe common problems of test automation.
what kind of application can be tested in winrunner,load runner,qtp,silktest,test director,rational robo,open sta?
What is the purpose of the testing?
Please name a couple of standard web function found in the function generator?
define primary key & secondary key?