Micro Focus QTP (UFT) Forums
How to select a Checkbox on a Poup screen in QTP9.2 - 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: How to select a Checkbox on a Poup screen in QTP9.2 (/Thread-How-to-select-a-Checkbox-on-a-Poup-screen-in-QTP9-2)



How to select a Checkbox on a Poup screen in QTP9.2 - Rachna - 08-06-2009

Hi,

While recording a script for selecting a checkbox on pop up screen..the script appears to be :
Code:
JavaWindow("Sales_BasicFlow").JavaDialog("Optional Service Selection").JavaTable("Select Services for 0000374914").SetCellData "#1","Select","1"

If i run the same script i get error saying:"The operation could not be performed"

If I alter the script to
Code:
''JavaWindow("Sales_BasicFlow").JavaDialog("Optional Service Selection").JavaTable("Select Services for 0000374914").SelectCell "#1" ,"Select"
Then also the same error is observed.

But if i select the Checkbox on the main screen instead of the popup screen with the below mentioned statement it works:
Code:
JavaWindow("Sales_BasicFlow").JavaDialog("Product Selection").JavaTable("<html><center><b>Select").SelectCell "#0", "Services"

I am not understanding the point that why the same syntax does not work on the Popup screen when it works for Main screen.

Kindly provide a resolution to the problem.

Regards,
Rachna


RE: How to select a Checkbox on a Poup screen in QTP9.2 - basanth27 - 08-06-2009

Can you spy the checkbox and upload the spyshot ?