Micro Focus QTP (UFT) Forums

Full Version: Problem while using an object description from an excel
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Ankur,

I am trying to use object description available in an excel instead of directly writing in the code.
Its working fine for a single property(like name:=Login).
Here in the code below, I used two properties for the browser description(like "name:=Login","title:=Login") and its not working.
Its working fine when written directly in the code.
I am little bit confused, Is there solution for this...

Please find the code below:

Code:
'                        set BrowserName=description.create
'                        BrowserName("name").value=DataTable("BrowserName","TestCases")
'                        BrowserName("title").value=DataTable("BrowserName","TestCases")
                        BrowserName=DataTable("BrowserDescription","OR")
                        msgbox BrowserName
                        'set PageName=description.create
                        PageName=DataTable("PageDescription","OR")
                        'set ObjectName=description.create
                        ObjectName=DataTable("ObjectDescription","OR")
                        Browser(BrowserName).Page(PageName).WebEdit(ObjectName).Set DataTable("Value","TestCases")

A fast response is appreciated so that I can work furhter.

Thanks & Regards,
SatyaKiran Watts