Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does CSS in QTP can help identifying objects only ???
#1
Solved: 11 Years, 4 Months ago
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.
Reply
#2
Solved: 11 Years, 4 Months ago
Use XPath and CSS to identify that will help to solve the problem
Reply
#3
Solved: 11 Years, 4 Months ago
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
Reply
#4
Solved: 11 Years, 4 Months ago
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
Reply
#5
Solved: 11 Years, 4 Months ago
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...
Thanks,
SUpputuri
Reply
#6
Solved: 11 Years, 4 Months ago
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.)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT 14.01 - identifying wpf objects. but not performing action. chinmoyee 1 2,504 11-15-2017, 03:42 PM
Last Post: Ankur
  Objects identifying as WinObjects on IE with QTP/UFT santhosh kumar 5 5,539 05-07-2016, 12:39 PM
Last Post: vinod123
  QTP 10 not identifying objects in IE8 on 64 bit OS Ram2009 6 4,720 03-24-2015, 05:46 PM
Last Post: vinod123
  QTP 11 - Chrome 24. Dialog box is identifying as Win object. Kannan R 0 3,096 08-13-2013, 08:10 PM
Last Post: Kannan R
  spy identifying objects sonal.nagda2008 0 1,870 03-03-2013, 01:29 PM
Last Post: sonal.nagda2008

Forum Jump:


Users browsing this thread: 1 Guest(s)