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.