mozilla-services / axe-selenium-python

aXe Selenium Integration python package
https://pypi.python.org/pypi/axe-selenium-python/
Mozilla Public License 2.0
58 stars 50 forks source link

axe.write_results('a11y.json', results) failing #149

Closed mudgil closed 5 years ago

mudgil commented 5 years ago

with open(name, "w", encoding="utf8") as f: TypeError: expected str, bytes or os.PathLike object, not dict

I upgraded to axe_selenium_python version 2.1.2 from the version 2.1.1, and the error still occurs.

kimberlythegeek commented 5 years ago

Hi @mudgil , thanks for catching this! I recently made some changes to the write_results method, and the example in the README is out of date. I'll be opening a pull request shortly to update this.

kimberlythegeek commented 5 years ago

see #151

Once I get a review I'll be able to merge, and upload v2.1.3 to pypi