Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter for locators applied outside of the waiter #2196

Open
ikalinin1 opened this issue Nov 15, 2021 · 0 comments
Open

Filter for locators applied outside of the waiter #2196

ikalinin1 opened this issue Nov 15, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ikalinin1
Copy link
Member

ikalinin1 commented Nov 15, 2021

The filter implementation exists outside waiter, and if there is an exception during the filter execution then we're not re-running the search

The previously found element ""Home" StaticText" is not present in the current view anymore. Make sure the application UI has the expected state. Original error: Error getting main window kAXErrorServerNotFound
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/stale_element_reference.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
os.version: '10.16', java.version: '16.0.2'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {app: /var/folders/dv/14mq8zpj3yx..., automationName: XCUITest, backendRetries: 4, bootstrapPath: /Volumes/Sauce/wda/wda-v1.2..., browserName: , databaseEnabled: false, derivedDataPath: /Volumes/Sauce/wda/wda-v1.2..., deviceName: iPhone Simulator, eventTimings: true, javascriptEnabled: true, keepKeyChains: true, launchTimeout: 180000, locationContextEnabled: false, maxTypingFrequency: 8, networkConnectionEnabled: false, newCommandTimeout: 0, noReset: true, orientation: PORTRAIT, platform: MAC, platformName: iOS, platformVersion: 15.0, preventWDAAttachments: true, sauce:options: {}, selenium:webdriver.remote.quietExceptions: false, showIOSLog: false, takesScreenshot: true, udid: E1192B3F-428F-468B-853D-EAC..., usePrebuiltWDA: true, webStorageEnabled: false}
Session ID: 40925121d14248c6b1a16b9049005a67

org.openqa.selenium.StaleElementReferenceException: The previously found element ""Home" StaticText" is not present in the current view anymore. Make sure the application UI has the expected state. Original error: Error getting main window kAXErrorServerNotFound
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/stale_element_reference.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'EPBYMINW004C', ip: 'fe80:0:0:0:47f:d973:77cd:f007%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.16', java.version: '16.0.2'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {app: /var/folders/dv/14mq8zpj3yx..., automationName: XCUITest, backendRetries: 4, bootstrapPath: /Volumes/Sauce/wda/wda-v1.2..., browserName: , databaseEnabled: false, derivedDataPath: /Volumes/Sauce/wda/wda-v1.2..., deviceName: iPhone Simulator, eventTimings: true, javascriptEnabled: true, keepKeyChains: true, launchTimeout: 180000, locationContextEnabled: false, maxTypingFrequency: 8, networkConnectionEnabled: false, newCommandTimeout: 0, noReset: true, orientation: PORTRAIT, platform: MAC, platformName: iOS, platformVersion: 15.0, preventWDAAttachments: true, sauce:options: {}, selenium:webdriver.remote.quietExceptions: false, showIOSLog: false, takesScreenshot: true, udid: E1192B3F-428F-468B-853D-EAC..., usePrebuiltWDA: true, webStorageEnabled: false}
Session ID: 40925121d14248c6b1a16b9049005a67
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
	at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
	at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:41)
	at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
	at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
	at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
	at io.appium.java_client.DefaultGenericMobileElement.execute(DefaultGenericMobileElement.java:45)
	at io.appium.java_client.MobileElement.execute(MobileElement.java:1)
	at io.appium.java_client.ios.IOSElement.execute(IOSElement.java:1)
	at org.openqa.selenium.remote.RemoteWebElement.getText(RemoteWebElement.java:166)
	at org.vividus.selenium.element.DelegatingWebElement.getText(DelegatingWebElement.java:93)
	at org.vividus.selenium.element.TextFormattingWebElement.getText(TextFormattingWebElement.java:36)
	at org.vividus.ui.mobile.action.MobileAppElementActions.getElementText(MobileAppElementActions.java:35)
	at org.vividus.ui.action.search.GenericTextFilter.matches(GenericTextFilter.java:40)
	at org.vividus.ui.action.search.IElementFilterAction.lambda$0(IElementFilterAction.java:31)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
	at org.vividus.ui.action.search.IElementFilterAction.filter(IElementFilterAction.java:31)
	at org.vividus.ui.action.SearchActions.findElements(SearchActions.java:62)
	at org.vividus.bdd.steps.ui.validation.BaseValidations.lambda$11(BaseValidations.java:340)
	at org.vividus.bdd.steps.ui.validation.BaseValidations.runValidatingSearchContext(BaseValidations.java:239)
	at org.vividus.bdd.steps.ui.validation.BaseValidations.assertIfNumberOfElementsFound(BaseValidations.java:337)
	at org.vividus.bdd.steps.ui.validation.BaseValidations.assertIfNumberOfElementsFound(BaseValidations.java:365)
	at org.vividus.bdd.steps.ui.GenericElementSteps.assertElementsNumber(GenericElementSteps.java:73)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at org.jbehave.core.steps.StepCreator$ParametrisedStep.perform(StepCreator.java:869)
	at org.jbehave.core.steps.StepCreator$ReportingAbstractStep.perform(StepCreator.java:690)
	at org.jbehave.core.embedder.PerformableTree$FineSoFar.run(PerformableTree.java:389)
	at org.jbehave.core.embedder.PerformableTree$PerformableSteps.perform(PerformableTree.java:1383)
	at org.jbehave.core.embedder.PerformableTree$AbstractPerformableScenario.perform(PerformableTree.java:1231)
	at org.jbehave.core.embedder.PerformableTree$AbstractPerformableScenario.performRestartableSteps(PerformableTree.java:1212)
	at org.jbehave.core.embedder.PerformableTree$AbstractPerformableScenario.performScenario(PerformableTree.java:1223)
	at org.jbehave.core.embedder.PerformableTree$ExamplePerformableScenario.perform(PerformableTree.java:1293)
	at org.jbehave.core.embedder.PerformableTree$PerformableScenario.perform(PerformableTree.java:1153)
	at org.jbehave.core.embedder.PerformableTree$PerformableStory.performScenarios(PerformableTree.java:1047)
	at org.jbehave.core.embedder.PerformableTree$PerformableStory.perform(PerformableTree.java:1023)
	at org.jbehave.core.embedder.PerformableTree.performCancellable(PerformableTree.java:473)
	at org.jbehave.core.embedder.PerformableTree.perform(PerformableTree.java:440)
	at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:300)
	at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:273)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:831)
@ikalinin1 ikalinin1 added the bug Something isn't working label Nov 15, 2021
@ikalinin1 ikalinin1 changed the title Filter for locators applied Filter for locators applied outside of the waiter Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant