Gleiches Problem bei mir (Login funktioniert jetzt, aber Umsätze abrufen nicht mehr).
Ursache: Das Headless-Chrome-Fenster ist zu klein. Es ist jetzt nur noch 800x600 Pixel groß. Bei dieser Auflösung bekommt man die mobile Version der DKB-Seite, auf der einige Buttons nicht sichtbar sind. Die Desktop-Version bekommt man erst ab einer Breite von 960px.
Code: Alles auswählen
[1676227373,787][INFO]: Starting ChromeDriver 110.0.5481.30 (aedb656755c469651f01505a4f15e153fc606a1e-refs/branch-heads/5481@{#191}) on port 2412
[1676227373,788][INFO]: Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
[1676227374,212][INFO]: [1c236fdeae8926e654ffdae54495c9e5] COMMAND InitSession {
"capabilities": {
"firstMatch": [ {
"acceptInsecureCerts": false,
"browserName": "chrome",
"goog:chromeOptions": {
"args": [ "--lang=de-DE", "--disable-geolocation", "--disable-notifications", "--disable-gpu", "--disable-infobars", "--disable-password-generation", "--disable-extensions", "--disable-browser-side-navigation", "--incognito", "--disable-sync", "--enable-features=NetworkServiceInProcess", "--disable-features=NetworkService", "--disable-component-update", "--start-maximized", "--headless=new", "--dns-prefetch-disable", "--no-sandbox", "--disable-setuid-sandbox", "--disable-dev-shm-usage" ],
"extensions": [ ],
"prefs": {
"credentials_enable_service": "false",
"download.default_directory": "/tmp/chromedriver-downloads",
"download.directory_upgrade": "true",
"download.prompt_for_download": "false",
"intl.accept_languages": "de-DE,de",
"password_manager_enabled": "false",
"plugins.always_open_pdf_externally": true,
"plugins.plugins_disabled": [ "Chrome PDF Viewer" ],
"profile.default_content_settings.popups": 0
}
},
"goog:loggingPrefs": {
"performance": "ALL"
},
"proxy": {
"proxyType": "direct"
}
} ]
},
"desiredCapabilities": {
"acceptInsecureCerts": false,
"browserName": "chrome",
"goog:chromeOptions": {
"args": [ "--lang=de-DE", "--disable-geolocation", "--disable-notifications", "--disable-gpu", "--disable-infobars", "--disable-password-generation", "--disable-extensions", "--disable-browser-side-navigation", "--incognito", "--disable-sync", "--enable-features=NetworkServiceInProcess", "--disable-features=NetworkService", "--disable-component-update", "--start-maximized", "--headless=new", "--dns-prefetch-disable", "--no-sandbox", "--disable-setuid-sandbox", "--disable-dev-shm-usage" ],
"extensions": [ ],
"prefs": {
"credentials_enable_service": "false",
"download.default_directory": "/tmp/chromedriver-downloads",
"download.directory_upgrade": "true",
"download.prompt_for_download": "false",
"intl.accept_languages": "de-DE,de",
"password_manager_enabled": "false",
"plugins.always_open_pdf_externally": true,
"plugins.plugins_disabled": [ "Chrome PDF Viewer" ],
"profile.default_content_settings.popups": 0
}
},
"goog:loggingPrefs": {
"performance": "ALL"
},
"proxy": {
"proxyType": "DIRECT"
}
}
}
[1676227374,215][INFO]: Populating Preferences file: {
"alternate_error_pages": {
"enabled": false
},
"autofill": {
"enabled": false
},
"browser": {
"check_default_browser": false
},
"credentials_enable_service": "false",
"distribution": {
"import_bookmarks": false,
"import_history": false,
"import_search_engine": false,
"make_chrome_default_for_user": false,
"skip_first_run_ui": true
},
"dns_prefetching": {
"enabled": false
},
"download": {
"default_directory": "/tmp/chromedriver-downloads",
"directory_upgrade": "true",
"prompt_for_download": "false"
},
"intl": {
"accept_languages": "de-DE,de"
},
"password_manager_enabled": "false",
"plugins": {
"always_open_pdf_externally": true,
"plugins_disabled": [ "Chrome PDF Viewer" ]
},
"profile": {
"content_settings": {
"pattern_pairs": {
"https://*,*": {
"media-stream": {
"audio": "Default",
"video": "Default"
}
}
}
},
"default_content_setting_values": {
"geolocation": 1
},
"default_content_settings": {
"geolocation": 1,
"mouselock": 1,
"notifications": 1,
"popups": 0,
"ppapi-broker": 1
},
"password_manager_enabled": false
},
"safebrowsing": {
"enabled": false
},
"search": {
"suggest_enabled": false
},
"translate": {
"enabled": false
}
}
[1676227374,215][INFO]: Populating Local State file: {
"background_mode": {
"enabled": false
},
"ssl": {
"rev_checking": {
"enabled": false
}
}
}
[1676227374,215][INFO]: Launching chrome: /usr/sbin/chromium --allow-pre-commit-input --disable-background-networking --disable-browser-side-navigation --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=NetworkService --disable-geolocation --disable-gpu --disable-hang-monitor --disable-infobars --disable-notifications --disable-password-generation --disable-popup-blocking --disable-prompt-on-repost --disable-setuid-sandbox --disable-sync --dns-prefetch-disable --enable-automation --enable-blink-features=ShadowDOMV0 --enable-features=NetworkServiceInProcess --enable-logging --headless=new --incognito --lang=de-DE --log-level=0 --no-first-run --no-proxy-server --no-sandbox --no-service-autorun --password-store=basic --remote-debugging-port=0 --start-maximized --test-type=webdriver --use-mock-keychain --user-data-dir=/tmp/.com.google.Chrome.QqvVID data:,
[1676227374,619][INFO]: resolved localhost to ["::1","127.0.0.1"]
[1676227374,624][WARNING]: virtual void DevToolsClientImpl::AddListener(DevToolsEventListener *) subscribing a listener to the already connected DevToolsClient. Connection notification will not arrive.
[1676227374,656][INFO]: [1c236fdeae8926e654ffdae54495c9e5] RESPONSE InitSession {
"capabilities": {
"acceptInsecureCerts": false,
"browserName": "chrome",
"browserVersion": "110.0.5481.77",
"chrome": {
"chromedriverVersion": "110.0.5481.30 (aedb656755c469651f01505a4f15e153fc606a1e-refs/branch-heads/5481@{#191})",
"userDataDir": "/tmp/.com.google.Chrome.QqvVID"
},
"goog:chromeOptions": {
"debuggerAddress": "localhost:33729"
},
"networkConnectionEnabled": false,
"pageLoadStrategy": "normal",
"platformName": "linux",
"proxy": {
"proxyType": "direct"
},
"setWindowRect": true,
"strictFileInteractability": false,
"timeouts": {
"implicit": 0,
"pageLoad": 300000,
"script": 30000
},
"unhandledPromptBehavior": "dismiss and notify",
"webauthn:extension:credBlob": true,
"webauthn:extension:largeBlob": true,
"webauthn:virtualAuthenticators": true
},
"sessionId": "1c236fdeae8926e654ffdae54495c9e5"
}
[1676227376,913][INFO]: [1c236fdeae8926e654ffdae54495c9e5] COMMAND SetTimeouts {
"script": 20000
}
[1676227376,913][INFO]: [1c236fdeae8926e654ffdae54495c9e5] RESPONSE SetTimeouts
[1676227376,931][INFO]: [1c236fdeae8926e654ffdae54495c9e5] COMMAND SetTimeouts {
"pageLoad": 90000
}
[1676227376,932][INFO]: [1c236fdeae8926e654ffdae54495c9e5] RESPONSE SetTimeouts
[1676227376,948][INFO]: [1c236fdeae8926e654ffdae54495c9e5] COMMAND SetWindowRect {
"height": 1080,
"width": 1920
}
[1676227376,948][INFO]: Waiting for pending navigations...
[1676227376,956][INFO]: Done waiting for pending navigations. Status: ok
[1676227377,065][INFO]: Waiting for pending navigations...
[1676227377,066][INFO]: Done waiting for pending navigations. Status: ok
[1676227377,066][INFO]: [1c236fdeae8926e654ffdae54495c9e5] RESPONSE SetWindowRect {
"height": 1080,
"width": 1920,
"x": 10,
"y": 10
}
[1676227377,075][INFO]: [1c236fdeae8926e654ffdae54495c9e5] COMMAND MaximizeWindow {
}
[1676227377,075][INFO]: Waiting for pending navigations...
[1676227377,077][INFO]: Done waiting for pending navigations. Status: ok
[1676227377,188][INFO]: Waiting for pending navigations...
[1676227377,193][INFO]: Done waiting for pending navigations. Status: ok
[1676227377,194][INFO]: [1c236fdeae8926e654ffdae54495c9e5] RESPONSE MaximizeWindow {
"height": 600,
"width": 800,
"x": 0,
"y": 0
}