René's URL Explorer Experiment


Title: Using sendKeys sometimes results in InvalidElementState · Issue #279 · NativeScript/nativescript-dev-appium · GitHub

Open Graph Title: Using sendKeys sometimes results in InvalidElementState · Issue #279 · NativeScript/nativescript-dev-appium

X Title: Using sendKeys sometimes results in InvalidElementState · Issue #279 · NativeScript/nativescript-dev-appium

Description: I'm using the following packages (tns info output) on Linux (Debian Jessie) ✔ Getting NativeScript components versions information... ✔ Component nativescript has 6.2.0 version and is up to date. ✔ Component tns-core-modules has 6.2.1 ve...

Open Graph Description: I'm using the following packages (tns info output) on Linux (Debian Jessie) ✔ Getting NativeScript components versions information... ✔ Component nativescript has 6.2.0 version and is up to date. ✔...

X Description: I'm using the following packages (tns info output) on Linux (Debian Jessie) ✔ Getting NativeScript components versions information... ✔ Component nativescript has 6.2.0 version and is up to dat...

Opengraph URL: https://github.com/NativeScript/nativescript-dev-appium/issues/279

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using sendKeys sometimes results in InvalidElementState","articleBody":"I'm using the following packages (tns info output) on Linux (Debian Jessie)\r\n✔ Getting NativeScript components versions information...\r\n✔ Component nativescript has 6.2.0 version and is up to date.\r\n✔ Component tns-core-modules has 6.2.1 version and is up to date.\r\n✔ Component tns-android has 6.2.0 version and is up to date.\r\n✔ Component tns-ios has 6.2.0 version and is up to date.\r\n\r\nI'm running on Android 7.0\r\n\r\nThe problem I'm having is when I try and sendKeys to an element on a tab or too low on the screen I get the following error;\r\n\r\n     Error: [element.sendKeys(\"Rasberry PI\")] Error response status: 12, InvalidElementState - An element command could not be completed because the element is in an invalid state (e.g. attempting to click a disabled element). Selenium error: Cannot set the element to 'Rasberry PI'. Did you interact with the correct element?\r\n\r\nMy element on a tab looks like this;\r\n\r\n      \u003cTabContentItem\u003e\r\n        \u003cStackLayout orientation=\"vertical\"\u003e\r\n          \u003cLabel text=\"Make\"\u003e\u003c/Label\u003e\r\n          \u003cTextField automationText=\"make\" hint=\"Make\" [(ngModel)]=\"_assetItem.make\" class=\"input\"\u003e\u003c/TextField\u003e\r\n      \u003c/TabContentItem\u003e\r\n\r\nMy test looks like this;\r\n\r\nimport { AppiumDriver, createDriver, SearchOptions, nsCapabilities } from \"nativescript-dev-appium\";\r\nimport { assert } from \"chai\";\r\n\r\nconst addContext = require('mochawesome/addContext');\r\n\r\ndescribe(\"Asset Create\", () =\u003e {\r\n    let driver: AppiumDriver;\r\n\r\n    before(async function(){\r\n        nsCapabilities.testReporter.context = this; \r\n        driver = await createDriver(); // wait for the driver instance to be created\r\n    });\r\n\r\n    after(async function () {\r\n        await driver.quit();    //  destroy the driver instance\r\n        console.log(\"Quit driver!\");\r\n    });\r\n\r\n    afterEach(async function () {\r\n        if (this.currentTest.state === \"failed\") {\r\n            await driver.logTestArtifacts(this.currentTest.title);\r\n        }\r\n    });\r\n\r\n    describe(\"After login\", () =\u003e {\r\n\r\n        before(async function () {\r\n            // Enter user\r\n            const nameField = await driver.findElementByAccessibilityId(\"email\");\r\n            await nameField.sendKeys(\"test@pais.com.au\");\r\n\r\n            // Enter password\r\n            const passwordField = await driver.findElementByAccessibilityId(\"password\");\r\n            await passwordField.sendKeys(\"testmobile\");\r\n\r\n            // Login\r\n            const btnLoginTap = await driver.findElementByAccessibilityId(\"btnLogin\");\r\n            await btnLoginTap.click();\r\n        });\r\n        \r\n        afterEach(async function () {\r\n            // Nav to Home\r\n            const btnHomeNavTap = await driver.findElementByAccessibilityId(\"btnHome\");\r\n            await btnHomeNavTap.click();\r\n        });\r\n\r\n        it.only(\"creates new asset\", async function () {\r\n            // Nav to New Asset \r\n            const btnManualNavTap = await driver.findElementByAccessibilityId(\"btnNewAsset\");\r\n            await btnManualNavTap.click();\r\n\r\n            // Check heading\r\n            const lblHeadingManual = await driver.findElementByAccessibilityId(\"headingAssetForm\");\r\n            assert.equal(await lblHeadingManual.text(), \"New Asset\");\r\n\r\n            const tabDetails = await driver.findElementByAutomationText(\"tabDetails\");\r\n            await tabDetails.click();\r\n\r\n            const makeField = await driver.findElementByAutomationText(\"make\");\r\n            await makeField.sendKeys(\"Rasberry PI\");\r\n\r\n\r\nI expected it to type the text \"Raspberry PI\" into the 'make' field, but instead nothing happens and I get an error from my End to End test. The after block still runs.\r\n\r\nI've tried the following\r\n\r\nwaiting for the field\r\n\r\n    await makeField.waitForExist(1000);\r\n\r\nClick on it first\r\n\r\n        const makeField = await driver.findElementByAutomationText(\"make\");\r\n        await makeField.click();\r\n        await makeField.sendKeys(\"Rasberry PI\");\r\n\r\nSending through adb instead\r\n\r\n        await makeField.sendKeys(\"Rasberry PI\", true, true);\r\n\r\nError\r\n\r\n        Error: [execute(\"mobile: shell\",{\"command\":\"input\",\"args\":[\"keyevent\",67]})] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: Potentially insecure feature 'adb_shell' has not been enabled. If you want to enable this feature and accept the security ramifications, please do so by following the documented instructions at https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/security.md\r\n\r\nI can write to some TextFields if they are at the top of a screen and on the first tab. As soon as I go to the second tab I cannot type in the fields. I also cannot type in fields which are too low on the screen. I had a vertical stack of 4 fields all with labels above and I couldn't sendKeys to the last field, but if I removed some of the labels which moved the field up then I could.","author":{"url":"https://github.com/map7","@type":"Person","name":"map7"},"datePublished":"2019-11-14T05:05:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/279/nativescript-dev-appium/issues/279"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a4143578-f356-c296-913b-b316cc741832
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9B28:3B954A:620D74:821EF6:6A5B342C
html-safe-nonce91c2f8e76b488ee02e506483d78e20114c728d48ad4fc870ff5dc11cc1f83010
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjI4OjNCOTU0QTo2MjBENzQ6ODIxRUY2OjZBNUIzNDJDIiwidmlzaXRvcl9pZCI6Ijg2OTkxNzU5NDg3OTE3ODg1ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8abbb2033ce34ff97ea0628f23cb71d5b81334c1c32b5f6c199dbf1e4dbd3bbd
hovercard-subject-tagissue:522627169
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-dev-appium/279/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6d50a926a6b967818c369d1c3ac5968fb254ae88422608bd0f0865421d9f50f1/NativeScript/nativescript-dev-appium/issues/279
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6d50a926a6b967818c369d1c3ac5968fb254ae88422608bd0f0865421d9f50f1/NativeScript/nativescript-dev-appium/issues/279
og:image:altI'm using the following packages (tns info output) on Linux (Debian Jessie) ✔ Getting NativeScript components versions information... ✔ Component nativescript has 6.2.0 version and is up to date. ✔...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemap7
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/nativescript-dev-appium git https://github.com/NativeScript/nativescript-dev-appium.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id58553304
octolytics-dimension-repository_nwoNativeScript/nativescript-dev-appium
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id58553304
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-dev-appium
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/nativescript-dev-appium/issues/279#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-dev-appium%2Fissues%2F279
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-dev-appium%2Fissues%2F279
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fnativescript-dev-appium
Reloadhttps://github.com/NativeScript/nativescript-dev-appium/issues/279
Reloadhttps://github.com/NativeScript/nativescript-dev-appium/issues/279
Reloadhttps://github.com/NativeScript/nativescript-dev-appium/issues/279
Please reload this pagehttps://github.com/NativeScript/nativescript-dev-appium/issues/279
NativeScript https://github.com/NativeScript
nativescript-dev-appiumhttps://github.com/NativeScript/nativescript-dev-appium
Please reload this pagehttps://github.com/NativeScript/nativescript-dev-appium/issues/279
Notifications https://github.com/login?return_to=%2FNativeScript%2Fnativescript-dev-appium
Fork 27 https://github.com/login?return_to=%2FNativeScript%2Fnativescript-dev-appium
Star 70 https://github.com/login?return_to=%2FNativeScript%2Fnativescript-dev-appium
Code https://github.com/NativeScript/nativescript-dev-appium
Issues 21 https://github.com/NativeScript/nativescript-dev-appium/issues
Pull requests 6 https://github.com/NativeScript/nativescript-dev-appium/pulls
Actions https://github.com/NativeScript/nativescript-dev-appium/actions
Security and quality 0 https://github.com/NativeScript/nativescript-dev-appium/security
Insights https://github.com/NativeScript/nativescript-dev-appium/pulse
Code https://github.com/NativeScript/nativescript-dev-appium
Issues https://github.com/NativeScript/nativescript-dev-appium/issues
Pull requests https://github.com/NativeScript/nativescript-dev-appium/pulls
Actions https://github.com/NativeScript/nativescript-dev-appium/actions
Security and quality https://github.com/NativeScript/nativescript-dev-appium/security
Insights https://github.com/NativeScript/nativescript-dev-appium/pulse
Using sendKeys sometimes results in InvalidElementStatehttps://github.com/NativeScript/nativescript-dev-appium/issues/279#top
https://github.com/map7
map7https://github.com/map7
on Nov 14, 2019https://github.com/NativeScript/nativescript-dev-appium/issues/279#issue-522627169
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.