Here is the screenshot of our code
Asked
Active
Viewed 460 times
-3

Harsh Tiwari
- 55
- 1
- 6
-
1It's call for constructor of parent class *(`webdriver.Chrome` in your code)*. Docs: [`super()`](https://docs.python.org/3/library/functions.html#super). – Olvin Roght Mar 18 '22 at 13:43
-
1Which part are you asking about? Prior to Python 3, you *had* to specify the two arguments; Python 3 added some infrastructure for supplying the sensible defaults, which is why in Python 3 you virtually always just see `super().__init__()`. – chepner Mar 18 '22 at 13:45
-
Also, do not post screenshots of code; enter it as text in your question. – chepner Mar 18 '22 at 13:46
1 Answers
0
This a constructor for webdriver.Chrome
Please go and see in your webdriver.Chrome class we have constructor called __init__(self)
magic method,
Now whenever you create an object for the Booking Class
it will automatically invoke the child class constructor and parent class constructor
Note: Here super
is a keyword for the invoking parent class constructor
So that's why you're using super(Booking, self).init()

Uday
- 1
- 1