Comments (6)
I haven't looked at angular-ui/ui-select before. From the name it seems using 'select' would be the most logical verb to use in the wiki. Is there a public site where I can see this in action so I could see if I could troubleshoot myself?
In interactive usage can you select a value from the list by typing the option after clicking the element (or going to it via 'tab')? That is what enterAs will do.
The exception you get originates from the fact that with enterAs
I try to clear before entering text. That is not allowed for a div. You could try to create your own subclass of NgBrowserTest and add a method to enter without clearing first (an override of enterFor
present in BrowserTest).
And see what result you get with that.
I'm thinking of
@Override
public boolean enterFor(String value, String place) {
boolean result;
WebElement angularModelInput = getAngularElementToEnterIn(place);
if (angularModelInput == null) {
result = super.enterFor(value, place);
} else {
sendValue(angularModelInput, value);
result = true;
}
return result;
}
P.S. Why do you need the 3 second wait after starting the selenium driver?
from hsac-fitnesse-fixtures.
I did a small proof of concept myself and did find some issues. I have pushed a first attempt to get something to work. With the latest code I can do (HsacExamples.SlimTests.BrowserTests.AngularUiSelectTest):
|storyboard|ng browser test |
|open |http://run.plnkr.co/plunks/jBJkDb/ |
|click |Select or search a person in the list...|
|press |Adam |
|press enter |
Not yet great, but work in progress...
from hsac-fitnesse-fixtures.
I tried my idea of overriding enterFor
, but that did not work for http://run.plnkr.co/plunks/jBJkDb/. Selenium does not do sendKeys()
to a div, just like it will not clear()
it
from hsac-fitnesse-fixtures.
I see that a similar approach to my quick fix for working with ui-select was suggested in a ui-select issue (angular-ui/ui-select#270). So maybe my quick fix is just the way to go...
from hsac-fitnesse-fixtures.
@fhoeben,
Your approach worked like a charm. Still couldn't make it work with ng-model selector though, but I guess your suggestion will do for now! Closing the issue!
from hsac-fitnesse-fixtures.
About the 3 seconds wait after starting the selenium driver is just a leftover from a previous test sorry.
from hsac-fitnesse-fixtures.
Related Issues (20)
- How to import script fixture? HOT 10
- Images only available as ARM64 HOT 2
- Webdriver issue CHROME 119 HOT 3
- 5.2.45 and up: org.openqa.selenium.WebDriverException: disconnected: not connected to DevTools HOT 2
- Can this constant be defined in the SuiteSetup? HOT 1
- No interaction possible with "invisible" input fields HOT 2
- hsac fitnesse fixtures not working after angular upgrade to 14 in headless chrome HOT 1
- hsac/fitnesse-fixtures-test-jre11-chrome:5.3.6 is missing expected files HOT 4
- How to from $drmName get text uncle? HOT 2
- HIGH Vulnerabilities in transitive dependency HOT 7
- Why are the linux drivers explicitily excluded? HOT 1
- Images for version 5.3.8 are missing HOT 1
- Can we access shadow dom elements in our scripts ? HOT 3
- How to reset "pageLoadWait" value? HOT 2
- hsac.fixtures.version > 5.3.10 > This version of ChromeDriver only supports Chrome version 110 HOT 1
- How to use hsacfit to test the branch process? Are there any keywords that can be used? HOT 1
- The valueOf how get <div> text? HOT 2
- BrowserTest value of don't get the div text HOT 2
- How to config chrome extensions?
- "alert text" gives "Unhandled alert: alert must be confirmed or dismissed before test can continue. Alert text: ..etc..." HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hsac-fitnesse-fixtures.