md-select drop down selection

匿名 (未验证) 提交于 2019-12-03 01:38:01

问题:

we have a md-table with 20 rows. each row will have a drop down and three values. select, accept and deny. I am trying to select the value accept or deny but i get element not visible error. i tried adding waitforAngular and sleep time. but it doesnt seem to work. it clicks on the drop down and later fails without clicking on accept.

Any suggestions. thanks

element.all(by.model('result.status')).get(0).click(); browser.driver.sleep(2000);  browser.waitForAngular();   //select.$('[value="Accept"]').click(); element.all(by.css('md-option[value="Accept"]')).get(0).click();

回答1:

Instead of clicking the option in the drop down, use sendKeys() to send the value you want directly to the drop down element.



转载请标明出处:md-select drop down selection
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!