현재 임의로 표시된 요소가있는 페이지가 있습니다. 그 동안, 난 상태 함수를 만든 : 요소가 화면에 표시됩니다요소가없는 경우 조건부 함수를 추가 할 때 오류가 발생합니다.
this.checkDropdownPresent = function (dropdownLocator, chooseOption) {
dropdownLocator.isPresent().then(function(element) {
if (element) {
let select = dropdownLocator;
select.element(by.cssContainingText('option', chooseOption)).click();
}
});
};
, 괜찮 일하고와 각도기가 상호 작용을하지만, 화면에 표시 NOT IN 요소, 나는를 받고있을 때 메시지 :
Failed: element not visible: Element is not currently visible and may not be manipulated
저에게 도움이되는 팁이 있습니까?
요소가 보이는지 여부를 확인해야하는 것처럼 들립니다. – Barmar
관련 : https://stackoverflow.com/questions/36544589/element-is-not-currently-visible-and-so-may-not-be-interacted-with-when-clicking – Barmar