i want to fill the credit card in check out,but i can not find that
self.driver.switch_to.frame()
self.driver.switch_to.frame("number7fe57559-0283-43ef-90c4-484c5c17c4f1").click```
it show
```File "C:\Users\harry\PycharmProjects\pythonProject\main.py", line 34, in <module>
self.driver.switch_to.frame()
AttributeError: module 'self' has no attribute 'driver'```
https://www.goopi.co/
CodePudding user response:
You can use self only inside of a python class. Try without it.
CodePudding user response:
i am trying to use python auto fill the payment detail,when i try use without self still can not run itenter image description here