[2.0.4] Combo to Front --- to be checked

Bug #1858435 reported by Jeff_Vallis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

https://answers.launchpad.net/sikuli/+question/272494

Combo not "ALWAYS" coming to front and workaround above not working

Revision history for this message
Jeff_Vallis (vallis-pj) wrote :

2.0.1-2019-11-22_16:54/Mac10.15.2/Java13(64)13.0.1+9

Revision history for this message
RaiMan (raimund-hocke) wrote :

code snippet please

Revision history for this message
Jeff_Vallis (vallis-pj) wrote :

Snippet
g_MoveMouseDelay = 1

Settings.MoveMouseDelay = g_MoveMouseDelay

# =================================================
"""
                       INSTRUCTIONS
Open Google
Search for
sikuli guide
set screen big enough
"""
# =================================================

setRect(1,30,1234,821)
highlight(1)

# =================================================
"""
                       INSTRUCTIONS
set Image to first Item in the display results
Sikuli Guide — Sikuli X 1.0 documentation
"""
# =================================================

v_Image = "v_Image.png"
v_Image_1 = Pattern(v_Image).similar(0.90)

if 1 == 1:
    v_Combo_Header = "Click Back and Select Item" ; v_Items = ("Click v_Image_1","Exit")
    #selected = select("Select Item", ("Click v_Image_1","Exit"))
    selected = select(v_Combo_Header, options = v_Items )
    if selected == "Exit":
        exit(0)
    if exists(v_Image_1):
        # Get Focus
        click(Location(72, 297))
        click(v_Image_1)
        print "Clicked"
    else:
        print "Start Test Failed"
        exit(0)

for i in range(10):
    print "Loop",i
    v_Combo_Header = "DO I HAVE FOCUS This Time ????? Click Back and Select Item" ; v_Items = ("Click v_Image_1","Exit")
    print v_Items
    selected = select(v_Combo_Header, options = v_Items )
    if selected == "Exit":
        exit(0)
    if exists(v_Image_1):
        # Get Focus
        click(Location(72, 297))
        click(v_Image_1)
    else:
        print "Test Failed"
        exit(0)

Revision history for this message
Jeff_Vallis (vallis-pj) wrote :

You can do the above without me supplying a screen shot as its just any browser

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.5
summary: - Combo to Front
+ [2.0.4] Combo to Front --- to be checked
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.