Title: findElementsByClassName failure instantly terminates the test and cannot be handled · Issue #227 · NativeScript/nativescript-dev-appium · GitHub
Open Graph Title: findElementsByClassName failure instantly terminates the test and cannot be handled · Issue #227 · NativeScript/nativescript-dev-appium
X Title: findElementsByClassName failure instantly terminates the test and cannot be handled · Issue #227 · NativeScript/nativescript-dev-appium
Description: Describe the bug When calling findElementsByClassName, I'd like to continue if no elements are found. However, if no elements match the class name, my test instantly terminates like so: Error: [waitForElementsByClassName("textfield",5000...
Open Graph Description: Describe the bug When calling findElementsByClassName, I'd like to continue if no elements are found. However, if no elements match the class name, my test instantly terminates like so: Error: [wai...
X Description: Describe the bug When calling findElementsByClassName, I'd like to continue if no elements are found. However, if no elements match the class name, my test instantly terminates like so: Error: ...
Opengraph URL: https://github.com/NativeScript/nativescript-dev-appium/issues/227
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"findElementsByClassName failure instantly terminates the test and cannot be handled","articleBody":"**Describe the bug**\r\nWhen calling `findElementsByClassName`, I'd like to continue if no elements are found. However, if no elements match the class name, my test instantly terminates like so:\r\n```\r\nError: [waitForElementsByClassName(\"textfield\",5000)] Element condition wasn't satisfied!\r\n```\r\nThis happens even if my `await driver.findElementsByClassName` is surrounded by a try catch or has a `.catch()` on it. There seems to be no way to recover from or handle this error.\r\n\r\n**To Reproduce**\r\nCreate an app with no TextFields, then make an end-to-end test and try `findElementsByClassName(\"textfield\")`.\r\n\r\n**Expected behavior**\r\nI believe any `findElements...` functions should return an empty array if no elements match the find criteria. At the very least, they should throw an Error instead of forcibly terminating the test.","author":{"url":"https://github.com/interrobrian","@type":"Person","name":"interrobrian"},"datePublished":"2019-06-06T15:04:53Z","url":"https://github.com/NativeScript/nativescript-dev-appium/issues/227"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:83ade19b-b565-d5d3-0b60-55fdb87b46f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1C2:1BBF52:C7EF9:10BEDF:6B036A98 |
| html-safe-nonce | 2372386eea8be695623167386526b86df1566dbdcc2ee8824963f6446f9e4a33 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUMyOjFCQkY1MjpDN0VGOToxMEJFREY6NkIwMzZBOTgiLCJ2aXNpdG9yX2lkIjoiMTkyMDc3NjUxOTc5MDMyNDM3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 557fbb4781957e01bacf7b6c80f2e59bbf0815a2da16141c56ac1820e469e984 |
| hovercard-subject-tag | issue:453083798 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-dev-appium/227/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d11d9999ebad7e340d1f79222d988a73b87980fb3b9e81e3d0c836d0e1a52f4c/NativeScript/nativescript-dev-appium/issues/227 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d11d9999ebad7e340d1f79222d988a73b87980fb3b9e81e3d0c836d0e1a52f4c/NativeScript/nativescript-dev-appium/issues/227 |
| og:image:alt | Describe the bug When calling findElementsByClassName, I'd like to continue if no elements are found. However, if no elements match the class name, my test instantly terminates like so: Error: [wai... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | interrobrian |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-dev-appium git https://github.com/NativeScript/nativescript-dev-appium.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 58553304 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-dev-appium |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 58553304 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-dev-appium |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width