Micro Focus QTP (UFT) Forums
WebElements - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: WebElements (/Thread-WebElements)



WebElements - shayk1985 - 03-01-2013

Hi,

Can any one tell me how to parameterize a webelement. i tried using this
Code:
Browser("").Page("").WebElement("name:="&Datatable("Param name",dtGlobalsheet).
but QTP throws an error. Please correct me if i m wrong

Thanks


RE: WebElements - sshukla12 - 03-01-2013

Hi,

Kindly share the error details with ur code.

Regards,
Sankalp


RE: WebElements - Munna.Sarfraz - 03-01-2013

Use this one. It will work perfectly.

Code:
Browser(".....").Page(".....").WebElement("name:="&DataTable("p_Param1", dtGlobalSheet)&"")

-Sarfraz


RE: WebElements - shayk1985 - 03-01-2013

hi,
Thanks for the reply but it is still not working. It throws an error stating that object property method not supported. Please let me know if you have any other method.

Thanks


RE: WebElements - shayk1985 - 03-04-2013

the error is "object not supports the property

hi,

Can anyone explain me how to parameteriza a webelement