IDs missing in md-Tabs
The IDs for every md-Tab is missing in the markup. Cannot switch Tabs with protractor anymore now. Issue was not there in V 0.8.3.
@robertmesserle should we recommend selecting in Protractor by something other than ID or add them back in if not already present?
Hm. I'll have to give this some thought. I was considering having md-tab-label and md-tab-body transfer all of their attributes. On Tue, Jun 2, 2015 at 10:59 AM Marcy Sutton [email protected] wrote:
@robertmesserle https://github.com/robertmesserle should we recommend selecting in Protractor by something other than ID or add them back in if not already present?
— Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/3077#issuecomment-108033555.
I temporarily use
element.all(by.tagName('md-tab-item')).get(0).click()
to click the first tab, and get(1) to second tab, and so on.
+1
Charlie-Ng [email protected] schrieb am Do., 16. Juli 2015 20:39:
I temporarily use element.all(by.tagName('md-tab-item')).get(0).click() to click the first tab, and get(1) to second tab, and so on.
— Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/3077#issuecomment-122045502.
Relying on the order of tabs seems quite brittle. It would be great to have an alternative to this.
+1
Is there an alternative available yet? The method by @Charlie-Ng works if there is just one set of tabs on the page, but there are several different sets of tabs on my particular page, and I can't distinguish between one set of tabs or another by using tag name.
+1
This issue is closed as part of our deprecation effort. For details, see our post Spring Cleaning 2016.