두 요소에 마우스를 올린 후 클릭해야하는 요소가 있습니다. 즉 요소 1에서 마우스 오버 -> 요소 2에서 마우스 오버 -> 요소 3을 클릭합니다. 이것은 나를 위해 작동하지 않습니다Selenium moveToElement를 두 번 클릭 한 다음 요소가 작동하지 않음을 나타냅니다.
Actions actions = new Actions(driver);
actions.moveToElement(billingBtn).build().perform();
actions.moveToElement(billingconfigurationBtn).build().perform();
actions.moveToElement(billingcyclemanagementBtn).click().build().perform();
:
다음은 내 코드입니다. 이렇게 빨리 실행되면 첫 번째 단계 만 수행 할 수 있습니다.
도와주세요!
'.build(). perform()'을 호출하기 전에 전체'Action' 체인을 만들 수 있습니까? 예 : 'actions.moveToElement (billingBtn) .moveToElement (...). moveToElement (...).(). build(). perform();' – RemcoW
@RemcoW : 시도했다. 불운. –