• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in QuickTest Professional (QTP) by
Q:

In QTP how you can use Xpath to identify objects?

1 Answer

0 votes
by

Xpath can be used to identify only web objects. We can use the following code to identify objects.

Set oPage=Browser(“myGoogle”).Page(“myGoogle”)

oPage.WebEdit(“xpath:=//INPUT[@name=‘nameofeditbox’]”).Set “search term”

‘Enter value in google edit box

Here you can get 3 Questions bonus :-)

Related questions

+1 vote
asked Jan 16, 2020 in QuickTest Professional (QTP) by JackTerrance
+1 vote
asked Sep 12, 2020 in QuickTest Professional (QTP) by JackTerrance
...