Hi Rasika, Your requirement matches exactly as mine , when i tried using protractor + c# am not able to get all locator strategies like you mentioned ( bybuttonText,partialbuttonText etc.. are not available) for me. Were you able to solve the issue. Please guide me to solve this.
Thanks, Ravi Teja. On Friday, September 16, 2016 at 10:49:38 AM UTC+5:30, Rasika Puranik wrote: > > Hi there! > My issue might be simple for u all , but since I am a beginner , I am > using C# with Selenium and integrated the Protractor package to it . > > Please find the below Angular js code , I am trying to locate the button , > but the "By " provides Selenium locators and "NgBy" provides Protractor > locators , and these are very limited , I am not able to use > NgBy.PartialButtonText in this. > > When I used the same in pure Protractor +JavaScript I was able to do it , > but the demand here is with C# and with C# it's not working , can anyone > help. > > > <button > data-ng-click="vm.cancelInterval();navigate('/home/solutions/create')" > class="btn-default ng-binding">+ Create new Solution</button> > > > I used By.css and ng -click into it , but it did not work , > > for classname it say - invalid locator ...so cannot use classname too > ...no id is provided , then how to locate such element. > > > -- 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.