Protractor - Check if a radio-button is checked or not
问题 So I have this problem where I run a protractor/selenium test and sometimes a radio-button is already checked during the test and sometimes its not. etc: <div id="TRUCK" class="radio-item checked" data-gtm="truck"> or <div id="TRUCK" class="radio-item" data-gtm="deliveryOpt-truck"> where you can see the class sometimes have the "checked" init and sometimes not. What I am trying to do solve is that I want to make a function that clicks IF the radio-button is not checked and if its already