-
Notifications
You must be signed in to change notification settings - Fork 1
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
Experiment with WPT tests using python handlers and testdriver.js in linux #216
Comments
More notes about the branch (after Alice's commit to show the example of "serializing" the node, to keep all the test logic in the javascript): Apparently, the logic you have to make sure we found the correct "web document" by checking the document attribute If using the name turns out to not be consistent across browsers/platforms, another possibility it to go the active tab route that chromium ax_dump_tree tools use: When running the tests from the CLI I ran into another problem:
Now that I've updated it to look for "chrome" if it finds the family "HeadlessChrome", it crashes on a "getRoleName()" when trying to find the tab within the tree.... I think because accessibility was not enabled? So I added an option to turn on accessibility for chrome: Note: you can also run for debugging: Questions
|
On to experimenting with testdriver.js, for example, used by these aria tests:
Here are some webdriver design documents: |
Notes about getting the PID:
Chrome family browsers: So we can't get the browser URLs from them. I think we are going to have to guess at the name if we want to find the tree to dump. Which might be fine because I'm not sure the PID would have worked on windows anyway but it's a bit more fragile. |
Here I am trying to get the Also, it doesn't seem like these tests belong in the |
Thanks for the investigation and notes; frustrating that we won't be able to get the PID. I guess WebDriver communicates via the port, so they don't need to worry about this. |
TODO: Figure out how to make this cross-platform? |
Possibly relevant: https://docs.google.com/document/d/1OBoZTcC9vDoLTgv_5WUznRFrmwXP0Gprj7V9oOzH9cU/edit This runs a specific back-end for WebTransport tests. |
Check out this little experiment: Igalia/wpt#1
We can run python with WPT server, so we could write tests that test the accessibility tree this way.
Here is the documentation for WPT python handlers: https://web-platform-tests.org/writing-tests/python-handlers/index.html
Here are the request/response objects: https://web-platform-tests.org/tools/wptserve/docs/
Some thoughts:
The text was updated successfully, but these errors were encountered: