Does CSS in QTP can help identifying objects only ??? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Does CSS in QTP can help identifying objects only ??? (/Thread-Does-CSS-in-QTP-can-help-identifying-objects-only) |
Does CSS in QTP can help identifying objects only ??? - keeper_13 - 06-04-2013 Hi My Questions is that does css or xpath helps only in identifying the objects in qtp meaning their location. Because what I want to do I want to access properties like color, fontsize etc. which are not defined in object spy for firefox and Chrome. How can we identify them?? Does CSS and XPath helps in that. RE: Does CSS in QTP can help identifying objects only ??? - vinod123 - 06-04-2013 Use XPath and CSS to identify that will help to solve the problem RE: Does CSS in QTP can help identifying objects only ??? - keeper_13 - 06-06-2013 object identification is working fine with css but I want to access properties like color fontsize from css to qtp. how can i do it RE: Does CSS in QTP can help identifying objects only ??? - vinod123 - 06-06-2013 In QTP in object identification table if the properties are not sufficient to locate a object We can add property to the list of added properties. But i am not using qtp 11 and i am also new to the xpath concept. You can try with that also RE: Does CSS in QTP can help identifying objects only ??? - supputuri - 06-06-2013 You can use the DOM [Document Object Model] in either the case you are specifying your test object location (either with xpath or CSS). Once you have defined your object then type ".Object", now you can access all the properties that are defined in the HTML. B.P.WebButton(your xpath/CSS).Object.----- Let me know if you need any further help... RE: Does CSS in QTP can help identifying objects only ??? - keeper_13 - 06-07-2013 Thanks Supputuri I tried .Object.currentstyle works for IE not for Chrome and Firefox. for Chrome and Firefox should I use getcomputedstyle to catch the style from computedstylesheet(color,fontsize etc.) |