ล่าสุด Chrome ได้รับการอัปเดตเป็นเวอร์ชัน 79 ฉันได้อัปเดต Chromedriver เป็นเวอร์ชันที่เกี่ยวข้องเช่นเดียวกับที่ฉันเคยทำ - ภายในโปรเจ็กต์ Java ของฉัน แต่เมื่อฉันปรับใช้ Zalenium ในคอนเทนเนอร์ภายในบ้าน/seluser/ ก็ยังคงมี Chromedriver-78 ฉันได้ลองลบ Chromedriver เก่านั้นด้วย 'kubectl rm chromedriver' - ไฟล์กำลังถูกลบ แต่ฉันไม่สามารถทำการทดสอบใด ๆ ได้ ฉันได้ลองปรับใช้ Zalenium อีกครั้ง แต่ก็ไม่มีโชค ทุกอย่างมีการประทับเวลาด้วยวันที่ล่าสุด ยกเว้นไฟล์ Chromedriver ไม่เคยมีปัญหานี้มาก่อนแน่นอน ฉันจะอัปเดต Chromedriver เพื่อให้อัปเดตในคอนเทนเนอร์ทั้งหมดได้อย่างไร Zalenium ควบคุม/จัดการการอัปเดตเบราว์เซอร์ Chrome อย่างไร
นี่คือ Chromedriver ที่ติดตั้งคอนเทนเนอร์ทุกครั้งที่ฉันใช้ 'โต้ตอบผ่าน VNC':
นี่คือข้อมูลโค้ดพร้อมวิธีจัดการการเข้าถึง Chromedriver:
public static MutableCapabilities getChromeCapability() {
String chromePath = prop_conf_browsers.getProperty("chromePath");
String chromeDriverPath = prop_conf_browsers.getProperty("chromeDriverPath");
System.out.println(chromeDriverPath);
String chromeProfileDir = prop_conf_browsers.getProperty("chromeProfileDir");
if (chromePath != null && !chromePath.equalsIgnoreCase("default") && !chromePath.equalsIgnoreCase("")) {
System.setProperty("webdriver.chrome.bin", chromePath);
}
if (chromeDriverPath != null && !chromeDriverPath.equalsIgnoreCase("default")
&& !chromeDriverPath.equalsIgnoreCase("")) {
System.setProperty("webdriver.chrome.driver", chromeDriverPath);
}
ข้อมูลสิ่งแวดล้อม:
capabilities: Capabilities {acceptSslCerts: true, browserName: chrome, maxInstances: 1, platform: LINUX, platformName: LINUX, resolution: 1920x1080, screen-resolution: 1920x1080, screenResolution: 1920x1080, seleniumProtocol: WebDriver, server:CONFIG_UUID: 456a4fcc-xxxx-xxxx-xxxx-xxx..., tz: America/Chicago, version: 79.0.3945.79}