When building the automation framework, I encountered a problem, as shown in the following figure:
According to the meaning of the error, it should be the problem of the __init__ function, and the location should be the HomePage file.
Go and check the file immediately, as shown in the figure:
It turned out to be careless __init__ (self)
after passing in one less parameter driver , you still have to be careful
Solution:
def init (self, driver): just add the parameter driver
Similar Posts:
- [Solved] Fatal error: Call to undefined function json_decode()
- JavaWeb HttpServletRequest (How to Get Line, Header and Body)
- MySQL connection error no suitable driver found [How to Solve]
- [Solved] pycharm+selenium Build Environment Error: no module named ‘selenium’
- Module parse failed: Unexpected character ‘@’ (1:0) You may need an appropriate loader to handle thi
- [Solved] Appium Error: selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Can’t stop process; it’s not currently runni…
- Warning: Each child in an array or iterator should have a unique “key” prop. Check the render method
- Webstorm8.0.3 live edit and Google browser real time automatic loading page without refresh
- How to Solve MySQL Startup error: mysql-bin.index not found (Errcode: 13)
- Vue solves the problem of space and blank line error reporting