The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP Functional Testing / Mercury QuickTest Pro / QTP

Pages: 1
Steven_act_au
Newbie


Reged: 10/05/07
Posts: 12
Text Check on web page???
      #424272 - 10/14/07 07:21 PM

Hi All

I wanna check certain text on web page, I can do it by create webelement of the Text.
But
I wanna do it through programming, so I created Description e.g.

set oDesc = Desciption.create()
oDesc("micclass").Value="WebElement"
oDesc("innerText").Value="TextTobeChecked"
if Browser("..").Page("..").WebElement(oDesc).exist then
Print "Exist"
End if

Why the above code doesnt work.

Any resource of playing with Description Object I can learn from?

Thanks very much.
Steven


Post Extras: Print Post   Remind Me!   Notify Moderator  
Tarun LalwaniModerator
Veteran


Reged: 07/21/05
Posts: 15329
Loc: Milwaukee, Wisconsin
Re: Text Check on web page??? [Re: Steven_act_au]
      #424275 - 10/14/07 08:17 PM

set oDesc = Desciption.create()
oDesc("micclass").Value="WebElement"
oDesc("innertext").Value="TextTobeChecked"
oDesc("innertext").RegularExpression = False

Try to add more properties like "html tag", if possible.

--------------------
Regards,
Tarun
** First ever technical novel - And I thought I knew QTP! **
** Download QTP Unplugged 2nd Edition eBook for FREE **

KnowledgeInbox RSS


Post Extras: Print Post   Remind Me!   Notify Moderator  
Steven_act_au
Newbie


Reged: 10/05/07
Posts: 12
Re: Text Check on web page???- Thanks a lot [Re: Tarun Lalwani]
      #424291 - 10/14/07 10:51 PM

Hi Tarun Guru

Thanks a lot for your help

Really appreciate it.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 96 anonymous users are browsing this forum.

Moderator:  IanFraser, Rajkumar_Rajangam, thorwath, TReddy, AJ, Tarun Lalwani, mwsrosso 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 989

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5