-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Selecting an option from a dropdown #75
Comments
Parentheses are slightly off! Should be:
|
i'm having difficulty selecting an option from a select as well. i tried:
and although it selects option 1 the dropdown does not go away. any thoughts? |
Same issue when select option and the dropdown is still there. |
On the similar ground, I am not able to select Hybrid. I have: Aerial Hybrid Roads StandardWhat I am trying is: element(by.model("selectedBaseLayer")).click(); And it does not click as it says, "ElementNotVisibleError: element not visible". Can anyone point out my mistake please? |
Hi, A. Selecting from drop down value: B. Verifying using count: |
hi, |
Thanks @sallojusuresh just careful that browser.action().mouseMove(element(by.xpath(".//*[text()='Hybrid']"))).click().perform(); needs to be browser.actions().mouseMove... having the browser.action() is not a function had me stumped for a bit thanks again |
Hi all. Hoping someone can help.
I have:
select ng-model="data.productType" ng-options="p for p in data.productTypes" class="ng-valid ng-dirty">
All USA UK INDIA AUSTRALIAI am trying to select one of these values using Protractor. I have tried a few methods including:
ptor.findElement(protractor.By.css('select option:2').click());
But I get:
TypeError: Object By.cssSelector("select option:2") has no method 'click'
Any idea what is wrong?
The text was updated successfully, but these errors were encountered: