File tree 2 files changed +15
-6
lines changed
2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
1
import platform
2
2
from typing import Optional
3
- from typing import Optional
4
3
5
4
from pydoll .browser .base import Browser
6
5
from pydoll .browser .managers import BrowserOptionsManager
@@ -16,14 +15,22 @@ class Chrome(Browser):
16
15
"""
17
16
18
17
def __init__ (
19
- self , options : Options | None = None , connection_port : int = 9222
18
+ self ,
19
+ options : Optional [Options ] = None ,
20
+ connection_port : Optional [int ] = None ,
20
21
):
22
+ """
23
+ Initializes the Chrome browser instance.
24
+
25
+ Args:
26
+ options (Options | None): An instance of Options class to configure
27
+ the browser. If None, default options will be used.
28
+ connection_port (int): The port to connect to the browser.
29
+ Defaults to 9222.
30
+ """
21
31
if options is None :
22
32
options = ChromeOptions ()
23
-
24
- # Initialize base class with options and port
25
33
super ().__init__ (options , connection_port )
26
-
27
34
28
35
@staticmethod
29
36
def _get_default_binary_location ():
Original file line number Diff line number Diff line change 9
9
10
10
class Edge (Browser ):
11
11
def __init__ (
12
- self , options : Options | None = None , connection_port : int = 9222
12
+ self ,
13
+ options : Optional [Options ] = None ,
14
+ connection_port : Optional [int ] = None ,
13
15
):
14
16
if options is None :
15
17
options = EdgeOptions ()
You can’t perform that action at this time.
0 commit comments