Skip to content

Instantly share code, notes, and snippets.

@denov
Created September 25, 2014 21:24
Show Gist options
  • Save denov/5c2b858f9a28343a5424 to your computer and use it in GitHub Desktop.
Save denov/5c2b858f9a28343a5424 to your computer and use it in GitHub Desktop.
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