[![This image shows html code ][1]][1]
my java script code to locate element in protractor is below :
element(by.css("insight-top-bar insight-predefined-charts-container button div")).click();
[![This image shows html code ][1]][1]
my java script code to locate element in protractor is below :
element(by.css("insight-top-bar insight-predefined-charts-container button div")).click();
you might want to add some dots to your locator, for the ones that might belong to a class
element(by.css('.insight-top-bar.insight-predefined-charts-container button div'))