-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find elements by ng-model does not work? #48
Comments
Hi
|
Add a timeout for async scripts : // Required for TestForAngular and WaitForAngular scripts
driver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromSeconds(5)); |
Thanks Bruno, but my original post still unresolved |
@debasisj If you try locating that element by CSS Selector: Does that work? That might be a helpful test in this situation. |
@disophisis did you resolve your problem ? |
@debasisj @bbaia the ngmodel may require the second argument like. Serguei Kouzmine |
@disophisis thanks for the suggestion but finding element was not my intention instead would like to extract the data from the scope that being attached to the specific ng model |
@debasisj - both .net and java ports of Protracor have
The genuine Protractor
line but has the same signature. It DOES look like Bruno's Protractor-net does not pass the argument
while ( Becker / myself ) Java
and
do. The integration tests of the Angular Datepicker http://dalelotts.github.io/angular-bootstrap-datetimepicker/ by |
Hi
I have the ng-model = "userService.account" which is in side ng-app
Now when i give a try find elements like Driver.FindElement(NgBy.Model("userService.account")); the below exceptions throws.
But the code above to find elements by repeater works perfectly!! (the first 5 lines below.)
Gilgandra 15/16 Chickpeas - CHKP 933.5 mt $1,111.00 8 hours
Baan Baa 15/16 Barley - F1 1713 mt $11,111.00 8 hours
Ardlethan 15/16 Wheat - APH2 11 mt $2,222.00 5 days
Baan Baa 15/16 Barley - F2 755 mt $22,145.00 5 days
Armatree 15/16 Sorghum - SOR 6000 mt $500.00 7 days
Then the this error for find by model
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.ExecuteScriptCommand(String script, String commandName, Object[] args)
at OpenQA.Selenium.Remote.RemoteWebDriver.ExecuteScript(String script, Object[] args)
at Protractor.JavaScriptBy.FindElements(ISearchContext context) in c:\Users\Bruno\Projets\GitHub\bbaia\protractor-net\src\Protractor\JavaScriptBy.cs:line 90
at Protractor.JavaScriptBy.FindElement(ISearchContext context) in c:\Users\Bruno\Projets\GitHub\bbaia\protractor-net\src\Protractor\JavaScriptBy.cs:line 49
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(By by)
at CropConnect.TestScripts.UnitTest1.TestMethodForDemo() in C:\VisualStudio Projects\com.GrainCorp.SL\CropConnect\TestScripts\UnitTest1.cs:line 92
The text was updated successfully, but these errors were encountered: