Пример #1
0
def test_click_image_offset1():
    d.click_image(atx.Pattern('media/system-app.png'))
    assert d.last_click == (139, 299)
Пример #2
0
def test_click_image_offset2():
    d.click_image(atx.Pattern('media/system-app.png', offset=(0.5, 0.5)))
    w, h = Image.open('media/system-app.png').size
    assert d.last_click == (139 + w / 2, 299 + h / 2)
Пример #3
0
def test_click_image_offset2():
    d.click_image(atx.Pattern('media/system-app.png', offset=(10, 10)))
    assert d.last_click == (149, 309)