Applescript clic por posición

2

Estoy tratando de hacer clic en un botón usando la coordenada YX, funciona con alguna aplicación, pero tengo una aplicación con dos ventanas que me dan un problema.

aquí está mi código original

tell application "System Events"

    tell process "App"
        click at {783, 621}

    end tell
end tell

pero el resultado es Resultado:

image 1 of UI element "Email" of row 2 of table 1 of scroll area 1 of window "App title" of application process "SonarX" of application "System Events"

el botón en el que quiero hacer clic tiene una imagen (IU) pero parece que se produce un clic.

PS: el título de la aplicación contiene alguna variable pero también estática

Intenté esto en su lugar

tell application "System Events"


    click at {783, 621}

end tell

pero el mismo problema.

¿Cómo puedo administrar para presionar este botón?

si intento usar automator tengo el mismo resultado

"set uiScript to "click image 1 of UI Element 1 of row 2 of table 1 of scroll area 1 of window \"Title 558772: XXXXX :XXXXX : XXXXX : 5583214\" of application process \"App\"""

Para tu información, tengo otro botón que puedo hacer clic normalmente en las mismas ventanas, por ejemplo,

set uiScript to "click pop up button 1 of group 3 of group 2 of scroll area 1 of group 3 of window 1 of application process \"App\""

- También lo intenté pero sin éxito.

tell application "System Events"
    tell process "App"
        click image 1 of UI element "Email" of row 2 of table 1 of scroll area 1 of window 1

    end tell
end tell
    
pregunta Kevin 29.04.2018 - 07:36

0 respuestas

Lea otras preguntas en las etiquetas