Skip to content

Replies

0
Nooruddin
Nooruddin answered on Apr 12, 2011 6:16 AM

Hi Ammar,

 I added SwfComboBox().SetFocus and still dosent work. During the action ,QTP is looking for the object(as the Window automatically moves up).I have to scroll it down to get it setfocus.

Is there any way to stop the Window scroll move during playback?

 

Nooruddin

0
Nooruddin
Nooruddin answered on Apr 11, 2011 5:02 AM

Thanks Mike,

The issue of not identifying the object is during the playback. Let me drill down to the scenario so that i can give you  better idea of problem am facing

I have a swfcombobox at the end of the window.To learn the object property or record, i need to scroll down the window and that works fine. During the playback am using scroll down option to make the object visible and then i will perfom the action. If i keep the action limited to just select an item from the list or get itemcount then the script works fine, however if try to validate Items count and retireve items from the comboBox then whats happening is after i read the item count the window automatically moves up making the object not visible then am using "VScroll micScrollEnd ,5scroll" to make the object visible but during retrieval(getItem) the window again moves up automatically.However if i manually scroll down the window again then it retrieves a item and immediatly window moves up again,also if i have swfbutton(submit button) to click then able to achieve using fireevent and not by regular click method.

The conclusion is that without manual intervention am not able to complete the actions for the objects needed scroll down.

swifttypename : Infragistics.Win.UltraWinEditors.UltraComboEditor

swifttypmename : Infragistics.Win.Misc.UltraButton

Hope am able give sufficient information regarding my issue.Thanks for your time and patience Mike

-Nooruddin