Seeking assistance in defining and selecting a specific checkbox to complete the account creation process. The challenge lies in the fact that part of the input id is dynamic and changes with each execution. Hence, the current method is ineffective:
var nativeChannels = element(by.css("label[for='dp-native-9597']"));
Upon inspecting the element, the following code is displayed:
div class="switch"input id="dp-native-9597" type="checkbox" ng-model="controls.allNativeChannels" class="cmn-toggle cmn-toggle-round ng-pristine ng-untouched ng-valid" autocomplete="off">label for="dp-native-9597">/label/div
label for="dp-native-9597"/label
Efforts to use a wildcard character after dp-native-
have proven unsuccessful. Is there an alternate method to define this checkbox and proceed with the tests?
Your insight and assistance are greatly appreciated!