Micro Focus QTP (UFT) Forums
Problem while using an object description from an excel - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Problem while using an object description from an excel (/Thread-Problem-while-using-an-object-description-from-an-excel)



Problem while using an object description from an excel - jaykisan - 10-13-2008

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