Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
trying to test dijit dropdown
.findByCssSelector('div.recommendationSection.section')
.then(function(section){
section.getAttribute('id')
.then(function(id){
console.info("=> found section ID : " + id);
section.findById(id+'_secOptMenu_label')
.then(function(menu){
console.info("=> Found option menu ");
menu.click();
})
.findById(id_+'_picoSecAddOptMenu_text') // never gets called. fails fast
.then(function(menuOpt) {
console.info("=> found Add PICO options");
menuOpt.click();
console.info("=> clicked drop down...");
});
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment