sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #53892
[Bug 1858435] Re: Combo to Front
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)
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1858435
Title:
Combo to Front
Status in Sikuli:
New
Bug description:
https://answers.launchpad.net/sikuli/+question/272494
Combo not "ALWAYS" coming to front and workaround above not working
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1858435/+subscriptions
References