protractor icon indicating copy to clipboard operation
protractor copied to clipboard

NgBy ignore the current WebElement

Open MayaGi opened this issue 12 years ago • 3 comments

consider the following example:

<body> <tr><td>{{row[column.field]}}</td><td>{{row[column.field]}}</td></tr> <tr><td>{{row[column.field]}}</td><td>{{row[column.field]}}</td></tr> </body>

when m_rowElement holds the first tr element m_rowElement.FindElements(By.TagName("td")); return 2 element, yet m_rowElement.FindElements(NgBy.Binding("row[column.field]")); return 4 elements.

MayaGi avatar Nov 27 '14 14:11 MayaGi

Where are you getting NgBy from? It sounds like you're using an old or modified version of Protractor.

FindElements is also not a function - findElements is - is this a typo or are you using some unofficial version? I'm closing this issue pending more information.

juliemr avatar Dec 01 '14 22:12 juliemr

I am using protractor for visual studio installed using nuget package id="Protractor" version="0.3.0" targetFramework="net45" package id="Selenium.Support" version="2.39.0" targetFramework="net45" package id="Selenium.WebDriver" version="2.39.0" targetFramework="net45"

The runtime version is of protractor is v4.0.30319

MayaGi avatar Dec 03 '14 14:12 MayaGi

This is not the correct Protractor repository - you want https://github.com/bbaia/protractor-net

The .NET version is a port.

juliemr avatar Dec 03 '14 18:12 juliemr