错误:Can';找不到配置文件目录。console.warn:SearchSettings:";获取:不存在设置文件,新配置文件?“;使用GeckoDriver Firefox和Selenium
给定隐式等待时间错误:Can';找不到配置文件目录。console.warn:SearchSettings:";获取:不存在设置文件,新配置文件?“;使用GeckoDriver Firefox和Selenium,selenium,firefox,selenium-firefoxdriver,gecko,firefox-profile,Selenium,Firefox,Selenium Firefoxdriver,Gecko,Firefox Profile,给定隐式等待时间 [RemoteTestNG] detected TestNG version 7.3.0 1609754675168 geckodriver INFO Listening on 127.0.0.1:123456 1609754675873 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--m
[RemoteTestNG] detected TestNG version 7.3.0
1609754675168 geckodriver INFO Listening on 127.0.0.1:123456
1609754675873 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\username\\AppData\\Local\\Temp\\rust_mozprofileomKd1k"
Can't find symbol 'eglSwapBuffersWithDamageEXT'.
Can't find symbol 'eglSetDamageRegionKHR'.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
1609754679973 Marionette INFO Listening on port 53339
1609754680041 Marionette WARN TLS certificate errors will be ignored for this session
Jan 04, 2021 3:34:40 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
FirefoxDriver: firefox on WINDOWS (f53578b1-71b7-46a7-85ef-8bfd18ba1bc2)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.poi.openxml4j.util.ZipSecureFile$1 (file:/C:/Users/S%20K%M/.m2/repository/org/apache/poi/poi-ooxml/3.17/poi-ooxml-3.17.jar) to field java.io.FilterInputStream.in
WARNING: Please consider reporting this to the maintainers of org.apache.poi.openxml4j.util.ZipSecureFile$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
JavaScript warning: https://resulticks.team/Scripts/Commonfunction.js, line 147: unreachable code after return statement
JavaScript warning: https://resulticks.team/Scripts/Commonfunction.js, line 147: unreachable code after return statement
1609754783815 Marionette INFO Stopped listening on port 53339
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
log4j:WARN No appenders could be found for logger (freemarker.cache).
log4j:WARN Please initialize the log4j system properly.
同样的代码在chrome中工作
对于firefox,以下代码用于启动:
私有同步线程本地createFirefoxDriver()
谢谢@DebanjanB..我的问题仍然没有解决。。在使用profile运行脚本之后
{ // FF Profile
System.setProperty("webdriver.gecko.driver", System.getProperty("user.dir") + "/driver/geckodriver.exe");
ProfilesIni profile = new ProfilesIni();
FirefoxProfile testprofile = profile.getProfile("Selenium");
FirefoxOptions foptions = new FirefoxOptions();
foptions.setProfile(testprofile);
DesiredCapabilities dc = new DesiredCapabilities();
dc.setCapability("marionatte", false);
foptions.merge(dc);
driver.set(new FirefoxDriver(foptions));
return driver;
}
我的问题是
[RemoteTestNG] detected TestNG version 7.3.0
1609825445685 geckodriver INFO Listening on 127.0.0.1:2634
1609825469323 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\SKMAST~1\\AppData\\Local\\Temp\\rust_mozprofileVF0L8V"
Can't find symbol 'eglSwapBuffersWithDamageEXT'.
Can't find symbol 'eglSetDamageRegionKHR'.
1609825472726 Marionette INFO Listening on port 64263
1609825473031 Marionette WARN TLS certificate errors will be ignored for this session
Jan 05, 2021 11:14:33 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
JavaScript warning: https://weburl/Scripts/Commonfunction.js, line 147: unreachable code after return statement
1609825500246 Marionette INFO Stopped listening on port 64263
JavaScript error: https://weburl/DashBoard/Index, line 2521: ReferenceError: LoadingPanelDisplay is not defined
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
log4j:WARN No appenders could be found for logger (freemarker.cache).
log4j:WARN Please initialize the log4j system properly.
…意味着名为Selenium的服务器不存在
解决方案 在尝试通过名称Selenium访问
firefox配置文件之前,您必须首先按照中提到的步骤创建它
工具书类
您可以在以下内容中找到一些相关的详细讨论:
此错误消息
[RemoteTestNG] detected TestNG version 7.3.0
1609825445685 geckodriver INFO Listening on 127.0.0.1:2634
1609825469323 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\SKMAST~1\\AppData\\Local\\Temp\\rust_mozprofileVF0L8V"
Can't find symbol 'eglSwapBuffersWithDamageEXT'.
Can't find symbol 'eglSetDamageRegionKHR'.
1609825472726 Marionette INFO Listening on port 64263
1609825473031 Marionette WARN TLS certificate errors will be ignored for this session
Jan 05, 2021 11:14:33 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
JavaScript warning: https://weburl/Scripts/Commonfunction.js, line 147: unreachable code after return statement
1609825500246 Marionette INFO Stopped listening on port 64263
JavaScript error: https://weburl/DashBoard/Index, line 2521: ReferenceError: LoadingPanelDisplay is not defined
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
log4j:WARN No appenders could be found for logger (freemarker.cache).
log4j:WARN Please initialize the log4j system properly.
…意味着名为Selenium的服务器不存在
解决方案
在尝试通过名称Selenium访问firefox配置文件之前,您必须首先按照中提到的步骤创建它
工具书类
您可以在以下内容中找到一些相关的详细讨论:
Can't find symbol 'eglSwapBuffersWithDamageEXT'.
Can't find symbol 'eglSetDamageRegionKHR'.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))