Selenium IDE-Automating Select2 Search Box

筅森魡賤 提交于 2019-12-03 14:07:53

I've had to deal with this as well, the sites I test use select2 and select3. What I've found that works in both situations would be the following:

clickAt | css=.select2-choice > div > b | 
sendKeys | css=input.select2-input.select2-focused | Chris
click | css=.select2-result-label:contains('Chris')

With these types of dropdowns, and Angular, I found sendKeys works better than type or typeKeys.

Klendathu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!