Micro Focus QTP (UFT) Forums

Full Version: SelectCell in powerbuilder 10 and QTP 10
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys

I recorded a PowerBuilder application which is supposed to place orders. I can select one among 7 products.while recording , I selected the second product from the 'product list' .While playing it works fine ,

Code:
pbwindow(xx).pbwindow(xx).pbwindow(xx).pbwindow(productlist).SelectCell 2,"desc"

but If I make the 2 as 1 in the expert view , it gives me a "general run error".

But if I make the 2 as 3 in the expert view, it works fine, ie it selects the third product from the list.

can anyone tell me why does it happens and what can be the solution
What data does the first row hold on your PowerBuilder Window ?
It has the product number similar to the row 2 , 3 . It selects the first row, but it in turn throws the error and when I do a skip on the error message box , it moves to the next vbscript statement ( though it selected row 1) , where as it doesnt throws error when i select the row 2 or 3 .
Why does it happens particluarly on selecting first row
Help me out with the SCreenshot of the powerbuilder window with the first row, and the error message with details.