Title: Localization testing with appium mocha · Issue #260 · NativeScript/nativescript-dev-appium · GitHub
Open Graph Title: Localization testing with appium mocha · Issue #260 · NativeScript/nativescript-dev-appium
X Title: Localization testing with appium mocha · Issue #260 · NativeScript/nativescript-dev-appium
Description: Hi. I'm currently trying to figure out a good way to test localization of an app and have some trouble accessing the label text of a button UIElement after i've accessed the element by automation text. After accessing the button UIElemen...
Open Graph Description: Hi. I'm currently trying to figure out a good way to test localization of an app and have some trouble accessing the label text of a button UIElement after i've accessed the element by automation t...
X Description: Hi. I'm currently trying to figure out a good way to test localization of an app and have some trouble accessing the label text of a button UIElement after i've accessed the element by auto...
Opengraph URL: https://github.com/NativeScript/nativescript-dev-appium/issues/260
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Localization testing with appium mocha","articleBody":"Hi.\r\n\r\nI'm currently trying to figure out a good way to test localization of an app and have some trouble accessing the label text of a button UIElement after i've accessed the element by automation text. After accessing the button UIElement i'm only able to get the automationText to test against. \r\nIt's my first time doing any form of testing with nativescript, appium and mocha and i might go about it completely wrong and if so advise would be much appreciated.\r\n\r\n**What i'm testing on**\r\niPad simulator (9.7 inch) with OS v. 12.4\r\nnode v10.16.3\r\nnpm v6.9.0\r\n{N} v. 6.0.1\r\nruntimes v 6.0.1\r\nnativescript-localize for i18n localization\r\n\r\nI've followed setup instructions and found some issues here where people hadn't installed carthage, which i've installed.\r\n\r\n\r\nA simple test looks something like this \r\n`\r\nconst daDK = require(dk.default.json); // localization file for danish\r\nconst changeUserButton = await driver.findElementByAutomationText('changeUserButton');\r\nexpect(await changeUserButton.text()).to.be.equal(daDK.user.change_user);\r\n` \r\nDoing a log of the `await changeUserButton.text()` retreives the automationText where it should have been _Skift Bruger_.\r\n\r\nI've also tried to access elements in different way ie. with findElementByXPath and findElementByText (though i've read text is only android).\r\n\r\nAny suggestions as to solve this?","author":{"url":"https://github.com/Shelkalith","@type":"Person","name":"Shelkalith"},"datePublished":"2019-09-23T13:44:08Z","url":"https://github.com/NativeScript/nativescript-dev-appium/issues/260"}
| 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:b6ca1eb4-ef1d-8933-ea40-1ea804e40ae9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A034:2D34E3:DB407:123C91:6B036A9C |
| html-safe-nonce | c4d449a7a32842590532dd5a68b24c9353081cf918135462a5d5b08f0d2d2231 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDM0OjJEMzRFMzpEQjQwNzoxMjNDOTE6NkIwMzZBOUMiLCJ2aXNpdG9yX2lkIjoiMTY0MjE3OTIwMTIzMjc1OTQ1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 650c16df6588b1a2d00a6db05e96ef0b0586fff9aa1df9979270fba7e95ecaaa |
| hovercard-subject-tag | issue:497107432 |
| 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/260/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c71f1322563dbc6a319a0c6dcd4dc5a3bc8f77e8fcf8370dbe1a598ce90264a9/NativeScript/nativescript-dev-appium/issues/260 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c71f1322563dbc6a319a0c6dcd4dc5a3bc8f77e8fcf8370dbe1a598ce90264a9/NativeScript/nativescript-dev-appium/issues/260 |
| og:image:alt | Hi. I'm currently trying to figure out a good way to test localization of an app and have some trouble accessing the label text of a button UIElement after i've accessed the element by automation t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Shelkalith |
| 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