Posts: 49
Threads: 0
Joined: Nov 2009
Reputation:
0
12-02-2009, 06:05 PM
X/Y coordinates for the Click method is optional. So if you call the 'Click' method, the function will click the middle of the webelement.
Posts: 46
Threads: 17
Joined: Jun 2008
Reputation:
0
12-02-2009, 07:19 PM
Thanks for the immediate response.
I am actually stuck we another problem prior to this.
There is a Phone text field of format - (998)987-1234. Which QTP didnot record so I had to add a manual -Browser("TalonPro Solutions").Page("TalonPro Solutions_8").WebEdit("ctl00$ContentPlaceHolder1$txtM").Set "9885574275".
Problem now persists - while test run this field takes only (998)987-123_. So this field being a mandatory field throws an error in between the run.
Please help me
Thanks
Posts: 46
Threads: 17
Joined: Jun 2008
Reputation:
0
12-03-2009, 10:23 AM
Can anybody help me on the above post please??
Posts: 8
Threads: 1
Joined: Dec 2009
Reputation:
0
12-03-2009, 10:34 AM
Hi Swetha,
Are you able to click on the phone text field ? If so try to click on the field first and then try to set the field with the value.
If this answer did not suffice your problem then please try to provide some more information so that we can analyse more on this.
Thanks
Phanindra
Posts: 46
Threads: 17
Joined: Jun 2008
Reputation:
0
12-03-2009, 10:50 AM
Hi Phanindra,
Yes I am able to click on the phone field as QTP dint record the field I added the object using - Object repository - Click to select an object from your application. and set the operation value as "9988654321".
But, when I run the test; phone field is filled one digit less (i.e) (998)865-432_ . So there ends my run.
Posts: 46
Threads: 17
Joined: Jun 2008
Reputation:
0
12-03-2009, 12:05 PM
Hey Thanks ,
I have found the solution. I set the value with the exact format and it works.
Having said that a simple doubt. Why dint the same work for data table -Global sheet?
I gave the phone value with exact format - (998)878-9876 in the data table -global sheet and it dint work but worked when the same format was given as constant.
Thanks again
Regards
Swetha
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
12-08-2009, 03:09 PM
Use the Low Level Recording to generate the Mouse Click Co-ordiantes.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.