Skip to content

Commit da0874e

Browse files
committed
FIX: Comment function instantiante and add todo
1 parent 4cc1998 commit da0874e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

botcity/web/bot.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,14 @@ def check_driver():
265265
self.set_screen_resolution()
266266

267267
def _instantiate_driver(self, driver_class, func_def_options):
268+
"""
269+
It is necessary to create this function because we isolated the instantiation of the driver,
270+
giving options to solve some bugs, mainly in undetected chrome.
271+
"""
268272
try:
269273
driver = driver_class(**self._get_parameters_to_driver())
270274
except WebDriverException as error:
275+
# TODO: 'Undetected Chrome' fix error to upgrade version chrome.
271276
if 'This version of ChromeDriver only supports Chrome version' in error.msg:
272277
self.stop_browser()
273278
try:

0 commit comments

Comments
 (0)