Closed marknelsonengineer closed 9 years ago
I'd like to discuss this at our next team meeting. Here's what I've found out:
Patrick: Maybe we can think of other ways of doing this...
...in any event, the HTMLUNIT browser driver does not honor the formaction tag and that's that.
SO, if we need to use formation, how do we make that work? I've found a new browser driver Chromium that does the trick. It's fairly easy to install, but I want to ask the team about it first.
The docs/install instructions are here: https://sites.google.com/a/chromium.org/chromedriver/getting-started
Basically, you:
Side effects: For starters, it actually flashes the browser and you can see it 'typing' form content into it. It's a little flashy.
Anyway, let's discuss the pros and cons. The good news is: I got the test path to work.
After reviewing potential solutions, we are not going to try and refactor the CreateRoutine page... and we will try to solve the problem in the test.
We looked at potential solutions from Dr. Johnson's HTMLUniv vs. FireFox vs. PhantomJS post.
FireFox - Hangs, just as Dr. Johnson said it would.
PhantomJS - This hangs as well. I downloaded PhantomJS and run $ phantomjs --version
from the command line. Even after telling OSX's Security & Privacy page to 'trust' this application, all I ever get from the command line is: Killed: 9
. OK, fine. I try using it from IntelliJ, but the JUnit test hangs and eventually times out/fails. Time to move on.
Chromium - I got this to work last night and demo'd it w/ Patrick today. We think we can move forward with this approach. I'll wire it in and write it up in the Wiki.
The Fluentlenium tests work great with Chrome. We have a great foundation for fluid tests. Time to close.
Fluentlenium tests for Material are not working correctly. The page-fill design pattern we've been using will not work because a lot of state is maintained in the browser (which is bad for a variety of reasons -- but we are sacrificing speed for security). The simulated browser needs to 'click' on links/buttons to go from page to page. The browser emulator has this capability, but when I click
#add-material
it clicks the#submit
button at the bottom of the page and we don't go where we need to go. I've tried several methods to get around this, including:At this point, I'm going to let it go and move forward with today's deployment.