This seems more like a sync issues than locating elements. When I disable synchronisation, it does locate the element.
However this is an angular app. And I am expecting that Protractor waits for the page to be loaded and the new URL to appear before continuing. Can someone suggest how to handle the angualr synchronizations without having to 'Disable' 'waitforAngular'?? I increased the time out to 20 secs as 10 was default. It still times out. Obviously I do not want to use control flow as that is soon going to be deprecated. But why does protractor can't handle the angular browser page timeouts??? On Tuesday, April 9, 2019 at 10:41:15 AM UTC+10, Priyanka P wrote: > > This response is irrelevant. > That doesn't answer my question > > On Monday, April 8, 2019 at 10:25:37 PM UTC+10, Dattaram Hodawadekar wrote: >> >> >> https://stackblitz.com/edit/angular-get-el-by-class-name?file=src%2Fapp%2Fapp.component.ts >> >> >> >> On Mon, Apr 8, 2019 at 12:34 PM Priyanka P <priyasi...@gmail.com> wrote: >> >>> Following is the element on page. Im trying to click on the element >>> specified in yellow below. >>> >>> >>> Following are the ways I tried to identify the element. >>> >>> None of them identify the locator. Please help !!!! >>> >>> >>> 1. await element(by.css("a[class*='login']")).click(); >>> 2. await element(by.linkText('Login')).click(); >>> 3. await element(by.css("a[class='class="button login transparent >>> ng-star-inserted']")).click(); >>> 4. await element(by.css('.button login transparent >>> ng-star-inserted')).click(); >>> 5. await element(by.css('a.button login transparent >>> ng-star-inserted')).click(); >>> 6. await >>> element(by.css('.button-container')).element(by.css('a:nth-child(2)')).click(); >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Angular and AngularJS discussion" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to ang...@googlegroups.com. >>> To post to this group, send email to ang...@googlegroups.com. >>> Visit this group at https://groups.google.com/group/angular. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.