For the Spreadsheet tool bar icons that have additional drop-down icons, the following two xPaths are required:
-
Top menu
-
Menu that is displayed when clicking on an item on the top menu.
Top Menu
-
Using Dev tools, highlight the entire Spreadsheet menu icon that you want to use so that you see the i.fa.epc-layers::before and get the xPath.
-
Click on the line just above the ::before and get the xpath.
-
The xPath looks as follows:
//*[@id="dhxId_0QpewlMKE3gr_sheetDropdown-16748"]/div/iConvert the xpath into a contains by removing the dhxId-#### so it looks like this
Drop down menu
-
Take the xpath from the Top Menu and modify it by removing the div/I and adding div[2]/table/tbody/tr
//*[contains(@id,'_sheetDropdown-16748')]/div[2]/table/tbody/tr