jeudi 20 juillet 2017

QTP - dynamically pass browser/page title changes for web application?

I need some help while working on logout,i want to prepare unique logout function but here i'm facing problem like while working with applications i've different modules as per keyword driven it will work.

I want to click on Logout link irrespective of the page title and i want to pass dynamically changing page name and titles to below code.

pageTitleName = Browser("CreationTime:=0").Page("title:=.*").GetROProperty("title")
Print pageTitleName
Browser("pageTitleName").Page("pageTitleName").Link("name:=Logout").Click

I'm getting error that object is not created ,please provide how to achieve this to

Browser("whatever").Page("whatever")......etc

Aucun commentaire:

Enregistrer un commentaire