We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Can''t click on button inside the cell using QTP 9.2

Thread ID:

Created:

Updated:

Platform:

Replies:

61084 May 17,2007 01:22 PM Mar 4,2010 09:05 AM Windows Forms 2
loading
Tags: Test Studio
Kaushik Patel
Asked On May 17, 2007 01:22 PM

Hi,

I can't click on button inside the cell using QTP 9.2. When I record the clicking on the button it records as below. Please view attached image. Clicking manually opens up the control inside the cell fine but when I play back the recorded script, it does not click on it. It just expands the cell size.

SwfWindow("Shell").SwfObject("THE GRID").SetCurrentCell 12,2
SwfWindow("Shell").SwfObject("THE GRID").SelectRange "R12",12,0,12,0
SwfWindow("Shell").SwfObject("THE GRID").ResizeColumn 2,2,220
SwfWindow("Shell").SwfObject("THE GRID").ResizeRow 12,12,115

Using Syncfusion Essential TestStudio & Studio Version 4.3.0.30.


cell0.zip

Darren Ryan
Replied On June 7, 2007 12:58 AM

This will not click on the button because your code is telling it to expand in the 3rd and 4th row where they say ResizeColumn and ResizeRow. You need to "click" on the button.
For example: SwfWindow("Xact 1.2").SwfWindow("Project Explorer - [Project").SwfObject("gridControl1").Click 464,150
if there is a better way of doing things let me know.


>Hi,

I can't click on button inside the cell using QTP 9.2. When I record the clicking on the button it records as below. Please view attached image. Clicking manually opens up the control inside the cell fine but when I play back the recorded script, it does not click on it. It just expands the cell size.

SwfWindow("Shell").SwfObject("THE GRID").SetCurrentCell 12,2
SwfWindow("Shell").SwfObject("THE GRID").SelectRange "R12",12,0,12,0
SwfWindow("Shell").SwfObject("THE GRID").ResizeColumn 2,2,220
SwfWindow("Shell").SwfObject("THE GRID").ResizeRow 12,12,115

Using Syncfusion Essential TestStudio & Studio Version 4.3.0.30.


cell0.zip

Mano J [Syncfusion]
Replied On March 4, 2010 09:05 AM

Hi Kaushik,

Yes, need to have a "Click" script to click on the button during replay.

Best Regards,
Mano

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;