mgcrea / angular-strap

AngularJS 1.2+ native directives for Bootstrap 3.
mgcrea.github.io/angular-strap
MIT License
5.73k stars 1.38k forks source link

Selecting elements in a bs-select dropdown using protractor selenium testing #2188

Closed joshdion closed 5 years ago

joshdion commented 8 years ago

I'm doing automation testing of a webpage and I can't figure out a way to select these elements. I am using protractor selenium testing.

I tried this:

element(by.model('selectedAvailable')).click(); element(by.xpath('..//ul//li[1]')).click().

and this:

element(by.repeater('match in $matches').row(0)).click();

and was recommended to try this from people over at stackoverflow which isn't working either http://stackoverflow.com/q/40292488/6636535

element(by.cssContainingText('[ng-repeat="match in $matches"]', 'Streamer')).click();

jcdesousa commented 8 years ago

I had the same issue.

You can try: element(by.model('selectedAvailable')).click(); element(by.linkText('Inactive')).click();

AnthonyMDev commented 7 years ago

Did anyone ever get this working? I'm having a similar issue now.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.