-
Notifications
You must be signed in to change notification settings - Fork 201
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
Selenium Bridge #3279
Comments
I don't want to sound ungrateful for the work you guys do, but this is blocking functional testing. I tried solving this problem from the other end, using a standard Selenium library, but the shadow-dom screws up the query selectors and I couldn't translate them manually. Maybe I could dance a jig and get the priority elevated a bit? Going on 1.5 years 😢. |
Cab you give more information on what you need? Trying to pick up these issues is difficult with so little context. |
I need to simulate filling in a form, clicking on submit, and checking on what is sent to my REST API. Polymer's I can unit test individual functions and parse the dom, but it's very unproductive and brittle. Functional testing let's me test lots of components all at once. I can refactor several functions and test that things are still working without having to rewrite all of my tests.
|
@justinfagnani, just to provide some context: the problem with functional testing outside of WCT is that the selector Selenium uses is isolated from the browser environment. This means you can't navigate the dom on browsers that don't implement the shadow-dom natively. I tried creating selectors that should work on polyfilled browsers, but Safari and IE refused to cooperate. Update: I took another look at my code, saw some obvious mistakes, and I got a hacked selector working in Safari. I still need to test in IE and Edge, but I think I'll be able to do functional testing through wd.io. |
@indolering, how did this go? Any tips? |
@kito99 Thanks for the ping, I've been meaning to write about this. I think not supporting functional testing has created a blind spot. For one, there are edge-cases which are falling through the cracks. In some instances, I can't get Chrome to click on buttons using Selenium directly. I have no idea why this only occurs in Chrome, it works in other browsers and I can get it working in Chrome using a naive implementation. There are also plenty of utility functions from Finally, had Polymer supported functional testing from the get-go, I don't think we would have deprecated @justinfagnani if Polymer wants to remove the need for frameworks to build modern web apps, well, we need to be able to test those apps functionally. |
@kito99 Here's a function you can use to clean your selectors:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It's time.
Use cases:
The text was updated successfully, but these errors were encountered: