Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clcking tabs in .net application
#1
Solved: 10 Years, 9 Months ago
Hi ALL,

I was recording a .net based application and it dint record most of the tabs click. So I had to add tabs click manually using object repository - Click to select an object from your application.
My doubt: How do I capture the value of the click? X /Y values ??

Code:
Browser("TalonPro Solutions").Page("TalonPro Solutions_23").WebElement("Contacts").Click ???


Please help me in this regard.

Swetha
Reply
#2
Solved: 10 Years, 9 Months ago
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.
Reply
#3
Solved: 10 Years, 9 Months ago
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
Reply
#4
Solved: 10 Years, 9 Months ago
Can anybody help me on the above post please??
Reply
#5
Solved: 10 Years, 9 Months ago
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
Reply
#6
Solved: 10 Years, 9 Months ago
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.
Reply
#7
Solved: 10 Years, 9 Months ago
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
Reply
#8
Solved: 10 Years, 9 Months ago
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  dot net application ch_rk2004 2 3,103 05-30-2016, 04:50 PM
Last Post: ch_rk2004
  Need Stingray addin for .net application QTpier 1 3,787 06-13-2014, 04:13 PM
Last Post: vinod123
  QTP 9.0 supports WPF based .NET desktop application. nagarajkv 1 2,524 02-27-2014, 03:48 PM
Last Post: hiregoudar
  Import and read multiple tabs on a datasheet trance07 1 3,085 10-09-2013, 07:29 PM
Last Post: Parke
  QTP for .Net Application qapandit 5 5,762 06-25-2013, 02:29 AM
Last Post: qapandit

Forum Jump:


Users browsing this thread: 1 Guest(s)