Search code examples
angularjsprotractorvisibilityappiumend-to-end

How can i change the visibility of a invisible elements (shown in appium inspector) to true in protractor?


I 'm testing an Angular JS site with protractor and Appium, Recorder details. The click into the login button isn't working as i have mentionned here The problem with click().

  • Is it possible that because visible = false from inspector details?

  • In that case how can i change the visibility of a button into true ?

  • I get true with that code :

loginbutton.isDisplayed().then(function(result){ console.log(result); });


Solution

  • This was not the origin problem that the click into login button isn't done as i have expected, i solved it by changing the way when clicking into a button in protractor by this way :

    browser.actions().mouseMove(loginButton).click().perform();

    Here the Origin of the problem.

    Hope that this help you.