简体   繁体   中英

Dynamics365 - Unable to find the corresponding element when a button clicked and a popup showsup

Trying to automate Dynamics365, click Farm Tax button and select PPR listed (large red box to the left). Highlighted text is the id for the button. Not able find where the listings (PPR or any other) are in Developer Tools in Chrome. Only "are-haspopup" is changing from "false" to "true" , when button is clicked (see small red box in the middle). How to find the elements that represent the popup (large red box)?

在此处输入图像描述

This may take some trouble shooting. Here is something to try. We will try to find the element of the dropdown by the text value.

var frameId = findByElements.FindById("AppLandingPage"); 
Driver.SwitchTo().Frame(frameId);
findByElements.FindById("AppTileContainerSec_1_LI_1").Click();
findByElements.FindById("areaSwitcherId").Click();

Driver.FindElement(By.XPath("//*[contains(text(),'PPR')]")).Click();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM