Appium Java: checkbox element is never clicked iOSPopup freezes Selenium Webdriver until the popup is manually closedClick on a child element in appiumAppium not clicking on an elementAppium Android click checkboxAppium TouchActions not registering for WebGL Game in SeleniumSelenium Java Appium Http proxyUnable to scroll Android app with Appium using Java ClientCONTROL + 'a' not working for IOSDriver : AppiumUnexpected value returned when checking a property value for Android appsTouchAction to swipe not working iOS Simulator - Appium Java

What does chmod -u do?

Is the U.S. Code copyrighted by the Government?

Store Credit Card Information in Password Manager?

The probability of Bus A arriving before Bus B

Pre-mixing cryogenic fuels and using only one fuel tank

Is preaching recommended or mandatory to a temple priest?

Count the occurrence of each unique word in the file

Why did the EU agree to delay the Brexit deadline?

Why does the Sun have different day lengths, but not the gas giants?

Loading commands from file

Fantasy book from my childhood: female protagonist, Blood Ore or Blood Metal for taking attributes

Is Witten's Proof of the Positive Mass Theorem Rigorous?

How should I respond when I lied about my education and the company finds out through background check?

Biological Blimps: Propulsion

Python scanner for the first free port in a range

Fear of getting stuck on one programming language / technology that is not used in my country

How to indicate a cut out for a product window

A social experiment. What is the worst that can happen?

If a character has darkvision, can they see through an area of nonmagical darkness filled with lightly obscuring gas?

Why Shazam when there is already Superman?

Why is it that I can sometimes guess the next note?

Did arcade monitors have same pixel aspect ratio as TV sets?

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Does a 'pending' US visa application constitute a denial?



Appium Java: checkbox element is never clicked iOS


Popup freezes Selenium Webdriver until the popup is manually closedClick on a child element in appiumAppium not clicking on an elementAppium Android click checkboxAppium TouchActions not registering for WebGL Game in SeleniumSelenium Java Appium Http proxyUnable to scroll Android app with Appium using Java ClientCONTROL + 'a' not working for IOSDriver : AppiumUnexpected value returned when checking a property value for Android appsTouchAction to swipe not working iOS Simulator - Appium Java













0















I am trying to check the element but is never clicked



WebElement checkBox = driver.findElementByXPath("//XCUIElementTypeOther[@name="checkTerms"]");

System.out.println(checkBox.getAttribute("enabled"));

checkBox.click();


it prints true but nothing happens



Appium 1.11.1



appium java-client 7.0.0



selenium-java 3.141.59



I am using this pod https://cocoapods.org/pods/M13Checkbox to show checkboxes



enter image description here



If I click on tap in the right panel it works as expected.



Edit: I have to click it after filling user/password and I can't hide the keyboard after password (it's numeric keyboard) getting WebDriverException but it's working one time hiding it after user textfield.



Edit2: No matter keyboard is shown checkbox is never tapped.



Thanks for any help.










share|improve this question
























  • what error are you getting?

    – Kajal Kundu
    Mar 14 at 17:02











  • I don't have any error but when I check the element with appium desktop enabled is always true and I don't see any attribute "checked"

    – Pablo R.
    Mar 14 at 17:05











  • The enabled property is not going to change when you click/tap the element. What happens to the other properties when you click the tap button on the viewer? Do any of them change value? Normally, I would check for a value attribute, but it's not clear from your screenshot whether or not that's what to do. I work with Android, not IOS, so mine looks a bit different.

    – Bill Hileman
    Mar 14 at 18:10











  • were you able to click it using appium desktop inspector? Select the element and try to click tap button in the appium desktop inspector.

    – Suban Dhyako
    Mar 15 at 5:39











  • @SubanDhyako I am able to tap it on appium desktop an I can record the tap action giving me -- MobileElement el1 = (MobileElement) driver.findElementByAccessibilityId("checkTerms"); el1.click(); -- but never works on code. appium server 1.11.1 desktop 1.10.0 Bill nothing changes and attribute value is never shown in desktop and I can't get it trough code

    – Pablo R.
    Mar 15 at 9:29















0















I am trying to check the element but is never clicked



WebElement checkBox = driver.findElementByXPath("//XCUIElementTypeOther[@name="checkTerms"]");

System.out.println(checkBox.getAttribute("enabled"));

checkBox.click();


it prints true but nothing happens



Appium 1.11.1



appium java-client 7.0.0



selenium-java 3.141.59



I am using this pod https://cocoapods.org/pods/M13Checkbox to show checkboxes



enter image description here



If I click on tap in the right panel it works as expected.



Edit: I have to click it after filling user/password and I can't hide the keyboard after password (it's numeric keyboard) getting WebDriverException but it's working one time hiding it after user textfield.



Edit2: No matter keyboard is shown checkbox is never tapped.



Thanks for any help.










share|improve this question
























  • what error are you getting?

    – Kajal Kundu
    Mar 14 at 17:02











  • I don't have any error but when I check the element with appium desktop enabled is always true and I don't see any attribute "checked"

    – Pablo R.
    Mar 14 at 17:05











  • The enabled property is not going to change when you click/tap the element. What happens to the other properties when you click the tap button on the viewer? Do any of them change value? Normally, I would check for a value attribute, but it's not clear from your screenshot whether or not that's what to do. I work with Android, not IOS, so mine looks a bit different.

    – Bill Hileman
    Mar 14 at 18:10











  • were you able to click it using appium desktop inspector? Select the element and try to click tap button in the appium desktop inspector.

    – Suban Dhyako
    Mar 15 at 5:39











  • @SubanDhyako I am able to tap it on appium desktop an I can record the tap action giving me -- MobileElement el1 = (MobileElement) driver.findElementByAccessibilityId("checkTerms"); el1.click(); -- but never works on code. appium server 1.11.1 desktop 1.10.0 Bill nothing changes and attribute value is never shown in desktop and I can't get it trough code

    – Pablo R.
    Mar 15 at 9:29













0












0








0








I am trying to check the element but is never clicked



WebElement checkBox = driver.findElementByXPath("//XCUIElementTypeOther[@name="checkTerms"]");

System.out.println(checkBox.getAttribute("enabled"));

checkBox.click();


it prints true but nothing happens



Appium 1.11.1



appium java-client 7.0.0



selenium-java 3.141.59



I am using this pod https://cocoapods.org/pods/M13Checkbox to show checkboxes



enter image description here



If I click on tap in the right panel it works as expected.



Edit: I have to click it after filling user/password and I can't hide the keyboard after password (it's numeric keyboard) getting WebDriverException but it's working one time hiding it after user textfield.



Edit2: No matter keyboard is shown checkbox is never tapped.



Thanks for any help.










share|improve this question
















I am trying to check the element but is never clicked



WebElement checkBox = driver.findElementByXPath("//XCUIElementTypeOther[@name="checkTerms"]");

System.out.println(checkBox.getAttribute("enabled"));

checkBox.click();


it prints true but nothing happens



Appium 1.11.1



appium java-client 7.0.0



selenium-java 3.141.59



I am using this pod https://cocoapods.org/pods/M13Checkbox to show checkboxes



enter image description here



If I click on tap in the right panel it works as expected.



Edit: I have to click it after filling user/password and I can't hide the keyboard after password (it's numeric keyboard) getting WebDriverException but it's working one time hiding it after user textfield.



Edit2: No matter keyboard is shown checkbox is never tapped.



Thanks for any help.







selenium appium xcuitest






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 15 at 9:09







Pablo R.

















asked Mar 14 at 16:57









Pablo R.Pablo R.

182213




182213












  • what error are you getting?

    – Kajal Kundu
    Mar 14 at 17:02











  • I don't have any error but when I check the element with appium desktop enabled is always true and I don't see any attribute "checked"

    – Pablo R.
    Mar 14 at 17:05











  • The enabled property is not going to change when you click/tap the element. What happens to the other properties when you click the tap button on the viewer? Do any of them change value? Normally, I would check for a value attribute, but it's not clear from your screenshot whether or not that's what to do. I work with Android, not IOS, so mine looks a bit different.

    – Bill Hileman
    Mar 14 at 18:10











  • were you able to click it using appium desktop inspector? Select the element and try to click tap button in the appium desktop inspector.

    – Suban Dhyako
    Mar 15 at 5:39











  • @SubanDhyako I am able to tap it on appium desktop an I can record the tap action giving me -- MobileElement el1 = (MobileElement) driver.findElementByAccessibilityId("checkTerms"); el1.click(); -- but never works on code. appium server 1.11.1 desktop 1.10.0 Bill nothing changes and attribute value is never shown in desktop and I can't get it trough code

    – Pablo R.
    Mar 15 at 9:29

















  • what error are you getting?

    – Kajal Kundu
    Mar 14 at 17:02











  • I don't have any error but when I check the element with appium desktop enabled is always true and I don't see any attribute "checked"

    – Pablo R.
    Mar 14 at 17:05











  • The enabled property is not going to change when you click/tap the element. What happens to the other properties when you click the tap button on the viewer? Do any of them change value? Normally, I would check for a value attribute, but it's not clear from your screenshot whether or not that's what to do. I work with Android, not IOS, so mine looks a bit different.

    – Bill Hileman
    Mar 14 at 18:10











  • were you able to click it using appium desktop inspector? Select the element and try to click tap button in the appium desktop inspector.

    – Suban Dhyako
    Mar 15 at 5:39











  • @SubanDhyako I am able to tap it on appium desktop an I can record the tap action giving me -- MobileElement el1 = (MobileElement) driver.findElementByAccessibilityId("checkTerms"); el1.click(); -- but never works on code. appium server 1.11.1 desktop 1.10.0 Bill nothing changes and attribute value is never shown in desktop and I can't get it trough code

    – Pablo R.
    Mar 15 at 9:29
















what error are you getting?

– Kajal Kundu
Mar 14 at 17:02





what error are you getting?

– Kajal Kundu
Mar 14 at 17:02













I don't have any error but when I check the element with appium desktop enabled is always true and I don't see any attribute "checked"

– Pablo R.
Mar 14 at 17:05





I don't have any error but when I check the element with appium desktop enabled is always true and I don't see any attribute "checked"

– Pablo R.
Mar 14 at 17:05













The enabled property is not going to change when you click/tap the element. What happens to the other properties when you click the tap button on the viewer? Do any of them change value? Normally, I would check for a value attribute, but it's not clear from your screenshot whether or not that's what to do. I work with Android, not IOS, so mine looks a bit different.

– Bill Hileman
Mar 14 at 18:10





The enabled property is not going to change when you click/tap the element. What happens to the other properties when you click the tap button on the viewer? Do any of them change value? Normally, I would check for a value attribute, but it's not clear from your screenshot whether or not that's what to do. I work with Android, not IOS, so mine looks a bit different.

– Bill Hileman
Mar 14 at 18:10













were you able to click it using appium desktop inspector? Select the element and try to click tap button in the appium desktop inspector.

– Suban Dhyako
Mar 15 at 5:39





were you able to click it using appium desktop inspector? Select the element and try to click tap button in the appium desktop inspector.

– Suban Dhyako
Mar 15 at 5:39













@SubanDhyako I am able to tap it on appium desktop an I can record the tap action giving me -- MobileElement el1 = (MobileElement) driver.findElementByAccessibilityId("checkTerms"); el1.click(); -- but never works on code. appium server 1.11.1 desktop 1.10.0 Bill nothing changes and attribute value is never shown in desktop and I can't get it trough code

– Pablo R.
Mar 15 at 9:29





@SubanDhyako I am able to tap it on appium desktop an I can record the tap action giving me -- MobileElement el1 = (MobileElement) driver.findElementByAccessibilityId("checkTerms"); el1.click(); -- but never works on code. appium server 1.11.1 desktop 1.10.0 Bill nothing changes and attribute value is never shown in desktop and I can't get it trough code

– Pablo R.
Mar 15 at 9:29












2 Answers
2






active

oldest

votes


















0














Have you tried this?



Actions action = new Actions(driver);
action.moveTo(checkbox);
action.click();
action.perform();





share|improve this answer























  • it's also not working and I don't understand why... Maybe because checkbox is from a pod cocoapods.org/pods/M13Checkbox?

    – Pablo R.
    Mar 14 at 17:18












  • can you add System.out.println(checkBox.getAttribute("name")); just want to make sure you are pointing to the right element

    – supputuri
    Mar 14 at 17:20











  • it prints "checkTerms"

    – Pablo R.
    Mar 14 at 17:23











  • Ok. 1 more check. MobileElement element = (MobileElement) driver.findElementByXPath("//XCUIElementTypeOther[@name="checkTerms"]"); boolean isSelected = element.isSelected();, try this and see what's the outcome.

    – supputuri
    Mar 14 at 17:43












  • I get the following error justpaste.it/edit/27232277/f3b0c933674369ad

    – Pablo R.
    Mar 14 at 17:56


















0














I finally solved it scrolling down to the next element to the checkbox. for some reason even if it was appearing on the screen the view couldn't tap the element so it worked scrolling down to password textfield and then click into the checkbox.






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55168178%2fappium-java-checkbox-element-is-never-clicked-ios%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Have you tried this?



    Actions action = new Actions(driver);
    action.moveTo(checkbox);
    action.click();
    action.perform();





    share|improve this answer























    • it's also not working and I don't understand why... Maybe because checkbox is from a pod cocoapods.org/pods/M13Checkbox?

      – Pablo R.
      Mar 14 at 17:18












    • can you add System.out.println(checkBox.getAttribute("name")); just want to make sure you are pointing to the right element

      – supputuri
      Mar 14 at 17:20











    • it prints "checkTerms"

      – Pablo R.
      Mar 14 at 17:23











    • Ok. 1 more check. MobileElement element = (MobileElement) driver.findElementByXPath("//XCUIElementTypeOther[@name="checkTerms"]"); boolean isSelected = element.isSelected();, try this and see what's the outcome.

      – supputuri
      Mar 14 at 17:43












    • I get the following error justpaste.it/edit/27232277/f3b0c933674369ad

      – Pablo R.
      Mar 14 at 17:56















    0














    Have you tried this?



    Actions action = new Actions(driver);
    action.moveTo(checkbox);
    action.click();
    action.perform();





    share|improve this answer























    • it's also not working and I don't understand why... Maybe because checkbox is from a pod cocoapods.org/pods/M13Checkbox?

      – Pablo R.
      Mar 14 at 17:18












    • can you add System.out.println(checkBox.getAttribute("name")); just want to make sure you are pointing to the right element

      – supputuri
      Mar 14 at 17:20











    • it prints "checkTerms"

      – Pablo R.
      Mar 14 at 17:23











    • Ok. 1 more check. MobileElement element = (MobileElement) driver.findElementByXPath("//XCUIElementTypeOther[@name="checkTerms"]"); boolean isSelected = element.isSelected();, try this and see what's the outcome.

      – supputuri
      Mar 14 at 17:43












    • I get the following error justpaste.it/edit/27232277/f3b0c933674369ad

      – Pablo R.
      Mar 14 at 17:56













    0












    0








    0







    Have you tried this?



    Actions action = new Actions(driver);
    action.moveTo(checkbox);
    action.click();
    action.perform();





    share|improve this answer













    Have you tried this?



    Actions action = new Actions(driver);
    action.moveTo(checkbox);
    action.click();
    action.perform();






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 14 at 17:09









    supputurisupputuri

    63038




    63038












    • it's also not working and I don't understand why... Maybe because checkbox is from a pod cocoapods.org/pods/M13Checkbox?

      – Pablo R.
      Mar 14 at 17:18












    • can you add System.out.println(checkBox.getAttribute("name")); just want to make sure you are pointing to the right element

      – supputuri
      Mar 14 at 17:20











    • it prints "checkTerms"

      – Pablo R.
      Mar 14 at 17:23











    • Ok. 1 more check. MobileElement element = (MobileElement) driver.findElementByXPath("//XCUIElementTypeOther[@name="checkTerms"]"); boolean isSelected = element.isSelected();, try this and see what's the outcome.

      – supputuri
      Mar 14 at 17:43












    • I get the following error justpaste.it/edit/27232277/f3b0c933674369ad

      – Pablo R.
      Mar 14 at 17:56

















    • it's also not working and I don't understand why... Maybe because checkbox is from a pod cocoapods.org/pods/M13Checkbox?

      – Pablo R.
      Mar 14 at 17:18












    • can you add System.out.println(checkBox.getAttribute("name")); just want to make sure you are pointing to the right element

      – supputuri
      Mar 14 at 17:20











    • it prints "checkTerms"

      – Pablo R.
      Mar 14 at 17:23











    • Ok. 1 more check. MobileElement element = (MobileElement) driver.findElementByXPath("//XCUIElementTypeOther[@name="checkTerms"]"); boolean isSelected = element.isSelected();, try this and see what's the outcome.

      – supputuri
      Mar 14 at 17:43












    • I get the following error justpaste.it/edit/27232277/f3b0c933674369ad

      – Pablo R.
      Mar 14 at 17:56
















    it's also not working and I don't understand why... Maybe because checkbox is from a pod cocoapods.org/pods/M13Checkbox?

    – Pablo R.
    Mar 14 at 17:18






    it's also not working and I don't understand why... Maybe because checkbox is from a pod cocoapods.org/pods/M13Checkbox?

    – Pablo R.
    Mar 14 at 17:18














    can you add System.out.println(checkBox.getAttribute("name")); just want to make sure you are pointing to the right element

    – supputuri
    Mar 14 at 17:20





    can you add System.out.println(checkBox.getAttribute("name")); just want to make sure you are pointing to the right element

    – supputuri
    Mar 14 at 17:20













    it prints "checkTerms"

    – Pablo R.
    Mar 14 at 17:23





    it prints "checkTerms"

    – Pablo R.
    Mar 14 at 17:23













    Ok. 1 more check. MobileElement element = (MobileElement) driver.findElementByXPath("//XCUIElementTypeOther[@name="checkTerms"]"); boolean isSelected = element.isSelected();, try this and see what's the outcome.

    – supputuri
    Mar 14 at 17:43






    Ok. 1 more check. MobileElement element = (MobileElement) driver.findElementByXPath("//XCUIElementTypeOther[@name="checkTerms"]"); boolean isSelected = element.isSelected();, try this and see what's the outcome.

    – supputuri
    Mar 14 at 17:43














    I get the following error justpaste.it/edit/27232277/f3b0c933674369ad

    – Pablo R.
    Mar 14 at 17:56





    I get the following error justpaste.it/edit/27232277/f3b0c933674369ad

    – Pablo R.
    Mar 14 at 17:56













    0














    I finally solved it scrolling down to the next element to the checkbox. for some reason even if it was appearing on the screen the view couldn't tap the element so it worked scrolling down to password textfield and then click into the checkbox.






    share|improve this answer



























      0














      I finally solved it scrolling down to the next element to the checkbox. for some reason even if it was appearing on the screen the view couldn't tap the element so it worked scrolling down to password textfield and then click into the checkbox.






      share|improve this answer

























        0












        0








        0







        I finally solved it scrolling down to the next element to the checkbox. for some reason even if it was appearing on the screen the view couldn't tap the element so it worked scrolling down to password textfield and then click into the checkbox.






        share|improve this answer













        I finally solved it scrolling down to the next element to the checkbox. for some reason even if it was appearing on the screen the view couldn't tap the element so it worked scrolling down to password textfield and then click into the checkbox.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        Pablo R.Pablo R.

        182213




        182213



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55168178%2fappium-java-checkbox-element-is-never-clicked-ios%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해