expected ')' error - 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: expected ')' error (/Thread-expected-error) |
expected ')' error - sia sharma - 08-29-2012 Hi All, in my code i have came accross this error Code: Browser("df").Page("sd").Link("html tag:=A","text:=(DataTable("what", dtGlobalSheet))","index:=0").Click expected ')' RE: expected ')' error - sshukla12 - 08-29-2012 Hi, Try to use below code: Code: Browser("df").Page("sd").Link("html tag:=A","text:="&DataTable("what", dtGlobalSheet)).Click Regards, Sankalp RE: expected ')' error - sia sharma - 08-29-2012 thanks the error got solved but now Code: WshShell.SendKeys (DataTable("city", dtGlobalSheet)) this line is not working...... its not taking data from datatable RE: expected ')' error - sshukla12 - 08-29-2012 Just make sure that page is open where u want to perform this action. Regards, Sankalp RE: expected ')' error - sshukla12 - 08-30-2012 Please post the complete code and error u r getting. Regards, Sankalp RE: expected ')' error - sia sharma - 08-30-2012 how to handle this error The "[ Link ]" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object. Thanks sia here is my code Code: Browser("sd").Page("sd").WebEdit("city").FireEvent "onclick" RE: expected ')' error - sshukla12 - 08-30-2012 Hi Use below: Code: Browser("sd").Page("sd").WebEdit("city").SetFocus For Link related error try to add some other property which will identify the object uniquely. Regards, Sankalp RE: expected ')' error - sia sharma - 08-30-2012 set focus is not working and for link error how to add some property which will identify the object uniquely? Thanks sia RE: expected ')' error - sshukla12 - 08-30-2012 Share the application url and code..let me try.. Regards, Sankalp |