Stingray cell has 4 subparts...how do I test them? - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Stingray cell has 4 subparts...how do I test them? (/Thread-Stingray-cell-has-4-subparts-how-do-I-test-them) |
Stingray cell has 4 subparts...how do I test them? - RandomGrin - 03-04-2013 Hey Helpful People, I have a nasty Stingray problem. I just want to set the date value in a cell. A complicated cell, see screenshot. The cell has 4 areas in it, the date value, a small up arrow (increment date), a small down arrow (decrement) and a large down arrow (show calendar). No matter what I do in QTP, it selects the Calendar, which flashes by and disappears. The current date appears in the field, but as soon as I leave the cell, the cell goes blank again. For example, I do this: Code: Dialog("Certification for: 012").WinTable("StingrayGrid:Surveys").SelectCell "#1", "#8" Result: Calendar appears, disappears, today's date goes into field. As soon as I do: .SelectCell "#2","#8", the value in cell #1 goes away. If I do this: Code: Dialog("Certification for: 012").WinTable("StingrayGrid:Surveys").SetCellDat a "#1", "#8", "12122012" Result: Calendar appears, disappears, today's date goes into field (NOT the date I set! Because QTP only touches the Calendar arrow, not the date area). As soon as I do: .SelectCell "#2","8", the value goes away. If I do this: Code: Dialog("Certification for: 012").WinTable("StingrayGrid:Surveys").ActivateCel l "#1", "#8" Code: Dialog("Certification for: 012").WinTable("StingrayGrid:Surveys").SelectCell "#1", "#8", "01022013" Code: Dialog("Certification for: 012").WinTable("StingrayGrid:Surveys").SelectCell "#2", "#8" I've tried .click, .dblclick, .Type "12122012" all have similar results. This is QTP 11, the Stingray module is loaded and configured. Any ideas? Is there a way to select 4 different areas inside one cell? (right now it only selects the big down arrow, no matter what I do.) Thanks! |