material icon indicating copy to clipboard operation
material copied to clipboard

IDs missing in md-Tabs

Open bbruenings opened this issue 11 years ago • 9 comments

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.

bbruenings avatar Jun 02 '15 09:06 bbruenings

@robertmesserle should we recommend selecting in Protractor by something other than ID or add them back in if not already present?

marcysutton avatar Jun 02 '15 17:06 marcysutton

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.

robertmesserle avatar Jun 02 '15 19:06 robertmesserle

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.

Charlie-Ng avatar Jul 16 '15 18:07 Charlie-Ng

+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.

bbruenings avatar Jul 16 '15 18:07 bbruenings

Relying on the order of tabs seems quite brittle. It would be great to have an alternative to this.

Ivor avatar Feb 17 '16 13:02 Ivor

+1

dallincoons avatar Mar 14 '16 20:03 dallincoons

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.

manchurocas avatar Mar 22 '16 22:03 manchurocas

+1

ssj3sunny avatar Apr 07 '16 14:04 ssj3sunny

This issue is closed as part of our deprecation effort. For details, see our post Spring Cleaning 2016.

ThomasBurleson avatar Apr 28 '16 20:04 ThomasBurleson