Error after running Python script

0

Good Night, I come here to ask for help because although there are similar errors to mine on the internet and here in the stack, none of them are the same, and no solution worked, as I am not aware of all that I have left I came here to ask for help You have.

I would start to make a program to enter the email and get some information, but I could not even get past the home screen ...

This is the whole code:

from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium import webdriver
import time

class d:
    def __init__(self):
        self.__options = webdriver.ChromeOptions()
        self.__MundoNumber = 88
        #self.__options.add_argument("--headless")
        #self.__options.add_argument("--window-size=1920, 10800")
        #self.__options.add_argument('--blink-settings=imagesEnabled=false')
        self.__options.add_argument('disable-infobars')
        args = ["hide_console"]
        self.__driver = webdriver.Chrome(executable_path='.\BotConfig\Configs\chromedriver.exe',
                                         chrome_options=self.__options,
                                         service_args=args)
        self.__driver.get("https://www.bol.uol.com.br/")
        time.sleep(3)

d()

This is the entire error:

C:\Python36632\python.exe C:/Users/Cassiano/Desktop/boltest/Desenvolvimento/03.py
Exception ignored in: <bound method Popen.__del__ of <subprocess.Popen object at 0x03FC6370>>
Traceback (most recent call last):
  File "C:\Python36632\lib\subprocess.py", line 768, in __del__
    self._internal_poll(_deadstate=_maxsize)
  File "C:\Python36632\lib\subprocess.py", line 1035, in _internal_poll
    if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
OSError: [WinError 6] Identificador inválido

Process finished with exit code 0

From now on, I thank the attention of those who are willing to help.

    
asked by anonymous 18.11.2018 / 22:23

0 answers