Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
expected ')' error
#1
Not Solved
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 ')'
Reply
#2
Not Solved
Hi,

Try to use below code:
Code:
Browser("df").Page("sd").Link("html tag:=A","text:="&DataTable("what", dtGlobalSheet)).Click

Regards,
Sankalp
Reply
#3
Not Solved
thanks the error got solved

but now
Code:
WshShell.SendKeys (DataTable("city", dtGlobalSheet))

this line is not working...... its not taking data from datatable
Sad
Reply
#4
Not Solved
Just make sure that page is open where u want to perform this action.

Regards,
Sankalp
Reply
#5
Not Solved
Please post the complete code and error u r getting.

Regards,
Sankalp
Reply
#6
Not Solved
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"
Set WshShell = CreateObject("WScript.Shell")
wait (1)
WshShell.SendKeys (DataTable("city", dtGlobalSheet))
wait(1)
Set WshShell = Nothing
wait 4
Browser("sd").Page("sd").Link("html tag:=A","text:="&DataTable("what", dtGlobalSheet)).Click
Reply
#7
Not Solved
Hi
Use below:
Code:
Browser("sd").Page("sd").WebEdit("city").SetFocus
instead of
Browser("sd").Page("sd").WebEdit("city").FireEvent "onclick"

For Link related error try to add some other property which will identify the object uniquely.

Regards,
Sankalp
Reply
#8
Not Solved
set focus is not working

and for link error
how to add some property which will identify the object uniquely?


Thanks
sia
Reply
#9
Not Solved
Share the application url and code..let me try..

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Expected End statement error Lavanya N 2 4,962 07-27-2015, 01:52 PM
Last Post: Lavanya N
  How to check expected cookies are present or not priyanka.agarwal 0 1,871 07-02-2015, 12:43 PM
Last Post: priyanka.agarwal
  Validate Numeric value is displaying expected format kalaivanan123 1 3,385 09-23-2013, 08:45 PM
Last Post: ravi.gajul
  QTP: code is not working as expected mahi392 0 2,111 09-17-2012, 10:56 PM
Last Post: mahi392
  Update expected results as you validate on ResultViewer mok 1 2,694 01-31-2012, 08:56 AM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)