mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.03k stars 1.51k forks source link

can't find element when run in eks which node don't have GPU #2127

Closed Matrix-Zhang closed 10 months ago

Matrix-Zhang commented 10 months ago

System

Trace-level log

1692110697385 geckodriver INFO Listening on 127.0.0.1:4444 1692110703093 mozrunner::runner INFO Running command: MOZ_CRASHREPORTER="1" MOZ_CRASHREPORTER_NO_REPORT="1" MOZ_CRASHREPORTER_SHUTDOWN="1" MOZ_NO_REMOTE="1" "/opt/firefox/firefox" "--marionette" "--headless" "-no-remote" "-profile" "/tmp/rust_mozprofile3vIYHc" Error: no such element: Id(ContentPlaceHolder1_txtUserName) *** You are running in headless mode. console.warn: services.settings: Ignoring preference override of remote settings server console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment [GFX1-]: glxtest: libpci missing [GFX1-]: glxtest: libGL.so.1 missing [GFX1-]: No GPUs detected via PCI

1692110703283 Marionette INFO Marionette enabled 1692110703337 Marionette INFO Listening on port 46399 Read port: 46399 [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt console.error: ({}) console.error: (new TypeError("linkMap is undefined", "resource://gre/modules/NewTabUtils.sys.mjs", 2003))

is this is normal behavior?

whimboo commented 10 months ago

Can you please provide a full trace level log for geckodriver? You can get that by passing the -vv argument to it. Does it also happen in headful mode?

Matrix-Zhang commented 10 months ago

it caused by anti crawler,

whimboo commented 10 months ago

Thanks for letting us know and good to see it's not a problem on our side.