mcdcorp / opentest

Open source test automation tool for web applications, mobile apps and APIs
https://getopentest.org
MIT License
453 stars 109 forks source link

problemas con mi localizador de un boton en appium no hace caso a los tiempos #634

Open pao1989 opened 1 year ago

pao1989 commented 1 year ago

Tengo el siguiente error probando con appium, probando con el inspector al hacer tap con el localizador lo realiza correctamente pero al momento de ejecutar es como si no lo encontrara y vuelve a la pagina anterior. Tambien probe poniendo delay pero no hace caso

ERROR: java.lang.Exception: Failed executing test mobile/T02_35RecargaOtroTigoPreMTG, segment 1 at org.getopentest.base.TestActor.executeTestSegment(TestActor.java:2208) at org.getopentest.base.TestActor.runOneSession(TestActor.java:3077) at org.getopentest.base.TestActor.runOneSession(TestActor.java:3113) at org.getopentest.Main.main(Main.java:20) Caused by: java.lang.RuntimeException: There was an error while executing action no. 2 (MITIGO.T02_35_02RealizarRecargaOtroTigoPrePostMTG) in segment 1 of test mobile/T02_35RecargaOtroTigoPreMTG. The action definition was: { "action": "org.getopentest.base.MacroAction", "args": { "NumOtroTigo": "77777777" }, "macro": "MITIGO.T02_35_02RealizarRecargaOtroTigoPrePostMTG" } at org.getopentest.base.TestActor.executeTestSegment(TestActor.java:2142) ... 3 more Caused by: java.lang.RuntimeException: Failed executing action org.getopentest.base.MacroAction with arguments {"NumOtroTigo":"77777777"} at org.getopentest.base.TestActor.executeActionByDef(TestActor.java:1872) at org.getopentest.base.TestActor.executeTestSegment(TestActor.java:2092) ... 3 more Caused by: java.lang.Exception: There was an error executing macro action MITIGO.T02_35_02RealizarRecargaOtroTigoPrePostMTG with arguments {"NumOtroTigo":"77436734"} at org.getopentest.base.TestActor.executeMacroActionByName(TestActor.java:2021) at org.getopentest.base.TestActor.executeActionByDef(TestActor.java:1745) ... 4 more Caused by: java.lang.RuntimeException: There was an error while executing action no. 11 (org.getopentest.appium.Tap) in macro MITIGO/T02_35_02RealizarRecargaOtroTigoPrePostMTG. The action definition was: { "action": "org.getopentest.appium.Tap", "args": { "locator": { "xpath": "/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View[2]/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View[2]/android.view.View/android.view.View[2]/android.view.View/android.widget.Button" } }, "description": "Presionar en el botón Continuar" } at org.getopentest.base.TestActor.executeMacroActionByDef(TestActor.java:1973) at org.getopentest.base.TestActor.executeMacroActionByName(TestActor.java:2013) ... 5 more Caused by: java.lang.RuntimeException: Failed executing action org.getopentest.appium.Tap with arguments {"locator":{"xpath":"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View[2]/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View[2]/android.view.View/android.view.View[2]/android.view.View/android.widget.Button"},"script":null} at org.getopentest.base.TestActor.executeActionByDef(TestActor.java:1872) at org.getopentest.base.TestActor.executeMacroActionByDef(TestActor.java:1938) ... 6 more Caused by: java.lang.RuntimeException: java.lang.RuntimeException: We were not able to validate visibility of element By.xpath: /hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View[2]/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View[2]/android.view.View/android.view.View[2]/android.view.View/android.widget.Button at org.getopentest.base.TestActor.executeActionByClassName(TestActor.java:1670) at org.getopentest.base.TestActor.executeActionByDef(TestActor.java:1749) ... 7 more Caused by: java.lang.RuntimeException: We were not able to validate visibility of element By.xpath: /hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View[2]/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View/android.view.View[2]/android.view.View/android.view.View[2]/android.view.View/android.widget.Button at org.getopentest.appium.core.AppiumTestAction.swipe(AppiumTestAction.java:534) at org.getopentest.appium.core.AppiumTestAction.swipeAndCheckElementVisible(AppiumTestAction.java:388) at org.getopentest.appium.Tap.run(Tap.java:24) at org.getopentest.base.TestActor.executeAction(TestActor.java:1571) at org.getopentest.base.TestActor.executeActionByClassName(TestActor.java:1647) ... 8 more