Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99412

Button Click issue in Webdriverio tool

$
0
0

I'm trying to learn automation with webdriverio tool using typescript. I am able to launch the browser and hit the URL. But unable to click the button in the initial screen.

Can someone help? Details below

https://i.stack.imgur.com/N9i5q.png

front code for the button is

<button rfs-button-primary="" ng-attr-id="{{vm.generateButtonId(button)}}" type="button" ng-click="vm.startIvoConfig()" ng-disabled="vm.nextButtonDisabled" class="ng-binding" id="Bereken_uw_premie">Bereken uw premie</button>

I am writing the code as below in webdriverio tool

browser.maximizeWindow();
const button = $('#Bereken_uw_premie');
button.waitForDisplayed();
button.click();

But the button is not clicked. Any other solution?


Viewing all articles
Browse latest Browse all 99412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>