نسخههای قبلی کروم
برای نسخههای قبلی کروم، در اینجا نسخههایی از ChromeDriver که از آن پشتیبانی میکنند، آورده شده است.
برای اطلاعات بیشتر در مورد انتخاب نسخه مناسب ChromeDriver، به صفحه انتخاب نسخه مراجعه کنید.
درایور کروم ۱۴۸
رفع اشکالات
- دسترسی به DOM : مشکلی که هنگام شبیهسازی کلیک دکمه درون یک iframe که خود درون یک ریشه سایه بسته قرار داشت، رخ میداد، برطرف شد. جاوا اسکریپتی که قبلاً برای یافتن شناسه عنصر فریم مالک استفاده میشد، نمیتوانست ریشههای سایه بسته را سوراخ کند؛ پیادهسازی جدید مستقیماً از فرمت
fXdYeZبرای حل فریم استفاده میکند ( crrev.com/c/7594919 ، اشکال: 469831357 ). - امنیت : پاکسازی آرگومانهای کروم تقویتشده برای جلوگیری از آسیبپذیری بالقوه شامل تزریق آرگومان موقعیتی ( crrev.com/c/7695604 ، اشکال: 494464734 ).
- تست : زمان انقضای
kImplicitWaitبرای تستهایFindElement(s)WhileNavigatingدرcommands_unittestهنگام اجرا تحت AddressSanitizer (ASAN) افزایش یافت. زمان انقضای پیشفرض ۳ ثانیه برای حلقهی تلاش مجدد جهت مصرف تمام خطاهای ساختگی تحت سربار ASAN کافی نبود و باعث ایجاد خطا میشد ( crrev.com/c/7657276 ).
تغییرات داخلی و بازسازیها
- استانداردهای C++ : جایگزین کردن کدهای اضافی
base/functional/callback_forward.hدر فایلهای//chrome.ccو اعمال استفاده ازcallback.hدر مواقعی که callbackها واقعاً استفاده میشوند ( crrev.com/c/7200285 ، اشکال: 40318405 ). انتقالlogging::LoggingSettingsازbase/logging.hبه سربرگ مخصوص خودbase/logging/logging_settings.hبرای بهبود کارایی کامپایل ( crrev.com/c/7173024 ، انتقال مجدد crrev.com/c/7160150 پس از برگرداندن crrev.com/c/7170750 ). رفع خطاهای مختلف IWYU مربوط بهbase/logging.h( crrev.com/c/7730403 ، اشکال: 499476145 ). - استانداردهای C++ : بررسیهای تکراری
count(key)نقشه که پس از جستجو انجام میشدند، با دسترسیهای تکرارکنندهی کارآمدترfind(key)جایگزین شدند ( crrev.com/c/7705392 ، crrev.com/c/7693277 ، اشکال: ۴۵۲۹۵۰۸۱۵ ).ThreadDelegateاز طریق سازندهیThreadتزریق شد تا کپسولهسازی بهبود یابد، و یک گزینهیRestartableبهThreadاضافه شد تا در مواردی که نخها نیاز به راهاندازی مجدد دارند، قابل استفاده باشد ( crrev.com/c/7696887 ، اشکال: ۴۰۸۸۱۶۰۴ ). - ایمنی حافظه :
#pragma allow_unsafe_buffersدر سطح فایل را به ماکروهایUNSAFE_TODO()جزئی در سراسرchrome/تبدیل کرد ( crrev.com/c/7132241 ، اشکال: 409340989 ).IOBuffer->span().first()را بهIOBuffer->first()کوتاه کرد ( crrev.com/c/7159119 ). - وابستگیها : وابستگی
crossbenchحذف شد و اصلاحاتی برای کشف فایلهای باینری ChromeDriver که به صورت محلی در macOS و اندروید ساخته شدهاند، ارائه شد ( crrev.com/c/7673978 ). - تست : پس از رفع اشکالات زیرساخت ساخت و تست ( crrev.com/c/7707960 )، طرح
moduleدرchromedriver_py_testsدوباره فعال شد.
درایور کروم ۱۴۷
رفع اشکالات
- تست : یک تست رگرسیون هرمتیک اضافه شده است تا تأیید کند که
ElementClickبه درستی کلیکها را روی iframe های cross-origin با عناصر overlay، به ویژه در سناریوهای جداسازی سایت، مدیریت میکند. این تضمین میکند که کلیکها به اشتباه به جای overlay قابل مشاهده، به محتوای جاسازی شده هدایت نمیشوند ( crrev.com/c/7261984 ، Bug: 42321834 ، Bug: 42322220 ).
تغییرات داخلی و بازسازیها
- استانداردهای C++ : تغییر نام حالتها و توابع رمزگشایی URL برای رعایت راهنمای سبک Google C++، تغییر
DecodeURLModeبهDecodeUrlModeوDecodeURLEscapeSequences()بهDecodeUrlEscapeSequences()( crrev.com/c/7593238 ). معرفیurl::UrlEscapeDecoderبرای سادهسازی استفاده از رمزگشایی URL در سراسر کدبیس ( crrev.com/c/7610180 ). حذف فایلهایbuild/branding_buildflags.hاضافی از//chrome( crrev.com/c/7595125 ، اشکال: 40318405 ). حذف منطقBUILDFLAG(IS_FUCHSIA)از//chrome، به جز در ChromeDriver ( crrev.com/c/5485913 ، اشکال: 41481724 ). - ایمنی حافظه (spanification) : مشکل نشانگرهای
UNSAFE_TODOدر ابزارهای ChromeDriver برطرف شد و آنها به پیادهسازیهای مبتنی بر span ایمن منتقل شدند ( crrev.com/c/7562602 ، اشکال: 435317390 ).
درایور کروم ۱۴۶
رفع اشکالات
- پایداری : مشکل از کار افتادن ChromeDriver که میتوانست هنگام پردازش یک دستور در صورت بسته شدن همزمان پنجره (مثلاً هنگام انتظار برای تکمیل پیمایش) رخ دهد، برطرف شد. این اصلاحیه، قفلی روی شیء
WebViewایجاد میکند تا از دفع زودهنگام آن جلوگیری کند ( crrev.com/c/7257074 ، اشکال: 468228355 ). - امنیت : یک بررسی هدر
Originبرای اتصالات WebSocket ورودی به سرور ChromeDriver HTTP اضافه شده است که از ربودن احتمالی cross-origin جلوگیری میکند ( crrev.com/c/7538400 ، اشکال: 478783560 ). - در حال آزمایش :
testWebviewDetactedDuringClickبه فیلتر flaky منتقل شد و در تمام اجراها به جای فقط حالت headless از آن صرف نظر شد ( crrev.com/c/7545378 ، اشکال: 481485821 ).
تغییرات داخلی و بازسازیها
- استانداردهای C++ : تغییر نام
base::DictValueوbase::ListValueبه معادلهای مدرن آنها (base::Value::Dictوbase::Value::List) در//chrome( crrev.com/c/7515855 ، crrev.com/c/7514475 ، Bug: 478100525 ). جایگزینی کاربردهایbase::Contains()باstd::ranges::contains()( crrev.com/c/7461026 ، Bug: 470391351 ). انتقالstd::setوstd::unordered_setبهbase::fixed_flat_setدر صورت لزوم ( crrev.com/c/7521991 ، Bug: 473916362 ). فراخوانیهایbase::JSONReader::Readکه گزینههای تجزیه را مشخص نمیکردند، بازسازی شدند ( crrev.com/c/6990988 ، crrev.com/c/6980533 ، اشکال: 446188265 ). فراخوانیهای مختلفbase::JSONWriter::Write()باbase::WriteJson()جایگزین شدند ( crrev.com/c/6969134 ، crrev.com/c/6929101 ، اشکال: 443929217 ). دستور#includeمرتب شد ( crrev.com/c/7366868 ). ارجاعات اشکال در نظرات برای استفاده از شناسههای Buganizer به جای شناسههای Monorail منتقل شدند ( crrev.com/c/7528268 ، اشکال: 321899722 ). برای وضوح بیشتر، نام پرچمهای ساختIS_OZONE_*بهSUPPORTS_OZONE_*تغییر یافت ( crrev.com/c/7535923 ). - ایمنی حافظه (spanification) : استفاده از اشارهگر ناامن با
base::spanدرbase/strings/utf_string_conversion_utils.ccجایگزین شد ( crrev.com/c/7496410 ، اشکال: 439964610 ، اشکال: 40284755 ). استفادههای بیشتر ازbase::Fileدر تستهای//chrome( crrev.com/c/7489592 ، اشکال: 435317390 ) اصلاح شد.memsetبا مقداردهی اولیه تجمیعی در سراسر//chrome( crrev.com/c/6875520 ، اشکال: 435317390 ) جایگزین شد. نشانگرهای#pragma allow_unsafe_buffersباقیمانده بهUNSAFE_TODO( crrev.com/c/7132241 ، اشکال: 409340989 ) تبدیل شدند. - DSE Prewarm : ویژگی
DSEPrewarmدرfieldtrial_testing_config.jsonبرای macOS و Windows فعال شد، همانطور که مشکل مربوط به تست ChromeDriver رفع شد ( crrev.com/c/7489009 ، انتقال مجدد به crrev.com/c/7002185 پس از برگرداندن crrev.com/c/7452344 ). (توجه: این انتقال متعاقباً به دلیل افزایش زمان اجرای تست در ویندوز ( crrev.com/c/7517985 ، اشکال: 478888140 ) دوباره برگردانده شد). - عیبیابی : ردیابی موقعیت مکانی تماسگیرنده به رویدادهای ردیابی
WaitableEventوConditionVariableبرای اشکالزدایی بهتر اضافه شد ( crrev.com/c/7487755 ، اشکال: 476408124 ).
درایور کروم ۱۴۵
ویژگیهای جدید
- تست : چارچوب تست
run_py_tests.pyبهروزرسانی شد تا تستهای رشتهای قطعی با طولهای مختلف (مثلاً ۵۳، ۱۰۱ و ۵۰۱ کاراکتر) را که عناصرinput،textareaوcontenteditableرا هدف قرار میدهند، بپذیرد. این امر پوشش رگرسیون را فراهم میکند و تضمین میکند که هیچ کاراکتری در طول عملیاتهای طولانیsend_keysاز قلم نیفتد ( crrev.com/c/7221410 ، اشکال: ۴۲۸۱۱۶۰۷۸ ). - تست : یک تست خاص برای عنصر
<selectlist>در HTML اضافه شد ( crrev.com/c/7420729 ، اشکال: 342889200 ).
رفع اشکالات
- تصاویر صفحه : مقیاسبندی تصاویر عناصر را به حالت اولیه برگرداند، زیرا مشخصات WebDriver مقیاسبندی را تجویز نمیکند و با سایر توابع تصویر صفحه ( crrev.com/c/7409603 ، اشکال: 42323022 ) ناسازگار بود.
- تست : با بهروزرسانی انتظارات تست ChromeDriver برای مطابقت با مقادیر صحیح اخیر (برای فیلدهای platform، platformVersion، model و mobile) که در DevTools Frontend ( crrev.com/c/7408699 ، باگ: 474179501 ) معرفی شده بود، خطاهای موجود در
testClientHintsDeviceNameIPhoneXوtestClientHintsDeviceNameIPadبرطرف شد.
تغییرات داخلی و بازسازیها
- استانداردهای C++ : کاربردهای مختلف تابع
base::Contains()بهstd::ranges::contains()در//chrome( crrev.com/c/7411011 ، اشکال: 470391351 ) منتقل شد، از جمله اصلاحات لازم در قالببندی ( crrev.com/c/7247217 ). پارامترهای رشتهای بهstd::string_viewتغییر داده شدند تا از تخصیص رشتههای غیرضروری هنگام استفاده ازsubstr()جلوگیری شود ( crrev.com/c/7350716 ).<map>includeهای اضافی از هدرهای//chromeحذف شدند ( crrev.com/c/7225838 ، اشکال: 40318405 ). ترتیب includeها در برخی فایلها اصلاح شد ( crrev.com/c/7366868 ). فراخوانیهای منسوخشدهیBodyAsStringCallbackDeprecatedدر کاربردهایSimpleURLLoaderباBodyAsStringCallbackجایگزین شدند که به جای std::std::unique_ptrstd::optionalاستفاده میکند ( crrev.com/c/7210000 ، اشکال: 40258809 ). - تست : پیکربندی آزمایشی میدانی
InfobarPrioritizationدوباره تنظیم شد، شامل اصلاحاتی برای جلوگیری از خرابی در تستهای مرورگر ChromeDriver هنگام مدیریت infobarهای در حال انتظار که به سلسله مراتب نمایش اضافه نشدهاند ( crrev.com/c/7223590 ، اشکال: 447176374 ). فیلتر کردن کشور و منطقه برای ویژگی Glic که قبلاً به دلیل شکستهای تست نامرتبط برگردانده شده بود ( crrev.com/c/7245749 ، تغییر مکان crrev.com/c/7148759 پس از برگرداندن crrev.com/c/7233767 ، اشکال: 454431875 ).
درایور کروم ۱۴۴
ویژگیهای جدید
- مجوزها : دستور
SetPermissionبهروزرسانی شد تا با آخرین مشخصات W3C مطابقت داشته باشد و علاوه بر مبدأ سطح بالا، از URL فریم فعلی (مبدا تعبیهشده) نیز استفاده کند. این امر مجوزهایی مانندstorage-accessکه به زمینه تعبیهشده متکی هستند، به درستی پیکربندی میکند ( crrev.com/c/7106801 ، relanding crrev.com/c/7093216 پس از برگرداندن crrev.com/c/7104484 ، اشکال: 384959114 ). - تست :
testMetadata(شامل نام تست) به بار داده آپلود تست ChromeDriver اضافه شد تا از تاییدکننده flakiness هنگام استفاده از شناسههای تست ساختاریافته پشتیبانی کند ( crrev.com/c/7124354 ، اشکال: 456432041 ).
رفع اشکالات
- چرخه حیات هدف : اشکالی که باعث میشد ChromeDriver در صورت جدا شدن یک فریم والد در حالی که یک فریم فرزند منتظر پاسخ دستور است، متوقف شود، برطرف شد. ChromeDriver اکنون به طور صریح فریمهای فرزند را به صورت انتقالی جدا میکند، زمانی که یک
WebViewImplوالد در حین پردازش دستور قفل شده و جدا شده علامتگذاری میشود ( crrev.com/c/7080912 ، اشکال: 438436830 ). - مدیریت پنجره : غیرفعال کردن پسزمینه پنجرههای مسدود شده به طور خاص برای جلسات ChromeDriver. این مشکل در WebDriver BiDi را حل میکند که در آن اگر مرورگر به اشتباه یک پنجره را مسدود تشخیص میداد و آن را محدود میکرد، آزمایشها ممکن بود با شکست مواجه شوند ( crrev.com/c/7128058 ، اشکال: 458027819 ).
تغییرات داخلی و بازسازیها
- استانداردهای C++ : حذف بخشهای اضافی
base/functional/callback_forward.hدر فایلهای//chrome.ccو اعمال استفاده ازcallback.hدر هنگام استفاده از callbackها ( crrev.com/c/7200285 ، اشکال: 40318405 ). انتقالlogging::LoggingSettingsازbase/logging.hبه سربرگ مخصوص خودbase/logging/logging_settings.hبرای بهبود کارایی کامپایل ( crrev.com/c/7173024 ، انتقال مجدد crrev.com/c/7160150 پس از برگرداندن crrev.com/c/7170750 ). انتقال کاربردهایbase::HexEncodeبهbase::HexEncodeLowerجدیدتر ( crrev.com/c/7103100 ، اشکال: 456472080 ). - ایمنی حافظه (spanification) : تستهای واحد
WriteToPipeوWriteToPipeNoBestEffortدرPipeBuilderوPipeConnectionبرای پذیرشbase::spanمنتقل شدند و استفاده از بافر ناامن ( crrev.com/c/7090293 ، اشکال: 455758227 ) رفع شد.#pragma allow_unsafe_buffersبه ماکروهایUNSAFE_TODO()جزئی درchrome/تبدیل کرد ( crrev.com/c/7132241 ، اشکال: 409340989 ).IOBuffer->span().first()را بهIOBuffer->first()کوتاه کرد ( crrev.com/c/7159119 ).
درایور کروم ۱۴۳
رفع اشکالات
- پایداری : مشکل از کار افتادن تابع Use-After-Free (UAF) در
OverrideNetworkConditionsبرطرف شد. اشارهگر خام ذخیره شده برای برنامههای بعدی، بین فراخوانیهای پشت سر هم آزاد میشد؛ اکنون به درستی مدیریت میشود ( crrev.com/c/7047422 ، باگ: 42323833 ). - تست : با استفاده از API
WaitForConditionبرای همگامسازی مطمئنتر، تستهای لمسی ناپایدار ChromeDriver اندروید برطرف شد ( crrev.com/c/6978928 ، اشکال: 42321861 ). - DSE Prewarm : ویژگی
Prewarmرا در ChromeDriver به طور پیشفرض از طریق سوئیچ--disable-features=Prewarmغیرفعال کرد و از تداخل صفحات prewarm با اجرای تست و کشف هدف جلوگیری کرد ( crrev.com/c/7007072 ، اشکال: 431928370 ).
تغییرات داخلی و بازسازیها
- استانداردهای C++ : در هدرهای
//chromeکه فقط از اشارهگر هوشمند استفاده میشود،ref_counted.hباscoped_refptr.hجایگزین شده است که باعث بهبود کارایی کامپایل میشود ( crrev.com/c/7080753 ، اشکال: 40245294 ). دسترسیهایGURLبه انواعGet*آنها (مثلاًGetSpec()به جایspec()) منتقل شدهاند تا تخصیص رشته به وضوح نشان داده شود و از جریمههای عملکرد تصادفی جلوگیری شود ( crrev.com/c/7002119 ، اشکال: 448174617 ). - تست : الگوهای بررسی تکراری در
devtools_client_impl_unittest.ccبا استفاده ازADD_FAILURE()حذف شد ( crrev.com/c/6998270 ). یک تست رگرسیون برایcrbug.com/413382905اضافه شد ( crrev.com/c/6879417 ).
درایور کروم ۱۴۲
ویژگیهای جدید
- تشخیص : وضعیت
TERMINATION_STATUS_EVICTED_FOR_MEMORYاضافه شد تا فرآیندهایی که به صورت پیشگیرانه توسط مرورگر خاتمه یافتهاند (برای صرفهجویی در حافظه) از فرآیندهایی که به دلیل خطاهای کمبود حافظه (OOM) از کار افتادهاند، متمایز شوند. در حال حاضر، این وضعیت مشابه خرابی OOM (نمایش یک تب غمگین) رفتار میکند، اما زمینه را برای مدیریت متمایز در آینده فراهم میکند ( crrev.com/c/6991933 ، اشکال: 394092280 ). - عیبیابی : قابلیت
goog:processIDبه پاسخ WebDriver اضافه شد که شناسه فرآیند اصلی مرورگر دسکتاپ را برمیگرداند. این امر ChromeDriver را باmoz:processIDفایرفاکس همسو میکند و به آزمایش APIهای دسترسیپذیری پلتفرم کمک میکند ( crrev.com/c/5825307 ، اشکال: 438884256 ). - تست : پشتیبانی از آپلودهای ساختاریافتهی شناسهی تست به ResultSink برای تستهای یکپارچهسازی پایتون ChromeDriver اضافه شد ( crrev.com/c/6916708 ، اشکال: 418015486 ).
رفع اشکالات
- تشخیص : رفتار ChromeDriver هنگام خروج عادی از کروم اصلاح شد تا دیگر پیام خطای عمومی و گیجکنندهای مربوط به استفاده از
user-data-dirمنتشر نکند. اکنون به صراحت اعلام میکند که نمونه خاتمه یافته است و کاربر را به گزارشهای مفصل مربوط به خطای خاص ایجاد شده توسط کروم هدایت میکند ( crrev.com/c/6977507 ، اشکال: 42323434 ). - مقداردهی اولیه : ساختار مقداردهی اولیه ChromeDriver بهروزرسانی شد تا با تغییرات Selenium WebDriver نسخه ۴.۱۶.۰ سازگار بماند ( crrev.com/c/6630600 ).
- اندروید : مشکل
CheckAppInstalledدر نسخههای قدیمی اندروید (قدیمیتر از اندروید ۱۱) که در آن فلگ--user curتوسط مدیر بسته پشتیبانی نمیشود، برطرف شد ( crrev.com/c/6785949 ، باگ: 433885051 ). - در حال آزمایش : اشکالی که باعث میشد
IgnoreDuplicateNavsبه اشتباه سوئیچهای پیشفرض قابلیت در ChromeDriver را نادیده بگیرد، برطرف شد. این ویژگی برای جلسات ChromeDriver غیرفعال شده است و منطقSwitches::SetFromSwitchesاصلاح شده است ( crrev.com/c/6949166 ، اشکال: 445332809 ).
تغییرات داخلی و بازسازیها
- استانداردهای C++ : چندین فراخوانی منسوخشدهی
base::JSONWriter::Write()باbase::WriteJson()جایگزین شد و رفتار بازگرداندن یک رشتهی خالی در صورت عدم بررسی مقدار بازگشتی حفظ شد ( crrev.com/c/6969134 ، crrev.com/c/6929101 ، اشکال: 443929217 ). الزامی بودن انتخاب صریح برای گزینههای تجزیهی JSON ناسازگار (مثلاً اجازه دادن به نظرات) درbase::JSONReader::Readوbase::JSONReader::ReadAndReturnValueWithError( crrev.com/c/6990988 ، crrev.com/c/6980533 ، اشکال: 446188265 ). تابع#pragma allow_unsafe_buffersدر سطح فایل، پس از تلاشهای دستی برای spanification ( crrev.com/c/6778035 ، باگ: ۴۰۹۳۴۰۹۸۹ ) حذف شد. موارد استفاده از ماکرویLazyInstanceدارای نشتی ( crrev.com/c/6781377 ، باگ: ۴۳۲۸۱۵۲۸۳ ) اصلاح شد. هدرهایhttp_response_headers.hاز طریق IWYU ( crrev.com/c/6894196 ، باگ: ۴۰۲۱۶۳۲۶ ) از دست رفتند. - ایمنی حافظه (spanification) : به طور خودکار اشارهگرهای متعددی را در سراسر دایرکتوری
chrome/برای نسخههای لینوکس spanified کرد، و در مواردی که پارامترهای اندازه اضافی تلقی میشدند،CHECKهای غیرمهلک اضافه کرد ( crrev.com/c/6734592 ، اشکال: 431824299 ). - در حال آزمایش :
testDoesntCrashOnClosingBrowserFromAsyncScriptدر macOS موقتاً غیرفعال شد ( crrev.com/c/6995358 ، اشکال: 446461733 ). غلطهای املایی در نام متدهای آزمایشی شامل "Certificates" برطرف شد ( crrev.com/c/6950683 ). فایلهای GN//chrome/testبه صورت خودکار قالببندی شدند ( crrev.com/c/6789277 ، اشکال: 40760278 ). - FedCM : یک تابع
ShouldShowAccountsPassiveDialogبهIdentityDialogControllerمعرفی شد تا به صورت همزمان بررسی کند که آیا یک کادر محاورهای حسابها باید نمایش داده شود یا خیر، و مشکل از کار افتادن مربوط به بررسیهای ناهمزمان و ابزار DevTools ( crrev.com/c/6780413 ، اشکال: 425801332 ) برطرف شد. - DSE Prewarm : قابلیت
Page.setPrewarmingAllowedبه پروتکل DevTools اضافه شد تا به عنوان یک راه حل کوتاه مدت برای فعال یا غیرفعال کردن دستی prewarm، تستهای مرتبط را اصلاح کند تا از تعامل صحیح آنها با صفحه اصلی اطمینان حاصل شود ( crrev.com/c/6847287 ، اشکال: 431928370 ). ویژگیDSEPrewarmدرfieldtrial_testing_config.jsonبرای macOS و Windows پس از حل مشکل Flakiness فعال شد ( crrev.com/c/6951835 ، اشکال: 431928370 ، اشکال: 435621391 ). (توجه: دستور CDP و فعالسازی آزمایش میدانی هر دو به دلیل تغییرات مخرب برای کاربران WebDriver که اهداف غیرمنتظره را در معرض نمایش قرار میدادند و ایجاد سایر مشکلات پاییندستی به ترتیب ( crrev.com/c/6966133 ، crrev.com/c/6966161 ، اشکال: 445883308 ) بازگردانده شدند.) - پاکسازی : ارجاعات باقیمانده به پروژه
WebLayerپشتیبانینشده در کد اندروید حذف شد ( crrev.com/c/6792520 ، اشکال: 40272607 ).
درایور کروم ۱۴۱
ویژگیهای جدید
- تست : پشتیبانی از پرچم
--enable-per-test-tracingبهrun_wpt_tests.pyاضافه شده است که با رفتارrun_web_tests.pyمطابقت دارد. این رویداد ردیابی JSON را از یک بافر داخلی ChromeDriver بازیابی کرده و آنها را در دایرکتوری نتایج تست ذخیره میکند ( crrev.com/c/6820247 ، اشکال: 434017035 ).
رفع اشکالات
- عیبیابی : از چاپ ردیابی پشته داخلی ChromeDriver هنگام بازگشت خطای
kTabCrashedجلوگیری شد. این کار از سردرگمی کاربران جلوگیری میکند، در حالی که همچنان اطمینان حاصل میشود که ردیابی پشته خرابی رندرکننده در گزارشها باقی میماند ( crrev.com/c/6841669 ، اشکال: 395131239 ).
تغییرات داخلی و بازسازیها
- استانداردهای C++ : فراخوانیهای
memsetکه به طور بالقوه ناامن بودند، با مقداردهی اولیه استاندارد C++ (instance = {}) درchrome/جایگزین شدند تا از دور زدن سازندهها جلوگیری شود و ایمنی حافظه تضمین شود ( crrev.com/c/6875520 ، اشکال: 435317390 ). دستورالعملهای#includeاز دست رفته برای//base/time/time.hاز طریق IWYU اضافه شد ( crrev.com/c/6832689 ، اشکال: 40216326 ). توابع بافر ناامن اجباری بازنویسی شدند ( crrev.com/c/6828538 ). - تست : یک تست رگرسیون برای
crbug.com/413382905( crrev.com/c/6879417 ) اضافه شد. - انتقالهای نما : رفع مشکل بهروزرسانی کار انجام شده قبل از حل شدن وعده نهایی، پس از آنکه یک بازگشت احتمالی قبلی مرتبط با شکستهای آزمایش ChromeDriver نادرست از آب درآمد ( crrev.com/c/6846765 ، انتقال مجدد crrev.com/c/6806850 پس از بازگشت crrev.com/c/6808537 )، دوباره به زمین بازگردانده شد.
درایور کروم ۱۴۰
رفع اشکالات
- انتخاب هدف : مشکلی که باعث میشد پنجره DevTools هنگام اجرای کروم با
--auto-open-devtools-for-tabsبرای انتخاب به عنوان پنجره اصلی با صفحه اصلی رقابت کند، برطرف شد. ChromeDriver اکنون صراحتاً اهداف پیشوندdevtools://را در هنگام تعیین پنجره اصلی حذف میکند ( crrev.com/c/6769505 ، اشکال: 427908560 ). - انتخاب هدف : با نادیده گرفتن هرگونه برش
overflow:hiddenاعمال شده توسط اجداد، از محاسبه نادرست نقطه مرکزی عناصر در نمای ChromeDriver جلوگیری شد. این امر محاسبه را با مشخصات WebDriver و سایر سناریوهایPerformActions( crrev.com/c/6735230 ، اشکال: 42322257 ) همسو میکند. - اندروید : مشکل تابع
CheckAppInstalledدر نسخههای قدیمیتر اندروید (قبل از اندروید ۱۱) که در آن از فلگ--user curبرای مدیریت بسته پشتیبانی نمیشد، برطرف شد ( crrev.com/c/6785949 ، باگ: ۴۳۳۸۸۵۰۵۱ ). - تست : مشکل پوسته پوسته شدن در مجموعه تست
chromedriver_py_testsکه ناشی از ویژگیDSEPrewarmبود، برطرف شد. ChromeDriver اکنون در هنگام اتصال کلاینت CDP، تریگر prewarm را غیرفعال میکند تا از شمارش غیرمنتظره هدف در طول تستها جلوگیری شود ( crrev.com/c/6764274 ، اشکال: 423465927 ، اشکال: 431928370 ). - تست : اضافه شدن تابع
ShouldShowAccountsPassiveDialogبهIdentityDialogController(بخشی از FedCM) که باعث رگرسیون میشد ( crrev.com/c/6780413 ، اشکال: 425801332 ) را برگرداندیم.
تغییرات داخلی و بازسازیها
- استانداردهای C++ : اضافه شدن
std::vector#includeاز طریق Include What You Use (IWYU) ( crrev.com/c/6652818 ، باگ: ۴۰۲۱۶۳۲۶ ). حذف include های اضافیgurl.h( crrev.com/c/6578272 ) و<queue>( crrev.com/c/6570349 ، باگ: ۴۰۳۱۸۴۰۵ ) در هدرهای//chrome//chrome. رفع مشکلNOTIMPLEMENTED()درIWYU( crrev.com/c/6655452 ، باگ: ۴۱۴۹۳۶۴۱ ). - ایمنی حافظه (spanification) : ابزار خودکار spanification اشارهگر را در سراسر نسخههای لینوکس اجرا کرد و کد را برای استفاده از spanهایی که اندازه آنها مشخص است، بهروزرسانی کرد ( crrev.com/c/6734592 ، اشکال: 431824299 ). pragma
#pragma allow_unsafe_buffersدر سطح فایل را پس از تکمیل مهاجرتchrome/حذف کرد ( crrev.com/c/6778035 ، اشکال: 409340989 ). اهدافchrome/testرا از هشدار-Wexit-time-destructorsحذف کرد تا امکان فعالسازی سراسری هشدار فراهم شود ( crrev.com/c/6736532 ، اشکال: 40031409 ، اشکال: 430332953 ). کاربردهایLazyInstanceدارای نشتی در//chromeرا پاک کرد ( crrev.com/c/6781377 ، اشکال: 432815283 ). - پاکسازی : پرچم CLI مربوط
--debug-bidi-mapperحذف شد، زیرا انتقال به اجرای BiDi Mapper در یک هدف پنهان کامل و پایدار است ( crrev.com/c/6672011 ، اشکال: 408992812 ). - پاکسازی : ارجاعات باقیمانده به پروژه
WebLayerپشتیبانینشده حذف شد ( crrev.com/c/6792520 ، اشکال: ۴۰۲۷۲۶۰۷ ). فایلهای GN//chrome/testبهطور خودکار قالببندی شدند تا ارجاعات هدف کوتاهتر شوند ( crrev.com/c/6789277 ، اشکال: ۴۰۷۶۰۲۷۸ ). - تست : یک تست پذیرش برای تأیید رفع مشکل
PerformActionspointerMoveاضافه شد ( crrev.com/c/6648646 ، اشکال: 42322257 ). - در حال آزمایش : بخش ایجاد درایور موازی در تست
testBrowserWithUsedUserDataDirرا از حالت کامنت خارج کردم (و یک اشکال ردیابی ثبت کردم) زیرا باعث بروز خطاهایی در macOS مربوط به قفل اختصاصی هنگام استفاده ازchrome-headless-shellمیشد ( crrev.com/c/6470455 ، اشکال: 411407649 ، اشکال: 380903149 ). - تست : بستهبندی
run_cwt_chromedriver.pyبرای iOS بهروزرسانی شد تا از آرگومان--platform-typeپشتیبانی کند ( crrev.com/c/6771517 ، اشکال: 427548014 ). - مالکان :
nvitkovاز فایلchrome/test/chromedriver/OWNERS( crrev.com/c/6771413 ) حذف شد.
درایور کروم ۱۳۹
رفع اشکالات
- ساختار مقداردهی اولیه : ساختار مقداردهی اولیه ChromeDriver بهروزرسانی شد تا با بهروزرسانیهای Selenium WebDriver نسخه ۴.۱۶.۰ سازگار بماند ( crrev.com/c/6630600 ).
- تجزیه آرگومان : چندین آرگومان
--js-flagsرا با هم ترکیب میکند (مشابه نحوه مدیریت--enable-features) به جای اینکه فقط آخرین آرگومان ارائه شده را دریافت کند. این کار قابلیت استفاده را هنگام ارسال پرچمهای پیچیده V8 بهبود میبخشد ( crrev.com/c/6612042 ، اشکال: 421941798 ).
تغییرات داخلی و بازسازیها
- ایمنی حافظه (spanification) : کاربردهای منسوخشدهی
base::MakeStringPiece()باstd::string_viewدر//chrome/test( crrev.com/c/6628089 ، باگ: 422940464 ) جایگزین شد. شاملbase/strings/string_view_util.hکه در آنbase::as_string_view()استفاده میشود، و برای مهاجرتهای فضای نام آینده آماده میشود ( crrev.com/c/6625024 ، باگ: 423048781 ). - استانداردهای C++ : بهبود انطباق با Include What You Use (IWYU) در
//chromeبا گنجاندن صریح<vector>( crrev.com/c/6652818 )،base/notimplemented.h(و حذفbase/notreached.hدر مواردی که استفاده نشده است) ( crrev.com/c/6655452 ، اشکال: 41493641 )،base/strings/string_util.h( crrev.com/c/6607646 )،base/strings/string_number_conversions.h( crrev.com/c/6593576 ) و حذف include های اضافیbase/debug/stack_trace.h( crrev.com/c/6622838 ). - تست : گزینه
--driver-loggingبهrun_wpt_tests.pyمنتقل شد، که به اسکریپت اجازه میدهد ChromeDriver وstderrمرورگر را حتی در سطوح پایینتر ( crrev.com/c/6608138 ، اشکال: 421262910 ) نیز استخراج کند. - تست : تستهای ادغام ChromeDriver که قبلاً غیرفعال بودند، دوباره فعال شدند: تستهای اسکرینشات (
testTakeElementScreenshot*) ( crrev.com/c/6598797 ، اشکال: 42321815 )، بسته شدن پنجره از طریق تستهای جاوا اسکریپت (testCloseWindowUsingJavascript*) ( crrev.com/c/6598978 ، اشکال: 42321150 ) و تستهای اندازه پنجرهheadless-shell( crrev.com/c/6621336 ، اشکال: 42323661 ). - تست : مشکل
run_wpt_tests.py --stableبرای شناسایی و استفاده صحیح از نسخه پایدار فعلی Clank (اندروید) با تجزیه APK برطرف شد، و اسکریپت بهروزرسانی شد تا نسخه ChromeDriver مربوطه را از Chrome برای تست (CfT) در یک دایرکتوری موقت دانلود کند، به جای اینکه صفحه پرداخت را آلوده کند ( crrev.com/c/6635694 ، اشکال: 402548382 ). - ساخت زیرساخت : با غیرفعال کردن اهداف
android_resources()از داشتن مانیفستها، وابستگی ساخت غیرضروری بهwrite_build_config.pyحذف شد، زیرا ادغام مانیفست و نامگذاری بستههای R.java اکنون توسط ویژگیهای تخصصی ( crrev.com/c/6625266 ، اشکال: 413331591 ) مدیریت میشوند. - FedCM : رفع مشکل پرچم ویژگی پیکربندی Finch مربوط به FedCM ( crrev.com/c/6614137 ، اشکال: 421959289 ).
درایور کروم ۱۳۸
ویژگیهای جدید
- مدیریت ویژگیهای نمایش : رفتار ChromeDriver برای بخشهای viewport بهروزرسانی شد تا با قطعنامه اخیر گروه کاری CSS مطابقت داشته باشد: اکنون وقتی یک دستگاه تاشو به صورت صاف استفاده میشود، یا برای همه دستگاههای غیر تاشو، به طور مداوم آرایهای با یک بخش واحد برمیگرداند. این با رفتار پرسوجوی رسانهای مطابقت دارد و خطرات انگشتنگاری را کاهش میدهد ( crrev.com/c/6469455 ، اشکال: 414430842 ).
- تنظیمات برگزیده و وضعیت محلی (اندروید) : پشتیبانی از قابلیتهای
localStateوprefsهنگام اجرای ChromeDriver در دستگاههای اندروید اضافه شده است. این قابلیت به ADB متکی است و به یک پرچمuser-data-dirسفارشی نیاز دارد؛ در حال حاضر، وضعیت را با قالبهای پیشفرض مقداردهی اولیه میکند ( crrev.com/c/6397155 ، اشکال: 406427226 ).
رفع اشکالات
- پایداری : مشکل از کار افتادن ChromeDriver در macOS که هنگام رد کردن دیالوگ First Run Experience (FRE) توسط کاربر از طریق دکمه "ادامه" رخ میداد، برطرف شد. این از کار افتادن ناشی از نادیده گرفتن وضعیت خطای
kTargetDetachedو تلاش برای دسترسی به یکWebViewنامعتبر بود ( crrev.com/c/6538867 ، اشکال: 410599467 ). - تست عملکرد : مشکل اجرای تست
crossbenchدر رباتهای ویندوز pinpoint که به اشتباه سعی میکردند فایل باینری ChromeDriver را با استفاده از مسیر منسوخ../Release_x64پیدا کنند، هنگام ارسال--browser=release_x64، برطرف شد و باعث میشد به جای استفاده از نسخه محلی ( crrev.com/c/6502134 )، به دانلود فایل باینری قدیمیتر بازگردد.
تغییرات داخلی و بازسازیها
- ایمنی حافظه (spanification) : اشارهگرهای بررسی نشده در
WebSocket::OnReadDuringHandshakeوWebSocket::OnReadDuringOpenباbase::spanجایگزین شدند و به هشدارهایunsafe-buffer-usage( باگ : 354307328 ) رسیدگی شد. pragma#pragma allow_unsafe_buffersغیر ضروری درchrome/test/chromedriverکه پس از مهاجرتهای دیگر ( باگ : 414858406 ) دیگر نیازی به آنها نبود، حذف شدند. - استانداردهای C++ : دستورات اضافی
#include "url/gurl.h"و#include <queue>درchrome/headers حذف شدند و در صورت لزوم، اعلانهای رو به جلو برای بهبود زمان کامپایل اضافه شدند ( crrev.com/c/6578272 ، crrev.com/c/6570349 ، اشکال: 40318405 ). - مهاجرت API :
RSAPrivateKeyبهcrypto::PrivateKeyوSHA256HashStringبهcrypto::Sha256منتقل شد، و یک مورد مدیریت خطای منسوخ شده برطرف شد، زیرا APIهای تولید کلید جدید مصون از خطا هستند ( crrev.com/c/6490294 ، باگ: 372283556 ). - تست : ویژگی
OwnContributionEstimateبه دستورات اتوماسیون API مربوط به Compute Pressure (هم پیادهسازیهای CDP و هم testdriver) اضافه شد ( crrev.com/c/6373001 ، اشکال: 402033762 ). - تست : تستهای یکپارچهسازی اصلاحشده،
ClearDisplayFeaturesرا روی رباتهای یکپارچهسازی مداوم (CFT) با سادهسازی دستورات تأیید میکنند تا بررسی کنند که بخشهای نمای صفحه به اندازه پیشفرض نمای صفحه پاک شدهاند ( crrev.com/c/6535067 ، اشکال: 417195296 ). - تست : افزایش زمانهای وقفه برای تستهای Protected Audience WebDriver برای رفع مشکل عدم کارایی در رباتهای CI کندتر ( crrev.com/c/6494277 ).
درایور کروم ۱۳۷
ویژگیهای جدید
- مدیریت ویژگیهای نمایش : دستورات ChromeDriver برای شبیهسازی و پاکسازی ویژگیهای نمایش اضافه شده است و الزامات اتوماسیون برای APIهای Viewport Segments (CSS و JS) پیادهسازی شده است. این به توسعهدهندگان اجازه میدهد تا سناریوهای تا شدن یا لولا را به صورت برنامهنویسی روی دستگاههای دو صفحهای یا تاشو آزمایش کنند ( crrev.com/c/6368674 ، اشکال: 40137084 ).
- BiDi : درایور کروم بهروزرسانی شد تا نقشهبردار BiDi بهطور پیشفرض در یک هدف پنهان اجرا شود. این کار مانع از تداخل صفحه
data:,نقشهبردار با اجرای تست و قابلیت مشاهده میشود. برای اشکالزدایی نقشهبردار، کلاینتها میتوانند پرچم--debug-bidi-mapperرا برای اجرای آن در یک تب قابل مشاهده ارسال کنند ( crrev.com/c/6441064 ، انتقال مجدد crrev.com/c/6433672 پس از برگرداندن crrev.com/c/6439633 ، اشکال: 402339952 ).
رفع اشکالات
- BiDi : در صورت از دست دادن ردیابی اهداف ایجاد شده توسط سایر جلسات CDP یا BiDi، از بسته شدن نادرست کل جلسه مرورگر توسط ChromeDriver هنگام پردازش دستورات BiDi (مانند
browsingContext.close) جلوگیری شد. اکنون قبل از تصمیمگیری برای خاتمه دادن به مرورگر، صراحتاً تبهای سطح بالا را همگامسازی میکند ( crrev.com/c/6440293 ، اشکال: 42323838 ). - BiDi : با مشخصات BiDi وبدرایور بالادستی همسو شده است، به این صورت که ChromeDriver قابلیت
goog:channelدر صورت ارسال به عنوان یک رشته خالی حذف میکند و با آن به طور یکسان مانند یک کانال از دست رفته رفتار میکند ( crrev.com/c/6438865 ، اشکال: 409282307 ). - ورودی : با بهروزرسانی ChromeDriver برای پشتیبانی از مختصات x و y کسری (ممیز شناور) در دستورات حرکت اشارهگر، مشکلی که باعث میشد رویدادهای لمس و اشارهگر با شکست مواجه شوند یا به درستی عمل نکنند، برطرف شد ( crrev.com/c/6440834 ، اشکال: 409684333 ).
- انتخاب هدف : از ورود آیفریمهای PDF خارج از فرآیند (OOPIF) که در نماهای مهمان باز میشوند (هنگامی که ویژگی
PdfOopifغیرفعال است) به فهرست اهداف سطح بالا جلوگیری شد. منطق فیلترینگ گسترش یافت تا این اهداف با پیشوندchrome-extension://( crrev.com/c/6383500 ، اشکال: 396611138 ) به درستی حذف شوند.
تغییرات داخلی و بازسازیها
- استانداردهای C++ : تغییر به استفاده از
std::string_viewبرای نام فایلها درLogMessageو ردیابی رویدادها، حل مشکلات مربوط به مدیریت رشتههای با پایانه تهی که باعث بازگشتهای قبلی میشد ( crrev.com/c/6430129 ، انتقال به crrev.com/c/6395097 ، انتقال به crrev.com/c/6387020 پس از بازگشت به crrev.com/c/6383699 ). - استانداردهای C++ : فراخوانیهای Modernized
Environment::GetVarدر//chromeبرای استفاده از API بازگشتیstd::optionalبه جای out-parameters ( crrev.com/c/6417343 ، اشکال: 400758498 ). - استانداردهای C++ : کمککنندههای handle مخصوص ویندوز از
win_util.hبه یک هدر اختصاصیwindows_handle_util.hبازسازی شدند تا از مشکلات وابستگی دایرهای جلوگیری شود ( crrev.com/c/6418805 ، اشکال: 406023316 ). - تست : یک کنترلکننده دامنه
Browserمخصوص اندروید اضافه شد و API مربوط بهBrowser.getWindowForTargetبرای پشتیبانی از تستهای ایجاد پنجره اندروید پیادهسازی شد ( crrev.com/c/6427605 ، اشکال: 404932444 ). - تست : مشکل پوسته پوسته شدن تستهای macOS که به دلیل طولانی شدن زمان راهاندازی افزونهها ایجاد میشد، برطرف شد ( crrev.com/c/6423229 ، اشکال: 407804497 ).
- در حال آزمایش : ایجاد پوشه موازی
user-data-dirدرtestBrowserWithUsedUserDataDirهنگام اجرا در مقابلchrome-headless-shellموقتاً غیرفعال شد، زیرا با قفل اختصاصی در macOS تداخل داشت ( crrev.com/c/6470455 ، اشکال: 411407649 ، اشکال: 380903149 ). - افزونهها : آزمایشهای کروم بهروزرسانی شدهاند تا در صورت فعال بودن نسخه آزمایشی میدانی
ExtensionManifestV2Unsupportedبا موفقیت انجام شوند. این یک گام اساسی است، اگرچه خود نسخه آزمایشی در انتظار بهروزرسانی در مخازن دیگر ( crrev.com/c/6415997 ، اشکال: 367395349 ) غیرفعال باقی میماند. (توجه: تلاش قبلی برای فعال کردن این نسخه آزمایشی از طریق پیکربندی، با برگرداندن crrev.com/c/6397497 به crrev.com/c/6358257، برگردانده شد). - وابستگیها : وابستگی
catapultبه صورت دستی تنظیم و فایلهایpydepsمرتبط و ارجاعاتdevil_utilبهروزرسانی شدند ( crrev.com/c/6480814 ، crrev.com/c/6466865 ، انتقال مجدد crrev.com/c/6406098 پس از برگرداندن crrev.com/c/6448910 ، اشکال: 397459590 ).
درایور کروم ۱۳۶
ویژگیهای جدید
- Browser lifecycle : Added a Chrome-specific capability
quitGracefullythat forces ChromeDriver to attempt to stop the browser gracefully (usingBrowser.closeor SIGTERM) instead of the defaultSIGKILL. This gives debuggers likerrtime to dump their recordings before the process terminates ( crrev.com/c/6322538 , relanding crrev.com/c/6269180 after a brief revert crrev.com/c/6320536 , Bug: 339644807 ). - Testing : Plumbed the
run_wpt_tests.py --wrapperargument by generating a temporary wrapper script that prefixes the browser binary with the debugger (eg,rr) and its arguments. This works around ChromeDriver's inability to substitute the binary directly whenargsare processed as switches ( crrev.com/c/6271108 , Bug: 339644807 ). - Testing : Enabled translation by pref in
TranslateEnabledTestto support a testing environment where ChromeDriver manages the browser process and bypasses the new--remote-debugging-portrestriction when--user-data-diris implicit ( crrev.com/c/6354089 , Bug: 327797500 ). - DevTools : Added support for the DevTools multi-instance feature to open a new tab in another window on Android ( crrev.com/c/6352169 , Bug: 401269942 , Bug: 382183406 ).
رفع اشکالات
- Target selection : Fixed an issue where PDF out-of-process iframes (OOPIFs) opened in guest views were not being filtered out from the top-level targets list when the
PdfOopiffeature was disabled. The filter was expanded to include thechrome-extensionprefix, which resolves the bug and includes coverage for MV3 Chrome extensions creating tabs ( crrev.com/c/6383500 , Bug: 396611138 ). - Target selection : Fixed a regression that caused the
getWindowHandles()command to fail with aconnection refusedstatus when targeting packaged Chrome Apps ( crrev.com/c/6317161 , Bug: 396622746 ).
Internal changes and refactors
- C++ standards : Relanded the change that uses
std::string_viewfor file names inLogMessageand trace events, improving compatibility with Rust logging structures that don't guarantee null-terminated strings ( crrev.com/c/6387020 , relanding crrev.com/c/5765705 after revert crrev.com/c/6383699 and another revert crrev.com/c/6395097 ). - C++ standards : Replaced redundant
base::Value::Clone()calls to optimize performance ( crrev.com/c/6361818 ). Suppressed additional-Wunsafe-buffers-in-libc-callswarnings in Windows-specific files to clean up the build output ( crrev.com/c/6369920 , Bug: 390223051 ). - Extensions : Reverted the addition of the
fieldtrial_testing_config.jsonentry for theExtensionManifestV2Unsupportedphase due to an issue ( crrev.com/c/6397497 , reverting crrev.com/c/6358257 , Bug: 367395349 , Bug: 406523920 ). - Documentation : Improved Android-specific ChromeDriver testing documentation ( crrev.com/c/6354040 ).
درایور کروم ۱۳۵
ویژگیهای جدید
- BiDi : Updated the BiDi Mapper to inherit ChromeDriver permissions when
--enable-unsafe-extension-debuggingis specified. This enables WebDriver BiDi clients to effectively test extensions that require permissions typically held by the WebDriver client ( crrev.com/c/6288627 , Bug: 393500934 ).
رفع اشکالات
- Testing : Re-enabled and updated expectations for several WDSpec tests that were previously marked as failing. This restores spec conformance coverage for passing tests ( crrev.com/c/6310420 ).
Internal changes and refactors
- Cleanup : Removed all traces of Lacros (including
IS_CHROMEOS_LACROSand related test data) fromchrome/test/since Lacros is being deprecated, standardizing onIS_CHROMEOS( crrev.com/c/6284446 , Bug: 354842935 ). - Cleanup : Removed all traces of the
md5sumutility following its replacement withdevil_util, cleaning up legacy build dependencies ( crrev.com/c/6309939 , Bug: 397452007 ). - C++ standards : Removed the
chrome::namespace fromResultCodeandIsNormalResultCode(), moving them to the global namespace, and removed obsolete ChromeOS startup imports ( crrev.com/c/6196899 , Bug: 41050580 ). - Memory safety : Simplified a
std::lower_boundcall in ChromeDriver by leveragingstd::ranges::lower_bound( crrev.com/c/6223172 , Bug: 392116519 ). Suppressedunsafe_libc_callwarnings for initially identified non-compliant files in preparation for future enforcement ( crrev.com/c/6187925 , Bug: 390223051 ). Marked the return value ofstd::to_arrayasconstexprto improve safety and compile-time evaluation ( crrev.com/c/6298909 ).
ChromeDriver 134
ویژگیهای جدید
- Bounce Tracking Mitigations (DIPS) : Relanded ChromeDriver support for Bounce Tracking Mitigations, utilizing the
RunBounceTrackingMitigationscommand. The integration test was restructured to use distinct pages, ensuring stateful bounces are correctly recorded before the command executes. This feature supports thenav-tracking-mitigationsspecification and is implemented in//chrome( crrev.com/c/4935955 , Bug: 1474656 ). (Note: Originally added in crrev.com/c/4873672 and later reverted). - BiDi : Updated ChromeDriver to use standard WebDriver BiDi extension properties with the
goog:prefix, aligning with upstreamchromium-bidichanges. The legacychannelproperty is no longer allowed ( crrev.com/c/6179410 ). - Windows : Added a version resource to the
chromedriver.exebinary on Windows ( crrev.com/c/6114586 , Bug: 385300323 ).
رفع اشکالات
- MPArch/Targets : Fixed a regression where Chrome Extension targets (
chrome-extension://) were being incorrectly discovered and attached to during primary target determination on ChromeOS, which caused subsequent commands (like navigation) to fail. Extension targets are now properly skipped during this initial phase ( crrev.com/c/6183202 , Bug: 385241097 ). - MPArch/Targets : Fixed another regression where tab targets for Extension
background_pages were not being properly filtered out from top-level web views when extension target support was disabled ( crrev.com/c/6160774 , Bug: 385731198 ). - MPArch/Navigation : Fixed an issue where a tab could momentarily have no active page attached during an MPArch activation, causing ChromeDriver to incorrectly see it as an error state. ChromeDriver now waits for the tab to acquire a new page and complete its navigation before resolving the state ( crrev.com/c/6177606 ).
- Log Processing : Fixed a crash (
DCHECKfailure inbase::Value()) caused by improper truncation of log strings containing multibyte characters. The logic was updated to useUnicodeStringboundary detection instead of simplestd::stringlength checks, ensuring valid code points ( crrev.com/c/6210809 , Bug: 367752739 ). - Testing : Migrated most prerendering-related WPTs (except for a few with known API issues) from
content_shelltoheadless_shell, as the recent MPArch refactor allows ChromeDriver to run them correctly ( crrev.com/c/6168830 , Bug: 42323502 , Bug: 366257368 ).
Internal changes and refactors
- C++ standards : Replaced usages of
base::rangeswith standardstd::ranges( crrev.com/c/6200893 , crrev.com/c/6177197 , Bug: 386918226 ). Rewroteb ? "true" : "false"patterns to usebase::ToString(bool)where possible ( crrev.com/c/6165810 , Bug: 335797528 ). Removed the unsafeStringPrintfNonConstexpr()function and replaced it with safer string formatting alternatives ( crrev.com/c/6149756 ). Replaced pointer arithmetic (+ std::size) with standardbegin/enditerators to resolve unsafe buffer warnings ( crrev.com/c/6217045 , Bug: 392116519 ). - Cleanup : Removed the
FedCmIdpSigninStatusfeature flag and its runtime flag ( crrev.com/c/6111321 , Bug: 381211734 ). (Note: A previous removal attempt was reverted crrev.com/c/6082405 due to breakages).
ChromeDriver 133
ویژگیهای جدید
- Architecture : Refactored ChromeDriver to support Multiple Page Architecture (MPArch) and tab targets.
WebViewImplnow connects to tab targets viaAutoAttach. Commands that previously held a page now look for the active page under a tab. This change enables introspecting Extension background pages, which can now be targeted via theenable_extension_targetscapability (by default, extension targets are skipped) ( crrev.com/c/5961156 , Bug: 379767670 , Bug: 42323502 ). Fixed a regression wherechrome-extension://URL pages were incorrectly included as extension targets; selection is reverted to justtype=background_page( crrev.com/c/6093588 , Bug: 383141569 ). MovedenableExtensionTargetsto Chrome Options instead of a top-level capability ( crrev.com/c/6093032 ). - Classic : Re-established support for multi-key element references. This undocumented feature, often used to create references compatible with both W3C and non-W3C modes, is now officially supported and covered by integration tests ( crrev.com/c/6063257 , Bug: 379584343 ).
رفع اشکالات
- Stability : Prevented ChromeDriver from blocking indefinitely when handling the
browsingContext.closecommand. By using a different mechanism to determine if the browser needs to be closed, ChromeDriver can now properly handlebeforeunloadprompts without stalling ( crrev.com/c/6080431 , Bug: 42323838 , Bug: 379049702 ). - Navigation : Fixed a bug where a dummy page with the URL
about:blank?testwould cause a stall. The heuristic meant to identify an unresponsive new window (baseURL==about:blankanddocumentURL!=about:blank) now correctly handles these query-string URLs as a special case ( crrev.com/c/6038039 , Bug: 377410086 ). - Navigation : Added logic to retry commands that fail with an
AbortedByNavigationerror. ChromeDriver will now attempt the command several times before giving up with a standardTimeouterror ( crrev.com/c/6012427 , Bug: 42323825 ). - Diagnostics : Forwarded the
kTargetCrashederror directly throughNavigationTracker. If a target crashes during navigation detection, this specific error is now surfaced to the user rather than a generic timeout, improving diagnostics ( crrev.com/c/6032612 , Bug: 377410086 ). - Android : Fixed tab target lookups in
chrome_android_impl.cc( crrev.com/c/6110492 , Bug: 384781876 ). - Testing : Fixed flakiness in several window-sizing tests on
win11-arm64(eg, clicking on obscured elements). The tests now query the inner window size repeatedly after a resize operation until it correctly registers a positive height, accounting for slow window repaints ( crrev.com/c/6012658 , Bug: 378470046 ). - Testing : Fixed multiple flakes in integration tests by mapping generic Python connection errors to
WebSocketConnectionClosedException, simplifying error handling ( crrev.com/c/6054134 ), avoiding race conditions by usingSendCommandinstead ofPostCommandwhere immediate side effects are expected ( crrev.com/c/6054137 ), and replacing reliance on immediate effects ofExecuteScriptwith more reliable navigation detection mechanisms ( crrev.com/c/6063040 , Bug: 42323825 ). - Testing : Reverted the removal of the
FedCmIdpSigninStatusfeature flag, as its removal caused breakages ( crrev.com/c/6082405 , reverting crrev.com/c/6078693 , Bug: 384866916 , Bug: 381211734 ). - Tools : Added support for the
Printcommand in thelog_replayscript ( crrev.com/c/6010809 , Bug: 378451938 ).
Internal changes and refactors
- C++ standards : Removed
Mojo.InvalidUTF8Stringhistogram, allowing for the cleanup of public mojo headers and subsequent IWYU cascades ( crrev.com/c/6133861 , Bug: 40509710 , Bug: 386793084 ). - C++ standards : Avoided allocations in
WaitableEvent::Wait()by switching fromstd::listtobase::circular_deque( crrev.com/c/6097198 ). - C++ standards : Defaulted user-defined empty constructors and destructors across the
chrome/codebase where possible ( crrev.com/c/6101911 , crrev.com/c/6056220 , Bug: 381119547 ). - Memory safety (spanification) : Migrated C-style arrays to
std::arrayacrosschrome/as part of the broader effort to address-Wunsafe-buffer-usagewarnings ( crrev.com/c/6043879 , Bug: 378069401 ). Plumbed strictsize_tusage in span functions ( crrev.com/c/6026238 , crrev.com/c/6020621 ). - Testing : Upstreamed fullscreen
{ref,crash}testsback towpt_internal/astestdrivernow supports them ( crrev.com/c/6088404 ). - Testing : Fixed
wptrunnerfor iOS to correctly locate the ChromeDriver wrapper when using non-default output directories (eg,//out/*-ios-wpt-fyi-rel/) by plumbing--build-directorycorrectly ( crrev.com/c/6014940 , Bug: 374199289 , Bug: 355218109 ). - Testing : Added the
testBrowserCrashWhileWaitingForEventsintegration test to demonstrate regression cases where fatal errors go unnoticed by clients ( crrev.com/c/6025145 , Bug: 379049702 ). - Testing : Suppressed specific WPTs that crash when run under
headless_shellcombined with ChromeDriver to stabilize builders ( crrev.com/c/6032163 , Bug: 377410086 ).
ChromeDriver 132
ویژگیهای جدید
- Testing : Added support for the
repeatandretry-limitcommand-line parameters to ChromeDriver integration tests, mapping them to the standardisolated-script-test-repeatandisolated-script-test-launcher-retry-limitarguments ( crrev.com/c/5938195 , Bug: 374681919 ). For tests executed locally (non-CI), the defaultretry-limithas been changed to 0 ( crrev.com/c/5953326 , Bug: 374681919 ). - WebSockets : Implemented
WebSocketConnectionand related classes inEmbeddedTestServer, allowing WebSocket-related tests to migrate away fromSpawnedTestServer. This includes framing according to the protocol and simplified handler registration ( crrev.com/c/5849732 , Bug: 40812029 ).
رفع اشکالات
- Stability : Fixed a ChromeDriver crash that could occur if a click command caused the browser to close, by properly handling the
kTargetDetachederror state introduced in earlier refactors ( crrev.com/c/5934524 , Bug: 42323264 ). - Stability : Fixed an intermittent crash in the
testClickNavigateRemoteToLocalintegration test on Mac ARM64 by resolving a race condition ( crrev.com/c/5975526 , Bug: 375971185 ). - Navigation : Fixed the
GoBackandGoForwardcommands, which previously failed ifPage.getNavigationHistorywas called while the document was transitioning away from an active state (indicating an ongoing navigation). ChromeDriver now correctly retries the command in this scenario ( crrev.com/c/6011739 , Bug: 378433873 ). - Script execution : Ensured that scripts which trigger a navigation or close a window correctly return a standard
ScriptTimeouterror if the browser side doesn't guarantee a result, prompting the user to avoid ambiguous test structures ( crrev.com/c/5934265 , Bug: 372883701 ). - Script execution : Fixed an issue where the log replay functionality failed with an "unexpected command response" error ( crrev.com/c/5961142 , Bug: 42323342 ).
- Error codes : Corrected ChromeDriver's error handling to no longer forcefully wrap all exceptions with a "code" property into a generic "javascript error". This ensures standard errors like "stale element reference" (from
call_function.js) and "invalid element state" (from the Selenium AtomsCLEARfunction) are accurately propagated to the user ( crrev.com/c/5937893 , Bug: 42323409 ). Improved error handling inGetElementTagNameto correctly interpret missing tag name information as "object is not an Element" ( crrev.com/c/5929087 ). - BiDi : Fixed an issue where BiDi sessions failed to initialize when a custom user profile was used. The custom profile's loaded page could prevent the BiDiMapper from starting; ChromeDriver now ensures the first tab always loads
data:,to provide a clean slate for the mapper ( crrev.com/c/5960656 , Bug: 366886096 ). - Incognito mode : Fixed a bug preventing ChromeDriver from creating new tabs while operating in Incognito mode ( crrev.com/c/5952980 , Bug: 42323352 ).
- Testing : Fixed flakiness in the
testScriptNavigateRemoteToLocalintegration test (which was failing at an 8.33% rate) and added C++ integration tests to reproduce and verify the fix for the race condition ( crrev.com/c/6010867 , Bug: 378387680 ). - Testing : Re-enabled numerous previously flaky integration tests on Mac (
testWindowMinimize) and Windows (ChromeDownloadDirTest.testFileDownloadAfterTab,InvalidCertificateTest.*), and globally (testShadowDomFindElement, element screenshot tests). Temporarily moved flakycss/css-scrollbars/WPT tests back to content shell from headless shell ( crrev.com/c/5953708 , crrev.com/c/5948803 , crrev.com/c/5941351 , crrev.com/c/5941098 , crrev.com/c/5959254 , Bug: 42323825 , Bug: 40848017 , Bug: 40736504 , Bug: 40176424 , Bug: 40927590 ).
Internal changes and refactors
- BiDi : Bumped the
chromium-bidimapper dependency to incorporate the latest upstream fixes and protocol updates ( crrev.com/c/5953339 , crrev.com/c/5865478 , Bug: 4226 ). (Note: A mapper bump was briefly reverted due to WPT failures and subsequently relanded ( crrev.com/c/5961113 )). - Architecture : Minimized the usage of the thread-local session object across ChromeDriver to prevent state-sharing bugs between tests and simplify explicit session handling ( crrev.com/c/5978486 , Bug: 42323555 ). Refactored C++ integration tests to use a shared test fixture ( crrev.com/c/5971474 , Bug: 42323555 ).
- Cleanup : Removed deprecated workarounds specific to the "old headless" mode, as the legacy
chrome-headless-shellcode is no longer present in Chrome ( crrev.com/c/5961602 , Bug: 42323387 ). - Cleanup : Removed the unused
java_tests.txtfile, a remnant of the previously evicted ChromeDriver acceptance tests ( crrev.com/c/5970994 , Bug: 357737793 ). - Testing : Added a C++ integration test to verify that ChromeDriver doesn't erroneously create parallel sessions with the same
user-data-diror bleed URLs between sessions, which could cause flakiness ( crrev.com/c/5961137 , Bug: 375312517 ). - Testing : Ensured that temporary ChromeDriver instances spun up by integration tests are shut down as quickly as possible to free resources ( crrev.com/c/5997970 , Bug: 375974725 ).
درایور کروم ۱۳۱
ویژگیهای جدید
- BiDi : Bumped the
chromium-bidimapper dependency to v0.8.0, incorporating the latest protocol updates and bug fixes ( crrev.com/c/5899240 , crrev.com/c/5865478 , Bug: 4226 ). - DOM access : Added support for closed shadow roots in the
GetElementShadowRootcommand. Previously, this command returned aNoSuchShadowRooterror when attempting to access a closed shadow root ( crrev.com/c/5923865 , Bug: 372834222 ). - DOM access : Implemented support for window and frame identifiers, allowing references to windows or frames (including OOP Iframes) to be returned from executed scripts for further dereferencing ( crrev.com/c/5890437 , crrev.com/c/5923555 , Bug: 366272556 , Bug: 40229283 ).
- WebAuthn : Expanded the WebAuthn automation API to include
userNameanduserDisplayNameproperties ( crrev.com/c/5905423 , Bug: 367915823 ).
رفع اشکالات
- Input : Fixed a race condition with mouse clicks on remote frames by routing mouse events to the highest same-origin ancestor of the target frame, rather than simply sending them to the top-most frame ( crrev.com/c/5836968 , Bug: 42323535 ).
- Input : Corrected the timestamp format sent with the
Input.dispatchTouchEventcommand from milliseconds to seconds, fixing crashes in WPT pointer events testing ( crrev.com/c/5924253 , Bug: 360918166 ). - Testing : Re-enabled numerous ChromeDriver tests on Mac ( crrev.com/c/5923569 , crrev.com/c/5922823 , crrev.com/c/5921444 , crrev.com/c/5920851 , crrev.com/c/5921442 ) and Windows ( crrev.com/c/5923955 ) as their associated flakiness failures are no longer reproducible.
Internal changes and refactors
- Memory safety (spanification) : Replaced unsafe pointer usage with
base::spaninnet::HttpUtil( crrev.com/c/5854420 ), and migratedbase::File::WriteAtCurrentPos()to its span-based equivalent ( crrev.com/c/5818972 ). Rewrote map pointer values (eg, instd::map,std::unordered_map) toraw_ptr( crrev.com/c/5867189 , Bug: 329428315 ). - C++ standards : Replaced Abseil attribute macros (
ABSL_ATTRIBUTE_*) with standardbase/macros ( crrev.com/c/5852373 ). Avoided unintended copies by replacing pass-by-value strings/vectors withstd::string_viewor const references where appropriate, and removed strayconstqualifiers fromstd::string_viewarguments ( crrev.com/c/5914620 , crrev.com/c/5906184 , Bug: 369952985 ). - Infrastructure : Configured Fuchsia to use ChromeDriver to control
web-engine( crrev.com/c/5867896 , Bug: 40935291 ). - Testing : Migrated a fenced frames WebAuthn test from the legacy content shell runner to headless Chrome with ChromeDriver, as the legacy runner will soon drop support for the WebAuthn testdriver API ( crrev.com/c/5920770 , Bug: 372169469 ).
ChromeDriver 130
ویژگیهای جدید
- BiDi : Bumped the BiDi Mapper dependency, fetching the latest protocol updates and bug fixes from upstream
chromium-bidi( crrev.com/c/5850570 , relanding crrev.com/c/5837065 after revert crrev.com/c/5840080 ; crrev.com/c/5717956 , Bug: 4226 ). - BiDi : Updated ChromeDriver to supply
unhandledPromptBehaviordirectly to the Mapper via thesession.newcommand when initializing a BiDi session. This completes the migration away fromMapperOptions( crrev.com/c/5682934 , crrev.com/c/5766077 , Bug: 42323841 , Bug: 356371297 ). - Testing : Added support for the
--chromedriverargument to thebisect-builds.pyscript for desktop builds, allowing the script to automatically download and use the correct version of ChromeDriver during bisections for WebDriver/ChromeDriver dependent tests ( crrev.com/c/5861048 , Bug: 352344089 ).
Internal changes and refactors
- C++ standards : Resolved "rule-of-five" issues in various classes. Because the Chrome style plugin insists on out-of-line destructors without also enforcing out-of-line move constructors, the compiler was implicitly deleting move operators and silently falling back to copies. These missing declarations have been added ( crrev.com/c/5846757 , Bug: 364788123 ).
- Testing : Cleaned up the
wptrunnertest results summary by replacing the hardcodedchromestring with the actual product used and hiding the verbosecommandartifact from the summary output ( crrev.com/c/5825633 , Bug: 41494889 ). - Testing : Fixed massive test failures in ChromeDriver integration tests on macOS 15 (Mac15) by doubling specific timeouts, as tests on this OS required significantly more time than on Mac14. Four virtual sensor tests were also added to the ignore list due to flakiness ( crrev.com/c/5817455 , Bug: 354939744 ).
- Testing : Disabled the flaky
ChromeDriverSiteIsolation.testClickNavigateLocalToLocaltest on Mac ( crrev.com/c/5806894 , Bug: 361521805 ) and the flakyChromeDriverTest.testClickElement*ObscuredByScrollBartests on Windows 11 ( crrev.com/c/5804083 , Bug: 360058651 ). - Testing : Removed the ChromeDriver acceptance tests (which downloaded older Chrome versions to test against the current ChromeDriver) due to several infrastructure issues. They may be re-added later on CI with autoroll ( crrev.com/c/5812142 , Bug: 357737793 ).
ChromeDriver 129
ویژگیهای جدید
- BiDi : Updated the ChromeDriver session initialization helper to send a
session.newcommand to the BiDi Mapper, allowing the mapper to directly handle capabilities. This is the first step toward removingMapperOptions( crrev.com/c/5741432 , Bug: 356371297 ). (Note: A related change crrev.com/c/5754093 providing the processedunhandledPromptBehaviorwas reverted crrev.com/c/5755744 due to a drop in test coverage). - Compute Pressure : Added new extension commands for virtual pressure source management, implementing the Automation section of the Compute Pressure specification. These commands are parsed and forwarded to the CDP layer ( crrev.com/c/5666583 , Bug: 347031400 ).
- Extensions MV2 : Updated tests exercising MV2 behavior to use the
ScopedTestMV2Enableras part of the ongoing Extension Manifest V2 Deprecation field trial ( crrev.com/c/5685054 , Bug: 339061151 ).
رفع اشکالات
- Classic serialization : Tracked seen objects when serializing a
Setin WebDriver Classic script execution results, preventing infinite loops and tolerating overrides ofArray.prototype.includes( crrev.com/c/5765833 , Bug: 357472850 ). (Note: This was subsequently reverted crrev.com/c/5773175 due to a WPT regression).
Internal changes and refactors
- BiDi : Bumped the BiDi Mapper dependency to include the latest bug fixes and protocol updates from
chromium-bidi( crrev.com/c/5756587 , crrev.com/c/5717956 , Bug: 4226 ). - Memory safety (spanification) : Replaced unsafe buffer usage in
WebSocketFrameParser::Decode,MaskWebSocketFramePayload, andWriteWebSocketFrameHeaderwithbase::span( crrev.com/c/5764863 , crrev.com/c/5743019 , crrev.com/c/5722108 , Bug: 40284755 , Bug: 354307327 ). Added#pragma allow_unsafe_buffersacrosschrome/*as preparation for further fixes ( crrev.com/c/5717950 , Bug: 40285824 ), and converted non-conformingUNSAFE_BUFFERS()macros toUNSAFE_TODO()( crrev.com/c/5786346 ). Rewrotebase::spanfields tobase::raw_span( crrev.com/c/5515096 , Bug: 332587642 ). - C++ standards : Removed the use of dangerous variable-length arrays (VLAs) in the codebase by explicitly marking array lengths as
constexpr( crrev.com/c/5738737 , Bug: 349656479 ). Included necessary<unordered_map>headers previously pulled in transitively ( crrev.com/c/5792881 ). - Architecture : Unforked the
WebSocketEncoderimplementation by reverting its stalled migration to//services/network/public/cpp/serverand centralizing the logic back within//net/serverto ensure consistent updates ( crrev.com/c/5768214 , Bug: 40205564 ).
ChromeDriver 128
ویژگیهای جدید
- Capabilities : Allowed the use of a dictionary for the
unhandledPromptBehaviorcapability, aligning with standard capability structures, though it is not yet fully respected by the Mapper ( crrev.com/c/5692204 , crrev.com/c/5682934 , Bug: 42323841 ). - Startup : Added the
--ignore-explicit-portcommand-line argument to ChromeDriver. This temporary workaround forces ChromeDriver to ignore any explicitly provided port and instead find and bind to a free port, resolving TCP port races during web platform test execution (intended to be removed after M132) ( crrev.com/c/5724574 , crrev.com/c/5703976 , Bug: 42323836 ).
رفع اشکالات
- Sensors : Fixed the
ExecuteUpdateVirtualSensorcommand to useSendCommand()instead ofSendCommandAndGetResult(), as thesetSensorOverrideReadingsCDP command doesn't return a value ( crrev.com/c/5703589 ). - FedCM : Fixed a race condition in FedCM ChromeDriver tests by no longer asserting that
NoSuchDialogis returned when a dialog is actually expected, preventing failures if the dialog appears too quickly ( crrev.com/c/5713515 , Bug: 346530330 ). - Testing : Re-enabled WebAuthn virtual authenticator tests on Mac after the underlying issue (crbug.com/40233722) was fixed ( crrev.com/c/5635806 , Bug: 329130177 ).
- Error Messages : Fixed a typo in the error message for the
execute/asynccommand ( crrev.com/c/5697913 ).
Internal changes and refactors
- BiDi : Bumped the BiDi Mapper dependency, bringing in the latest protocol features, bug fixes, and WPT expectation updates from the upstream
chromium-bidiproject ( crrev.com/c/5717956 , crrev.com/c/5644823 , crrev.com/c/5630727 , crrev.com/c/5615110 , crrev.com/c/5614670 , Bug: 4226 , Bug: 347863537 , Bug: 324436866 ). - Replaced usages of the deprecated
GrowableIOBuffer::StartOfBuffermethod withspan, improving memory safety by eliminating unchecked pointers ( crrev.com/c/5706088 , Bug: 329476354 ). - Spanified the
Decodemethods ofWebSocketFrameParserto improve memory safety ( crrev.com/c/5722108 , Bug: 354307327 ). - Cleaned up remaining remnants of
absl::optionalby removing obsolete Abseil headers, migrating tostd::optional( crrev.com/c/5691505 , Bug: 40242125 ). - Changed ChromeDriver to handle all unknown target types (including
shared_storage_worklet) asWebViewInfo::kOtherrather than treating them as errors. This allows Chrome to introduce new target types without immediately breaking WPTs ( crrev.com/c/5680542 , crrev.com/c/5679146 , Bug: 42323839 ). - Added an installer target for the
linux-builder-perfbuilder to generate symbol-stripped binaries for bisect archives, and configured pinpoint builders to accept varyingadditional_compile_targets( crrev.com/c/5668198 , Bug: 344643694 ). - Updated
run_performance_tests.pyto find and pass the ChromeDriver location tocrossbenchduring perf builds ( crrev.com/c/5624538 , Bug: 338629299 ). - Rolled the
crossbenchdependency ( crrev.com/c/5681849 ). - Marked
FedCmSpecificTest.testClickErrorMoreDetailsandFedCmSpecificTest.testClickErrorGotItas flaky on Mac ( crrev.com/c/5704320 , crrev.com/c/5677564 , Bug: 352821422 , Bug: 346530330 ). - Disabled the flaky
BidiTest.testFocusInFirstTabtest ( crrev.com/c/5676686 , Bug: 350916212 ).
درایور کروم ۱۲۷
رفع اشکالات
- Stability : Fixed a ChromeDriver crash that occurred when a
target.detachFromTargetcommand (ortarget.detachedFromTargetevent) was received while the DevTools client was actively processing other commands, preventing the premature release of theWebViewandDevToolsClientobjects ( crrev.com/c/5527584 , Bug: 339773537 ). - Stability : Fixed an issue where the
Switch To Windowcommand could incorrectly return an "unknown error" if a web view detached during the command execution; it now correctly ignores the "web view not found" internal error, leading to a standard "no such window" response if the target window indeed closed ( crrev.com/c/5583730 , Bug: 338616700 ). - Stability : Ensured ChromeDriver tolerates target detachment while updating the internal WebView list. If a target detaches during the update, ChromeDriver will now retry instead of returning a non-standard error, reducing flakiness in environments where windows are rapidly created and destroyed ( crrev.com/c/5565103 , Bug: 338616700 , Bug: 4771 ).
- Navigation : Added logic to ChromeDriver to wait for a navigation detected by the remote end while searching for elements. This prevents ChromeDriver from returning a non-standard error or crashing with a
DCHECKwhen a navigation coincides with an element finding operation ( crrev.com/c/5563113 , reverting crrev.com/c/5563420 , relanding crrev.com/c/5562089 , Bug: 4771 ). - BiDi : Fixed a race condition between ChromeDriver and BiDiMapper during session creation. ChromeDriver now waits for the
browsingContext.getTreecommand to return a non-empty list before concluding the NewSession command, ensuring the newly created default tab is properly registered ( crrev.com/c/5575497 , Bug: 341048786 , Bug: 1503101 ). - BiDi : Fixed an issue where the focus remained in the BiDiMapper background tab after session creation instead of the active user tab by explicitly granting focus to the first user tab ( crrev.com/c/5594070 , Bug: 341048786 , Bug: 1503101 ).
- BiDi : Stopped ChromeDriver from attempting to attach a Target when handling BiDi commands (like
browsingContext.close) to prevent CDP commands from stalling indefinitely if a user prompt is open, delegating the handling entirely to the already-connected BiDi layer ( crrev.com/c/5541915 , reverting crrev.com/c/5539818 , relanding crrev.com/c/5522393 , Bug: 4758 ). - FedCM : Fixed the
fedcm-loginhint.https.htmlWPT test failure where a dialog was incorrectly marked as closed; the state is now only updated if theselectAccountoperation actually succeeds ( crrev.com/c/5398379 , Bug: 331237776 ). - Testing : Fixed a
DCHECKfailure during JSON parsing when a character hit exactly thekExtendedASCIIStartboundary ( crrev.com/c/5565276 , Bug: 40284755 ). - Testing : Fixed the
scrollend-event-fires-to-iframe-window.htmlWPT test by using the iframe element as the scroll origin and rounding pointer move inputs to whole numbers, preventing ChromeDriver errors with fractional touch positions ( crrev.com/c/5570150 , Bug: 340956654 ). - Testing : Improved diagnostics in ChromeDriver integration tests by printing the attempted paths when
run_py_tests.pyfails to locate the browser binary ( crrev.com/c/5604204 , Bug: 4781 ).
Internal changes and refactors
- BiDi : Bumped the BiDi Mapper dependency, keeping up with the latest protocol updates and bug fixes ( crrev.com/c/5614670 , crrev.com/c/5593796 , crrev.com/c/5537892 , crrev.com/c/5471839 , Bug: 4226 ).
- Replaced usages of
NOTREACHED()withNOTREACHED_IN_MIGRATION()across thechrome/directory in preparation for makingNOTREACHED()strictly[[noreturn]]( crrev.com/c/5539004 , Bug: 40580068 ). - Enabled the generation of
THIRD_PARTY_NOTICES.txtfor ChromeDriver using thelicenses.pytool to comply with distribution requirements ( crrev.com/c/5596355 , Bug: 4777 ). - Removed
run_wpt_tests.pysupport forcontent_shell, as Chromium's WPT coverage is transitioning fully toheadless_shell+ ChromeDriver ( crrev.com/c/5589930 ). Reorganizedwptrunnerswitches to be embedder-specific to accommodate this change without functional impact ( crrev.com/c/5589793 , Bug: 338412391 ). - Consolidated the logic for JavaScript dialog detection and handling by moving it from
JavaScriptDialogManagerdirectly intoDevToolsClientImpl, eliminating the separate manager class to simplify testing and reasoning ( crrev.com/c/5545630 , Bug: 4757 ). - Disabled
PureBidiTest.testBrowsingContextTreeIsNotEmptyon Mac due to flakiness ( crrev.com/c/5588665 , Bug: 343891977 ). - Updated BiDi WPT expectations to account for recent Mapper updates ( crrev.com/c/5615110 , Bug: 4226 , Bug: 324436866 ).
- Added unit tests for
WebView::SendBidiCommandandBidiTrackerto increase code coverage ( crrev.com/c/5588400 , Bug: 341048786 , Bug: 1503101 ).
ChromeDriver 126
ویژگیهای جدید
- BiDi : Updated ChromeDriver to supply the
--disable-background-timer-throttlingswitch when launching the browser for a WebDriver BiDi session, preventing background tabs from being throttled ( crrev.com/c/5515013 , Bug: 4762 ). - BiDi : Added support for the BiDi Mapper to send debug messages (
sendDebugMessage) when verbose logging is required. ChromeDriver marks these events asbidi messagesfor parsing, thoughBidiTrackercurrently ignores them ( crrev.com/c/5465782 , Bug: 4753 ). - Classic : Implemented auto-acceptance of any
beforeunloaddialogs (alerts), adhering to the WebDriver standard which dictates they must never be shown in a Classic session ( crrev.com/c/5517510 , Bug: 4757 ).
رفع اشکالات
- Classic : Removed the redundant maximum attempt limitation in the element retrieval logic. Retrieval is now bounded only by the implicit timeout, preventing scenarios where the operation could fail prematurely and incorrectly return a non-standard
NoSuchExecutionContexterror ( crrev.com/c/5478668 , Bug: 4379 ). - Classic : Fixed a regression that caused ChromeDriver to respond with a
javascript errorinstead of aninvalid selectorerror when a retrieval request used an invalid location strategy ( crrev.com/c/5490662 , Bug: 4743 ). - Classic : Ensured window commands on Android (Maximize, Minimize, Fullscreen) return the standard compliant
unsupported operationerror instead of proceeding, as these actions are not supported by the Android browser ( crrev.com/c/5490224 , Bug: 4689 ). - Classic : Fixed ChromeDriver to never return the
kChromeNotReachableinternal error code; it now properly returns the standardkSessionNotCreatederror when the HTTP client cannot connect to the browser ( crrev.com/c/5476390 , Bug: 4379 ). - Classic : Fixed ChromeDriver to never return the non-standard
kNoSuchExecutionContexterror when executing window commands ( crrev.com/c/5483606 , Bug: 4379 ). - Classic : Removed the unused and unsupported
kForbiddenerror code from the list of supported error codes ( crrev.com/c/5476927 , Bug: 4379 ). - BiDi : Updated ChromeDriver to prompt the user before closing the dedicated Mapper tab, aligning with upstream
chromium-bidichanges ( crrev.com/c/5508600 , Bug: 4761 ).
Internal changes and refactors
- BiDi : Bumped the BiDi Mapper dependency, bringing in the latest features and bug fixes from the upstream
chromium-bidiproject ( crrev.com/c/5490428 , crrev.com/c/5471839 , crrev.com/c/5509316 , crrev.com/c/5458234 , Bug: 4226 ). (Note: A mapper bump was briefly reverted by a gardener and then relanded ( crrev.com/c/5374839 , crrev.com/c/5374366 )). - Replaced usages of
base::StringPiecewithstd::string_viewacross//chrome( crrev.com/c/5467746 , Bug: 40506050 ). - Removed
std::to_string()usage in//chrome, replacing it withbase::NumberToString()orbase::FormatNumber()( crrev.com/c/5505593 , Bug: 335672557 ). - Removed support for the
--remote-debugging-addressswitch in the old headless mode, as unprotected remote access to the Chrome DevTools Protocol was deemed too dangerous ( crrev.com/c/5512634 , Bug: 327558594 ). - Removed Fuchsia build rules from
//chrome, except for ChromeDriver ( crrev.com/c/5473870 , Bug: 41481724 ). - Migrated legacy
TODO(crbug.com/...)references across the codebase to the new issue tracker ID format (TODO(b/...)) ( crrev.com/c/5492605 , crrev.com/c/5486477 , crrev.com/c/5461380 , Bug: 321899722 ). - Disabled WebAuthn (authenticator) tests on Mac (both for headless and
chromedriver_py_tests) due to a complex underlying bug, unblocking the upgrade of bots to macOS 14 ( crrev.com/c/5525435 , crrev.com/c/5518820 , Bug: 329130177 ). - Disabled WPT builders for
content_shelldue to difficulties in running WPTs with ChromeDriver and Content Shell together ( crrev.com/c/5512439 , Bug: 40214293 ). - Relanded a change that updates
focus-navigationWPTs to useShift+Tabviatest_driver.action_sequence()for backward navigation. Fixed a bug infocus-utils.jswhere the wrong key code (E050instead ofE008) was used for the Shift key ( crrev.com/c/5467843 , reverting crrev.com/c/5466531 , relanding crrev.com/c/5463903 , Bug: 40597271 ). - Added
crossbenchandchromedriverto the perf build targets ( crrev.com/c/5521874 , Bug: 338627700 ).
درایور کروم ۱۲۵
ویژگیهای جدید
- Device Posture : Added ChromeDriver commands for device posture management, supporting the Automation section of the Device Posture specification. This allows overriding the hardware-set device posture and removing the override via extension commands ( crrev.com/c/5437993 , Bug: 330376761 ).
رفع اشکالات
- BiDi : Changed the intermediate storage of the incoming BiDi command
idfrom aDoubletobase::Value. This ensures theidis echoed back precisely in the response without an unexpected trailing decimal point or fractional part after JSON serialization ( crrev.com/c/5444225 , Bug: 4676 ). - FedCM : Relanded the change to enable CORS in the ID assertion endpoint after IDPs were ready ( crrev.com/c/5440132 , reverting crrev.com/c/5381316 , relanding crrev.com/c/5370086 , Bug: 40284123 ).
- FedCM : Fixed a bug where a dialog was improperly marked as closed by ensuring it is only marked as closed if the
selectAccountcommand succeeds. This resolves test failures whenselectAccountis called without an expected account chooser ( crrev.com/c/5398379 , Bug: 331237776 ). Avoided callingfedcm_get_and_select_first_accountwhen an account chooser is not expected to prevent triggering this bug ( crrev.com/c/5398800 ). - Testing : Fixed a failure in the
popover-light-dismiss.htmlWPT test by combining action sequences and using the main frame's document as the origin for thepointerUpaction, preventing ChromeDriver from incorrectly sending concurrentpointerUpevents across frames ( crrev.com/c/5402096 , Bug: 325981758 ). - Testing : Fixed
wptrunnerto correctly forwardstderroutput (including browser logs written when using--enable-chrome-logs) to thestderrartifact instead ofcrash_log, and moved harness errors (which contain the browser stack trace) tocrash_log( crrev.com/c/5437023 , Bug: 41494889 ). - Testing : Fixed
wptrunnerto route browser logs to the correct test artifact by grouping output by the ChromeDriver process, preventing interleaved and orphaned logs during parallel test execution ( crrev.com/c/5320681 , Bug: 41494889 ).
Internal changes and refactors
- BiDi : Bumped the BiDi Mapper dependency, integrating the latest protocol enhancements and bug fixes ( crrev.com/c/5433300 , crrev.com/c/5393442 , Bug: 4226 ). (Note: A previous bump crrev.com/c/5374366 was reverted crrev.com/c/5374839 and subsequently relanded with disabled flaky tests and updated licenses crrev.com/c/5374914 ).
- Diagnostics : Plumbed Chrome's
StackTraceinto ChromeDriver exceptions. This surfaces the browser stack trace in the error message when a session is deleted because of a page/tab crash (eg, dangling pointers on Mac), significantly improving debuggability ( crrev.com/c/5374371 , Bug: 330009945 ). - Testing : Temporarily disabled the flaky
testTakeLargeElementViewportScreenshotintegration test on Mac (specificallymac-arm64) ( crrev.com/c/5447515 , Bug: 333826980 ). - Testing : Updated the ChromeDriver launch arguments in testing environments (CEL) to match Selenium 4+ syntax ( crrev.com/c/5448812 , Bug: 308885357 ).
- Testing : Extracted the exact
chromecommand line used to run each WPT test from thechromedriverlog into a ResultDB artifact namedcommand. This facilitates manual debugging withrun_blink_wptserve.py( crrev.com/c/5441189 , Bug: 41494889 ). - Dependencies : Removed
Closurefrom theselenium-atomsdependency list, consequently removing it from ChromeDriver's third-party notices ( crrev.com/c/5424804 , Bug: 4226 ). - Dependencies : Dropped unused dependencies on
dynamic_annotationsacross the base repository ( crrev.com/c/3398908 , Bug: 1282422 ). - Formatting : Applied the new
clang-formatconfiguration to problematic Windows headers ( crrev.com/c/5367127 , Bug: 329138753 ).
ChromeDriver 124
ویژگیهای جدید
- BiDi : Added a build step to minify the
BiDiMapperscript before embedding it into ChromeDriver, as the source mapper is now downloaded unminified from CIPD ( crrev.com/c/5310075 , Bug: 4226 ). - WebAuthn : Added the
SetCredentialPropertiescommand, allowing clients to update the backup flags for a WebAuthn credential ( crrev.com/c/5296389 , Bug: 40945430 ). - WebAuthn : Exposed WebAuthn backup flags through WebDriver by adding
defaultBackupEligibilityanddefaultBackupStateto the "Add Virtual Authenticator" command, andbackupEligibilityandbackupStateto the "Add Credential" command ( crrev.com/c/5297117 , Bug: 40945430 ). - Testing : Added support for the
--failfastcommand-line argument to ChromeDriver Python integration tests, stopping the test run on the first error to assist with debugging ( crrev.com/c/5374546 ). - Testing : Added content-shell support for the
SetRPHRegistrationModewebdriver command viatestdriver-vendor.jsAPIs ( crrev.com/c/5205730 , Bug: 1359103 ).
رفع اشکالات
- Stability : Moved the timeout expiration check inside the poll-and-wait loop body in
ChromeImpl::SetWindowBounds. This fixes an issue where, under high load, the timeout could expire before the first loop iteration occurred ( crrev.com/c/5366899 , Bug: 4642 ). - Performance : Minimized wait time in
ChromeImpl::SetWindowBoundsby only applying an exponential backoff wait if the window bounds have not yet reached the desired state, reducing WPT setup latency ( crrev.com/c/5366457 , Bug: 4642 ). - Startup : Updated ChromeDriver to use
--user-data-dirinstead of--data-pathwhen specifying the data directory forcontent_shell, aligning with how it reads the active DevTools port ( crrev.com/c/5226609 , Bug: 1295373 ).
Internal changes and refactors
- BiDi : Bumped the BiDi Mapper dependency, capturing the latest protocol fixes and features ( crrev.com/c/5374366 , crrev.com/c/5349491 , crrev.com/c/5317650 , Bug: 4226 ). (Note: A bump was briefly reverted and then relanded due to test failures crrev.com/c/5374839 , crrev.com/c/5368680 , crrev.com/c/5319423 ).
- Replaced usages of
absl::optionalwithstd::optionalacross the codebase following the transition ofabsl::optionalto a type alias ( crrev.com/c/5296147 , Bug: 1500249 ). - Extended
MiraclePtr(raw_ptr) coverage to additional standard containers includingstd::list,std::unordered_set,base::flat_set,std::stack, andstd::queue( crrev.com/c/5306923 , Bug: 325302189 ). - Converted
WriteBigEndian()to usebase::numericsbyte conversions orBigEndianWriter(which now acceptsbase::span), improving safety when writing big-endian bytes ( crrev.com/c/5202348 , Bug: 1490484 ). - Switched to using ChromeDriver to run Web Platform Tests (WPT) with
content_shell(excluding virtual tests and reftests pending upstream bug fixes) ( crrev.com/c/5347371 , Bug: 40214293 ). - Converted all existing Generic Sensor web tests to use
test_driver.jsand virtual sensors instead of JS/Mojo mocks, aligning with the new Automation section of the Generic Sensor spec ( crrev.com/c/4770867 , Bug: 1278377 , Bug: 1471996 ). - Improved license generation by adding
append_notices.pyto generate credits forBiDiMapperdependencies and updating thelicenses.pyinvocation to rely strictly on theselenium-atomsREADME for third-party notices ( crrev.com/c/5350601 , crrev.com/c/5339957 , Bug: 4729 , Bug: 4735 ).
درایور کروم ۱۲۳
ویژگیهای جدید
- FedCM : Show modal dialogs for single account button flows, including adding support for modal views in the automation interface ( crrev.com/c/5231438 , Bug: 1518356 ).
- FedCM : Implemented ChromeDriver support for opening links within FedCM dialogs, treating them as buttons for automation simplicity ( crrev.com/c/5225543 , Bug: 1513520 ).
- Sensors : Modified WebDriver virtual sensor commands to read Euler angles (alpha-beta-gamma) instead of quaternions, complying with recent orientation-sensor spec updates. Internal CDP and services layers still use quaternions via a conversion step ( crrev.com/c/5229177 , Bug: 1506995 , Bug: 1520912 , Bug: 1520919 ).
رفع اشکالات
- Classic : Fixed an issue where returning a node from a different frame via a script incorrectly resulted in a
StaleElementReferenceerror; it now correctly returns aJavaScriptErrorto comply with the WebDriver standard ( crrev.com/c/5222746 , Bug: 4668 ). - Testing : Fixed an overscroll events test that was failing on Chrome/ChromeDriver because the touch drag was extending outside the window boundaries; the drag is now properly constrained ( crrev.com/c/5297676 , Bug: 40832230 ).
- Testing : Fixed
open-close.https.htmlMIDI tests to not construct promises unnecessarily, avoiding unhandled promise rejections that caused ChromeDriver to fail the test ( crrev.com/c/5239869 , Bug: 1499775 ). - Testing : Corrected the permission set in
wpt_internal/system-wake-lock/idlharness*tests wheretest_driver.set_permission(...)was incorrectly passingfalseinstead ofnullor aWindowProxy, confusing ChromeDriver ( crrev.com/c/5271087 , Bug: 40287920 ).
Internal changes and refactors
- BiDi : Bumped the BiDi Mapper dependency, fetching the latest fixes and features ( crrev.com/c/5205452 , crrev.com/c/5255321 , crrev.com/c/5238148 , crrev.com/c/5237125 , Bug: 4226 ). (Note: A bump was briefly reverted and then reapplied due to build failures crrev.com/c/5238855 ).
- Improved ChromeDriver code health by eliminating unsafe static casts from a base class to a derived class in both
ChromeImplandDevToolsClientImpl, preventing potential undefined behavior ( crrev.com/c/5277062 , crrev.com/c/5272562 , Bug: 4702 ). - Eliminated unsafe casts in
WebViewImpl( crrev.com/c/5272230 , Bug: 4702 ). - Removed deprecated forms of
base::Base64Encode(), migrating to the newerstd::stringreturning variant instead of using out parameters ( crrev.com/c/5179900 , crrev.com/c/5246585 , Bug: 1486214 ). - Updated all
#includedirectives forbase/...to use""instead of<>for consistency ( crrev.com/c/5237376 , Bug: 1500249 ). - Migrated all
DIR_METADATAfiles inchrome/test/to Buganizer ( crrev.com/c/5284119 , Bug: 1518875 ). - Prevented wptrunner from creating a local
-file when passing-vvvby removing the unnecessarychromedriver --log-path=-switch, as stderr is already redirected to stdout ( crrev.com/c/5282721 ). - Enhanced wptrunner to summarize test results when regressions occur, explicitly including subtest results and ChromeDriver stack traces directly in the summary output ( crrev.com/c/5238662 , Bug: 1521922 ).
- Simplified debugging of ChromeDriver integration tests by introducing the
--remote-chromedriver-portparameter torun_py_tests.py, allowing connection to an existing instance running under a debugger ( crrev.com/c/5237254 , Bug: 4693 ). - Avoided two-arg
base::HexEncode()andRandBytes()calls to let the compiler deduce the correct size, simplifying code ( crrev.com/c/5241357 ).
ChromeDriver 122
رفع اشکالات
- BiDi : Updated deep node serialization to include
loaderId, allowing ChromeDriver and the BiDi Mapper to properly reference and dereference nodes without excessive round trips ( crrev.com/c/5116240 , Bug: 1420968 ). - Capabilities : Updated ChromeDriver to pass the
acceptInsecureCertscapability to the BiDi Mapper immediately on start, preventing race conditions where the capability might be applied too late ( crrev.com/c/5125711 , Bug: 4643 ). - Classic : Re-architected element reference generation to use a
<frame_id>.<loader_id>.<backend_node_id>format; this allows ChromeDriver to definitively distinguish between valid, unknown, and stale element references across frame navigations and DOM updates ( crrev.com/c/5094519 , Bug: 4379 ). - Classic : Fixed an issue where the
window/handlescommand could fail with a "no such window" error if a newly created target closed itself (eg, in a race condition) before ChromeDriver could attach to it ( crrev.com/c/5147409 , Bug: 1506833 ). - FedCM : Added an internal event listener to notify when a FedCM dialog is closed, preventing the
dialogtypecommand from returning stale data if the dialog was closed externally (eg, viaAbortController.abort) ( crrev.com/c/5067504 , Bug: 1506292 ). - FedCM : Removed the vendor prefix from the
ClickDialogButtoncommand as it has now been approved in the FedCM specification ( crrev.com/c/5092527 , Bug: 1499341 ).
Internal changes and refactors
- BiDi : Bumped the BiDi Mapper dependency to the latest version ( crrev.com/c/5205452 , Bug: 4226 ).
- Reduced ChromeDriver and Chrome DevTools Protocol (CDP) traffic by removing redundant
Page.enablecalls sent from everyDevToolsEventListener, asDevToolsClientImplalready handles this per target ( crrev.com/c/5088789 , Bug: 4600 ). - Changed all Wptrunner builders for
content_shellto experimental status since running tests in protocol mode is currently not fully supported while ChromeDriver integration is in progress ( crrev.com/c/5225148 , Bug: 1474702 ). - Skipped tests that require
window.test_driver_internal.get_computed_roleoncontent_shellas it is not yet implemented, preventingTypeErrorfailures ( crrev.com/c/5189678 , Bug: 1517744 ). - Relanded the refactor to use platform-independent
IS_OZONE_{X11, WAYLAND}flags instead ofOZONE_PLATFORM_*( crrev.com/c/5086329 , Bug: 1500494 ). - Bumped the
selenium-atomsdependency to the latest revision ( crrev.com/c/5110808 , Bug: 4662 ). - Fixed logic in SnapEvents tests when run against the full Chrome binary by rounding pointer move inputs, enforcing the
originparameter for scrolls, and using approximation assertions (assert_approx_equals) to handle fractional scroll/offset discrepancies ( crrev.com/c/5097343 ). - Added
StringPrintfNonConstexpr()helper to distinguish fromStringPrintf()when format strings are not compile-time constants ( crrev.com/c/4950568 , Bug: 1371963 ). - Ensured
chromium::import!rust macro escaping uses an injective function to prevent collisions in generated GN target names ( crrev.com/c/5132119 , Bug: 1512174 ). - Cleaned up the
ScopedTempDirWithRetryimplementation by adding a constructor and early returns in the destructor ( crrev.com/c/5113843 ).
ChromeDriver 121
ویژگیهای جدید
- Testing : Added support for running ChromeDriver integrated tests (
chromedriver_py_test) againstchrome-headless-shellin addition to the standard Chrome browser on build bots. This includes the ability to discover the browser binary based on the--browser-nameparameter and conditionally run specific test sets ( crrev.com/c/4995189 , crrev.com/c/4989442 , Bug: 4358 ).
رفع اشکالات
- Stability : Initialized the default
KeyboardLayoutEngineasStubKeyboardLayoutEngineto prevent ChromeDriver crashes caused by aDCHECKhit inKeyboardLayoutEngineManager::SetKeyboardLayoutEngine( crrev.com/c/5017859 , Bug: 4625 ). - Stability : Fixed a flakiness issue where ChromeDriver could crash if the session thread requested to close a connection after the client had already requested to close the same connection ( crrev.com/c/4994636 , Bug: 4606 ).
- Resource Management : Fixed resource leaks in ChromeDriver integration tests (
RemoteBrowserTest) by ensuring the browser process is terminated even if an exception is thrown by a ChromeDriver command ( crrev.com/c/5009554 , Bug: 4614 ). - Resource Management : Implemented logic in ChromeDriver integration tests to detect and terminate any browser processes abandoned by the ChromeDriver process ( crrev.com/c/5014093 , Bug: 4617 ).
- Startup : Fixed an issue where
chrome-headless-shellwould return an empty target list, preventing session creation, by appending thedata:,argument to the browser command line when the browser name ischrome-headless-shell( crrev.com/c/5010392 , crrev.com/c/5009535 , Bug: 4615 , Bug: 4358 ). - FedCM : Added a new event to notify when a FedCM dialog is closed, ensuring
dialogtypeand other commands don't return stale data if the dialog was closed externally (eg, viaAbortController.abort) ( crrev.com/c/5067504 , Bug: 1506292 ). - Testing : Fixed and re-enabled all ChromeDriver integration tests that were previously disabled for
chrome-headless-shellon Windows ( crrev.com/c/5027594 , Bug: 4358 ). - Testing : Weakened overly strict assertions in
testElementRegionTestto align with the WebDriver standard, resolving flakiness caused by browser rendering peculiarities ( crrev.com/c/5017865 , Bug: 4526 ).
Internal changes and refactors
- BiDi : Updated the BiDi Mapper dependency ( crrev.com/c/4994305 , Bug: 4226 ).
- Reverted the use of
IS_OZONE_{X11, WAYLAND}in favor ofOZONE_PLATFORM_*due to a bug ( crrev.com/c/5086571 , reverting crrev.com/c/5083096 , Bug: 1500494 ). - Migrated code in
commands_unittest.ccto usebase::BindLambdaForTestinginstead of the deprecatedbase::Passed( crrev.com/c/5078589 , Bug: 1326449 ). - Refactored
session.newto extract boilerplate capability handling (eg,testName,binary,browserName) into a dedicated method and ensured the command respects capabilities similarly to the classic command ( crrev.com/c/5004665 , crrev.com/c/5001510 , Bug: 4358 , Bug: 4610 ). - Removed usage of the deprecated
base/strings/string_piece_forward.hheader ( crrev.com/c/5008994 , Bug: 691162 ). - Prepared for the transition of
net::IOBufferto a non-owning class by usingnet::IOBufferWithSizefor owning cases ( crrev.com/c/4996470 , Bug: 1493389 ). - Introduced and utilized
base::RandBytesAsVector()to avoid storing binary values in strings ( crrev.com/c/5018451 ). - Disabled several consistently failing Python integration tests on Mac to prevent them from causing green builds due to LUCI analysis exoneration ( crrev.com/c/4998771 , Bug: 1486604 , Bug: 1486520 , Bug: 1486474 , Bug: 1481915 ).
- Renamed the
webdriver_tests_suite(andwpt_tests_suite) tochrome_wpt_teststo standardize WPT suite naming conventions on Linux try builders ( crrev.com/c/5014293 , Bug: 1474702 ). - Repurposed the
ConfirmIdpLoginFedCM webdriver command into a more extensibleClickDialogButtoncommand that accepts aDialogButtonparameter ( crrev.com/c/5003255 , Bug: 1499341 ). - Updated the
crossbenchdependency with numerous fixes and features, including better driver type parsing, network stubs, and iOS support ( crrev.com/c/5009937 ). - Added missing
#include <string>tochrome_finder.hfor IWYU compliance ( crrev.com/c/4994605 , Bug: 957519 ).
درایور کروم ۱۲۰
ویژگیهای جدید
- BiDi : Added support for
session.newandsession.endcommands, allowing users to create and terminate sessions directly via BiDi commands ( crrev.com/c/4941941 , Bug: 4496 ). - BiDi : Added support for the
session.statusPureBiDi command, enabling users to establish a WebSocket connection not bound to any session and retrieve the session status ( crrev.com/c/4938596 , Bug: 4496 ). (Relanded after a previous revert in crrev.com/c/4922097 ) - BiDi : Bumped the BiDi Mapper dependency and aligned with the new, simplified Mapper running process ( crrev.com/c/4952609 , Bug: 4226 ).
- Sensors : Implemented virtual sensor commands in
browser_protocol.pdland the CDP layer (Emulation domain), adding support for the Automation section of the Generic Sensor spec ( crrev.com/c/4770864 , Bug: 1278377 ). - Sensors : Added ChromeDriver extension commands for virtual sensor management, translating WebDriver parameters into the new CDP calls ( crrev.com/c/4770866 , Bug: 1278377 ).
- Sensors : Added a
content_shellcode path for virtual sensors manipulation viatestdriver.js, bypassing ChromeDriver entirely for web tests ( crrev.com/c/4770865 , Bug: 1278377 ). - Tracking Mitigations : Added ChromeDriver support for Bounce Tracking Mitigations (DIPS), enabling automation of the
nav-tracking-mitigationsspec ( crrev.com/c/4873672 , Bug: 1474656 ). (Note: This was temporarily reverted due to test failures on Mac in crrev.com/c/4938394 )
رفع اشکالات
- Startup : Added Headless Shell discovery to ChromeDriver, allowing it to search for the
chrome-headless-shellbinary if requested via capabilities and no explicit path is provided ( crrev.com/c/4987262 , Bug: 4358 ). (Relanded after a previous revert in crrev.com/c/4984449 ) - WebSockets : Implemented partial support for the WebSocket Closing Handshake, ensuring ChromeDriver responds with a
CLOSEframe when one is received from the remote end ( crrev.com/c/4931500 , Bug: 4499 ). - Permissions : Exposed
options.disclaim_responsibilityas a build flag to allow vendor builds (like Microsoft Teams) to turn it off, preventing macOS permission prompts from stalling test automation ( crrev.com/c/4929495 , Bug: 1223643 ). - C++ standard compliance : Fixed undefined behavior (UB) caught by UBSan when casting an out-of-range double to an int by adding range checks ( crrev.com/c/4980055 , Bug: 1394755 ).
- FedCM : Removed support for the old header syntax, ensuring compliance with the standard
login-status-httpsyntax ( crrev.com/c/4957073 , Bug: 1381501 ).
Internal changes and refactors
- Added
testReturnFrameElementintegration test to verify ChromeDriver's behavior regarding treatingwindow.frameElementas a stale reference ( crrev.com/c/4983549 , Bug: 4477 ). - Improved logging by ensuring ChromeDriver logs the specific paths where it attempts to locate the browser binary ( crrev.com/c/4976116 , Bug: 4539 ).
- Renamed various
base::Timefunctions to be more descriptive (eg,FromDoubleT()toFromSecondsSinceUnixEpoch()) ( crrev.com/c/4956111 ). - Refactored
net::StringIOBufferconstructor andIOBufferinstantiations to avoid unnecessary string copies and zero-length allocations ( crrev.com/c/4938384 , crrev.com/c/4959174 ). - Cleaned up string handling by replacing
base::StrCatwith+where applicable and utilizingbase::AppendHexEncodedByte()( crrev.com/c/4963465 , crrev.com/c/4977165 ). - Renamed
DIR_SOURCE_ROOTtoDIR_SRC_TEST_DATA_ROOTacross//chrome*tests for clarity ( crrev.com/c/4916045 , Bug: 1264897 ). - Disabled flaky
PureBidiTesttests on Mac builders ( crrev.com/c/4983555 , Bug: 1496826 ).
ChromeDriver 119
ویژگیهای جدید
- BiDi : Implemented support for resolving weak local object references returned by the remote end during remote function calls ( crrev.com/c/4886760 , Bug: 4536 ).
- FedCM : Added the vendor-prefixed
confirmidpsignincommand to support the IDP Sign-In Status API origin trial ( crrev.com/c/4811725 , Bug: 1451884 ).
رفع اشکالات
- Mobile emulation : Fixed an issue where predefined devices without Client Hints (eg, older configurations) were broken by populating them with sensible default values ( crrev.com/c/4887254 , Bug: 4550 ).
- Classic : Fixed serialization of
MapandSetobjects; they are now correctly serialized asObjectrather thanCollectionsince they lack alengthproperty ( crrev.com/c/4881378 , Bug: 4031 ). - Classic : Reinstated the logic to always download and use the latest compatible version of ChromeDriver during tests, falling back to specific versions only when compatibility issues arise ( crrev.com/c/4779613 , reverting crrev.com/c/4778973 ).
- FedCM : Standardized the browser automation commands by renaming
SignintoLogin(confirmidplogin) to align with the latest FedCM specification discussions ( crrev.com/c/4901302 , Bug: 1451884 ). - Testing : Fixed FedCM tests that failed when third-party cookies were disabled by explicitly enabling the IDP Sign-In Status API during test execution ( crrev.com/c/4889802 , Bug: 1484833 ).
- Testing : Replaced the invalid URL placeholder
~NOTFOUNDwith^NOTFOUNDin test runners to comply with upcoming Chromium URL standard enforcement changes ( crrev.com/c/4845589 , Bug: 1416013 ).
Internal changes and refactors
- BiDi : Updated the BiDi Mapper dependency to version 0.4.27, bringing in the latest fixes and features ( crrev.com/c/4862031 , crrev.com/c/4890322 ).
- Replaced multiple pointer/length APIs in
//urlwithstd::string_viewfor improved safety and convenience ( crrev.com/c/4897456 ). - Transitioned the
generateWebDriverValueutility to use the deep serialization option (serializationOptions.serialization: deep) natively provided by the BiDi protocol ( crrev.com/c/4889644 ). - Added integration tests to verify that searching under a stale element reference correctly returns a "stale element reference" error ( crrev.com/c/4886793 , Bug: 4440 ).
- Improved code style formatting in
call_function.js( crrev.com/c/4882511 , Bug: 4031 ). - Enhanced user feedback by explicitly informing users when they connect via WebSockets that pipes are supported and recommended for better reliability and security ( crrev.com/c/4882626 , Bug: 3480 ).
- Updated WPT suite configuration to archive
results.htmlforwebdriver_tests_suitetests, providing a better UI for viewing results ( crrev.com/c/4873223 ). - Fixed DevTools integration with WebView by marking WebView WebContents and setting their DevTools type to
popup_pageinstead ofother( crrev.com/c/4842093 ). - Renamed the WPT build target
chrome_wpttochrome_wpt_testsfor consistency and removed the redundantwebdriver_wpt_teststarget ( crrev.com/c/4847474 , Bug: 1474702 ). - Migrated
run_py_tests.pyfrom the deprecatedoptparselibrary toargparse( crrev.com/c/4849411 , Bug: 4557 ).
ChromeDriver 118
ویژگیهای جدید
- Integration Testing : Introduced C++ integration tests for ChromeDriver, allowing testing of specific classes against real CDP traffic, filling the gap between unit tests and Python integration tests ( crrev.com/c/4707855 , Bug: 4528 ).
- Crossbench : Updated the
crossbenchdependency with numerous improvements including new power benchmark stories, better platform and device support, enhanced debugging, and various fixes ( crrev.com/c/4803743 ).
رفع اشکالات
- Capabilities : Fixed an issue where
debuggerAddresswas missing from returned capabilities in default configurations; it is now correctly returned to support Selenium's CDP-based BiDi communication ( crrev.com/c/4789068 , Bug: 4533 ). - Capabilities : Ensured ChromeDriver returns standard
platformNamevalues (eg, 'linux', 'windows', 'mac') as required by the WebDriver specification ( crrev.com/c/4797735 , Bug: 4548 ).
Internal changes and refactors
- Migrated code in
MockSocketto preferbase::span<>over raw pointers for improved safety ( crrev.com/c/4832086 ). - Removed deprecated uses of
base::raw_ptrandbase::raw_refin favor of their unqualified formsraw_ptrandraw_refvia automated cleanup ( crrev.com/c/4773481 ). - Temporarily reverted a change that always used the latest ChromeDriver, as it caused crashes on Windows stable/beta channels ( crrev.com/c/4778973 , reverting crrev.com/c/4777430 ).
- Adjusted WPT (Web Platform Tests) configurations, including suppressing debug-only failures in
pointer_touch.pyand implementing browser-side focus verification for fenced frames ( crrev.com/c/4844810 , crrev.com/c/4572517 ). - Added missing
#include <vector>toclient_hints.hfor IWYU compliance ( crrev.com/c/4767547 ). - Migrated Apple-specific base types (
ScopedTypeRef,ScopedCFTypeRef,scoped_nsautorelease_pool) into thebase::apple::namespace, leaving temporary forwarding headers for Crashpad ( crrev.com/c/4799213 , crrev.com/c/4790744 , crrev.com/c/4790741 , crrev.com/c/4784010 ).
ChromeDriver 117
ویژگیهای جدید
- Pipes Communication : Changed the default communication mode between ChromeDriver and Chrome from WebSockets to pipes (
--remote-debugging-in-pipeand--remote-debugging-out-pipe) across all supported platforms, including Windows ( crrev.com/c/4634299 , crrev.com/c/4628834 , crrev.com/c/4635378 , Bug: 3480 ). - BiDi : Updated the BiDi Mapper dependency ( crrev.com/c/4670516 , Bug: 4226 ).
رفع اشکالات
- Stability : Fixed a null pointer access that caused ChromeDriver to crash, which in turn resulted in
ConnectionRefusederrors during test runs ( crrev.com/c/4675633 , Bug: 1457101 ). - Navigation : Fixed an issue where Chrome's
NoSuchExecutionContextandNoSuchWindowerrors during navigation were not handled uniformly; both are now properly mapped to retry the operation ( crrev.com/c/4667156 , Bug: 4459 ). - Mobile emulation : Corrected the inference logic for
clientHints.mobile; it is now correctly inferred from theuserAgenton Android and defaults to false on other platforms, fixing an issue where tablets incorrectly reported as mobile ( crrev.com/c/4649348 , Bug: 4243 ). - Session creation : Updated session creation to correctly return the standard
SessionNotCreatederror code upon failure, strictly complying with the W3C WebDriver specification ( crrev.com/c/4638223 , Bug: 4379 ). Note: This change was subsequently reverted as some specific code paths require different error codes ( crrev.com/c/4651188 ).
Internal changes and refactors
- Eliminated the manual ChromeDriver release process scripts, as ChromeDriver is now fully integrated into the Chrome release process and available via the Chrome for Testing infrastructure ( crrev.com/c/4520687 , Bug: 4142 ).
- Migrated WPT (Web Platform Tests) infrastructure to use the official
wptrunnerharness instead of the bespokerun_webdriver_tests.py, significantly improving execution speed and reliability, and ensuring ChromeDriver respawns between tests to isolate crashes ( crrev.com/c/4723147 , crrev.com/c/4676070 , crrev.com/c/4639168 ). - Extensively refactored
ChromeLauncherand related classes to support the transition to pipes, loosening coupling withDevToolsHttpClientand moving WebSocket logic into dedicated branches ( crrev.com/c/4632801 , crrev.com/c/4674345 ). - Renamed the misleading
BrowserInfo.is_headlessfield toBrowserInfo.is_headless_shellfor clarity ( crrev.com/c/4650452 , Bug: 4358 ). - Replaced various deprecated
base::Valuemethods with the modernbase::Value::Dictequivalents (eg,FindDouble(),Set(),size()) across the codebase ( crrev.com/c/4258936 , crrev.com/c/4336805 , crrev.com/c/4461067 ). 112.0.5603.0, 113.0.5653.0, 114.0.5733.0 - Removed the use of
[w]ctype.hin favor of safer base string utilities and implemented new facilities forbase::expected( crrev.com/c/4749459 , crrev.com/c/4755226 ). - Implemented
get_fedcm_dialog_titleandselect_fedcm_accountautomation commands inTestDriverfor FedCM WPTs ( crrev.com/c/4618303 ). - Updated BiDi mapper build scripts to function correctly regardless of the current working directory ( crrev.com/c/4670550 ).
- Converted
/chrome/test/chromedriverfiles to use ARC (Automatic Reference Counting) in macOS builds, adding necessary boilerplate ( crrev.com/c/4663602 ). - Attempted to disable pipe communication by default via an automated rubber-stamper commit, but the change only touched configuration without altering the core pipes-by-default behavior introduced earlier ( crrev.com/c/4683947 ).
ChromeDriver 116
ویژگیهای جدید
- FedCM : Added a new capability allowing clients to check if ChromeDriver supports FedCM commands without needing to execute them and catch errors ( crrev.com/c/4624924 , Bug: 1356159 ).
- Testing : Enabled test window reuse for testharness tests run via ChromeDriver in
wptrunnerto evaluate its impact on performance and flakiness ( crrev.com/c/4515180 , Bug: 1394572 ).
رفع اشکالات
- C++ standard compliance : Fixed undefined behavior caused by incorrectly using scoped enumerations (enum class) directly in format strings, addressing new Clang compiler warnings ( crrev.com/c/4628112 , Bug: 1456289 ).
- FedCM : Addressed a potential cause of test flakiness by fixing an edge case that prevented
setdelayenabledfrom working correctly ( crrev.com/c/4606064 , Bug: 1453412 ).
Internal changes and refactors
- BiDi : Bumped the BiDi Mapper dependency and updated the build script to pull the latest revision from 'main' by default ( crrev.com/c/4615087 , crrev.com/c/4615791 , Bug: 4226 ).
- Transitioned ChromeDriver to open and write all files using UTF-8 encoding explicitly ( crrev.com/c/4614522 ).
- Refactored
ChromeImplto eliminate its dependency onDevToolsHttpClientand reduced the usage ofSyncWebSocketFactoryandBrowserInfoin preparation for communicating over pipes instead of WebSockets ( crrev.com/c/4571690 , crrev.com/c/4571199 , Bug: 3480 ). - Removed the deprecated "default mode" for fenced frames and updated associated tests to enable the new feature flag, continuing the migration to FLEDGE auctions ( crrev.com/c/4558645 ).
- Improved FedCM tests by replacing generic
WaitForConditionassertions withassertTrueto clearly indicate when timeouts occur ( crrev.com/c/4590211 ). - Marked known flaky dangling
raw_ptrwarnings inlinux-relunittests ( crrev.com/c/4598070 ). - Updated OWNERS file for the BiDi mapper ( crrev.com/c/4614518 ).
ChromeDriver 115
ویژگیهای جدید
- Mobile emulation : Implemented support for User-Agent Client Hints in mobile emulation, allowing ChromeDriver to parse client hints from capabilities and presets and pass them to Chrome ( crrev.com/c/4498667 , crrev.com/c/4466129 , Bug: 4243 ).
- Mobile emulation : Updated mobile emulation presets to use the major version of the host browser instead of the ChromeDriver version when replacing the
%sformat string in the user agent ( crrev.com/c/4502850 , Bug: 4243 ). - Setup : Added support for downloading a specific ChromeDriver version for a given channel, improving automation scenarios where ChromeDriver runs on a different platform (like Android/WebView) than the host ( crrev.com/c/4550281 ). 116.0.5791.0
رفع اشکالات
- Classic : Fixed an issue where failing to resolve a node would incorrectly return an
UnknownErrorinstead of the standardNoSuchElementerror ( crrev.com/c/4508952 , Bug: 4440 ). - Mobile emulation : Added stricter assertions to mobile emulation presets to enforce that the
clientHints.mobileflag must be true if theuserAgentstring contains 'Mobile' ( crrev.com/c/4507142 , Bug: 4243 ). - Mobile emulation : Migrated
DeviceMetricsoverrides to use theEmulation.setDeviceMetricsOverrideCDP command instead of the deprecatedPagedomain equivalent ( crrev.com/c/4502614 , Bug: 4243 ).
Internal changes and refactors
- BiDi : Updated the BiDi Mapper dependency, enabling deep serialization features ( crrev.com/c/4535936 , crrev.com/c/4512195 ).
- Removed the deprecated
Connectmethod fromDevToolsClientin preparation for migrating ChromeDriver to communicate over pipes ( crrev.com/c/4521485 , Bug: 3480 ). - Migrated the codebase to prefer
base::Value::Dictoverbase::Valueand replaced deprecated methods likeFindStringKey(),SetKey(), andSetByDottedPath()( crrev.com/c/4529788 , crrev.com/c/4522701 , crrev.com/c/4515800 , crrev.com/c/4507150 ). - Switched to using
string_util.hfunctions in place of[w]ctype.hfor safer type conversions ( crrev.com/c/4529187 ). - Changed the seed file loading logic to use absolute paths to ensure consistency when scripts and Chrome run in different locations ( crrev.com/c/4504656 ).
- Removed the unused
CallAsyncFunction()method fromweb_view.h( crrev.com/c/4518363 , Bug: 3376 ). - Applied an automated rename of
base::raw_ptrtoraw_ptrto follow style guide preferences ( crrev.com/c/4476651 ).
ChromeDriver 114
ویژگیهای جدید
- Classic : Passed
MobileDeviceinformation toMobileEmulationOverrideManagerto lay the groundwork for future Client Hints and UserAgent overrides ( crrev.com/c/4447524 ). - Testing : Added test fixtures for ChromeDriver ( crrev.com/c/4459939 ).
رفع اشکالات
- Headless : Fixed a crash in the new headless mode by quietly ignoring scripted print preview requests (eg,
window.print()), aligning behavior with the old headless mode ( crrev.com/c/4436313 , Bug: 4385 ). - Capabilities : Fixed a use-after-move bug in ChromeDriver capabilities ( crrev.com/c/4462094 , Bug: 4243 ).
- DevTools : Removed a
DCHECKinDevToolsClientImpl::SendCommandInternalto prevent crashes when the DevTools connection breaks, as this is not an invariant violation ( crrev.com/c/4370486 , Bug: 4385 ).
Internal changes and refactors
- BiDi : Updated the BiDi Mapper dependency ( crrev.com/c/4418727 ).
- Addressed multiple dangling pointer warnings during unit test execution by properly managing unowned references and local destruction in
WebViewImpland performance logger tests ( crrev.com/c/4374824 , crrev.com/c/4368179 ). - Migrated codebase to use the new
base::Valuev2 API, replacing deprecated methods likeValue::SetPath(),Value::SetStringPath(), andbase::ListValue( crrev.com/c/4452309 , crrev.com/c/4431420 , crrev.com/c/4422897 , crrev.com/c/4377520 ). - Replaced all uses of
base::GUIDwithbase::Uuidto align with the core base library rename ( crrev.com/c/4455083 ). - Performed miscellaneous code cleanups, including shortening code, using monadic operations for
expected, removing dead code, and fixing style violations ( crrev.com/c/4475368 , crrev.com/c/4464199 ). - Updated tests involving fenced frames to use the
configattribute instead of the deprecatedsrcattribute ( crrev.com/c/4382231 ). - Removed ineffective
ShadowDOMV0usage ( crrev.com/c/4388302 ). - Reverted the addition of a flag for a Skia PDF fix (
SK_IGNORE_PDF_EOF_NEWLINE_FIX) to allow rebaselining ( crrev.com/c/4401451 ). - Updated the owner for the ChromeDriver test script and made adjustments to generate the configuration JSON exclusively for pinpoint ( crrev.com/c/4437492 , crrev.com/c/4298554 ).
- Added a missing include (
<cstring>) forstd::strleninweb_view_impl.ccto fix an IWYU build issue ( crrev.com/c/4376772 ). - Removed an unused test file (
orientation_test.html) ( crrev.com/c/4335668 ).
ChromeDriver 113.0.5672.63
Supports Chrome version 113
- Resolved issue 4205: Same object ids in Classic and BiDi [Pri-1]
- Resolved issue 4302: Don't assume that Mapper is in the first tab in ExecuteGetWindowHandles [Pri-1]
- Resolved issue 4356: Chrome 110 not utilizing pref value "download.default_directory" [Pri-1]
For more details, see the release notes .
ChromeDriver 113.0.5672.24
Supports Chrome version 113
- Resolved issue 4205: Same object ids in Classic and BiDi [Pri-1]
- Resolved issue 4302: Don't assume that Mapper is in the first tab in ExecuteGetWindowHandles [Pri-1]
- Resolved issue 4356: Chrome 110 not utilizing pref value "download.default_directory" [Pri-1]
For more details, see the release notes .
ChromeDriver 112.0.5615.49
Supports Chrome version 112
- Resolved issue 3517: Enable print feature for non-headless [Pri-]
- Resolved issue 4419: Large overhead on Speedometer when using chromedriver [Pri-3]
For more details, see the release notes .
ChromeDriver 112.0.5615.28
Supports Chrome version 112
- Resolved issue 4357: Chromedriver version 110.0.5481.77 session issue with --headless and --user-data-dir options. [Pri-1]
For more details, see the release notes .
ChromeDriver 111.0.5563.64
Supports Chrome version 111
- Resolved issue 4216: Run ChromeDriver with custom BiDiMapper [Pri-]
- Resolved issue 4300: Window handle is interoperable between Classic and BiDi [Pri-]
- Resolved issue 4325: Handling of toJSON in jsonSerialize of call_function.js deviates from the standard. [Pri-]
- Resolved issue 4330: DCHECK fails at DevToolsClientImpl::AddListener [Pri-]
- Resolved issue 4357: ChromeDriver session issue with --headless and --user-data-dir options [Pri-1]
For more details, see the release notes .
ChromeDriver 111.0.5563.41
Supports Chrome version 111
- Resolved issue 4357: ChromeDriver session issue with --headless and --user-data-dir options [Pri-1]
For more details, see the release notes .
ChromeDriver 111.0.5563.19
Supports Chrome version 111
- Resolved issue 4216: Run ChromeDriver with custom BiDiMapper [Pri-]
- Resolved issue 4300: Window handle is interoperable between Classic and BiDi [Pri-]
- Resolved issue 4325: Handling of toJSON in jsonSerialize of call_function.js deviates from the standard. [Pri-]
- Resolved issue 4330: DCHECK fails at DevToolsClientImpl::AddListener [Pri-]
For more details, see the release notes .
ChromeDriver 110.0.5481.77
Supports Chrome version 110
- Resolved issue 4193: Failed to start new session on Android 13 [Pri-]
- Resolved issue 4272: WebSocket should treat code=0 as an indication of FIN [Pri-]
- Resolved issue 4276: Fix connectivity issues in ChromeDriver [Pri-]
- Resolved issue 4295: ChromeDriver with
"webSocketUrl": trueis racy [Pri-] - Resolved issue 4297: ChromeDriver Bidi serializes incorrectly [Pri-]
For more details, see the release notes .
ChromeDriver 110.0.5481.30
Supports Chrome version 110
- Resolved issue 4193: Failed to start new session on Android 13 [Pri-]
- Resolved issue 4272: WebSocket should treat code=0 as an indication of FIN [Pri-]
- Resolved issue 4276: Fix connectivity issues in ChromeDriver [Pri-]
- Resolved issue 4295: ChromeDriver with
"webSocketUrl": trueis racy [Pri-] - Resolved issue 4297: ChromeDriver Bidi serializes incorrectly [Pri-]
For more details, see the release notes .
ChromeDriver 109.0.5414.74
Supports Chrome version 109
- Resolved issue 4179: BiDi session must support multiple connections [Pri-]
- Resolved issue 4203: Improve credits information [Pri-]
- Resolved issue 4263: Crash on Meta+A [Pri-]
For more details, see the release notes .
ChromeDriver 109.0.5414.25
Supports Chrome version 109
- Resolved issue 4179: BiDi session must support multiple connections [Pri-]
- Resolved issue 4203: Improve credits information [Pri-]
- Resolved issue 4263: Crash on Meta+A [Pri-]
For more details, see the release notes .
ChromeDriver 108.0.5359.71
Supports Chrome version 108 For more details, see the release notes .
ChromeDriver 108.0.5359.22
Supports Chrome version 108
- Resolved issue 4204: Fix the failing WPT test_top_level_and_one_child [Pri-]
- Resolved issue 4215: Rename chromedriver_mac64_m1 build to chromedriver_mac_arm64 [Pri-]
- Resolved issue 4221: Crash when a click command closes the browser [Pri-]
For more details, see the release notes .
ChromeDriver 107.0.5304.62
Supports Chrome version 107
For more details, see the release notes .
ChromeDriver 107.0.5304.18
Supports Chrome version 107
- Resolved issue 4180: Prohibit any BiDi commands handling until notified that BiDiMapper has started [Pri-]
- Resolved issue 4198: ChromeDriver BiDi should not assume that BiDiMapper is always in the first tab [Pri-]
- Resolved issue 4207: WebDriver error when running WPT [Pri-1]
For more details, see the release notes .
ChromeDriver 106.0.5249.61
Supports Chrome version 106
For more details, see the release notes .
ChromeDriver 106.0.5249.21
Supports Chrome version 106
- Resolved issue 4016: Add basic BiDi support to ChromeDriver (Mapper based) [Pri-1]
For more details, see the release notes .
ChromeDriver 105.0.5195.52
Supports Chrome version 105
For more details, see the release notes .
ChromeDriver 105.0.5195.19
Supports Chrome version
For more details, see the release notes .
ChromeDriver 104.0.5112.79
Supports Chrome version 104
For more details, see the release notes .
ChromeDriver 104.0.5112.29
Supports Chrome version 104
- Resolved issue 4121: WebDriver command sometimes fails with "unexpected command response" [Pri-1]
For more details, see the release notes .
ChromeDriver 104.0.5112.20
Supports Chrome version 104
- Resolved issue 4121: WebDriver command sometimes fails with "unexpected command response" [Pri-1]
For more details, see the release notes .
ChromeDriver 103.0.5060.134
Supports Chrome version 103
- Resolved issue 4048: target frame detached [Pri-]
- Resolved issue 4121: WebDriver command sometimes fails with "unexpected command response" [Pri-1]
For more details, see the release notes .
ChromeDriver 103.0.5060.53
Supports Chrome version 103
- Resolved issue 4048: target frame detached [Pri-]
For more details, see the release notes .
ChromeDriver 103.0.5060.24
Supports Chrome version 103
For more details, see the release notes .
ChromeDriver 102.0.5005.61
Supports Chrome version 102
- Resolved issue 1309282: chromedriver doesn't support multivalued switches [Pri-1]
For more details, see the release notes .
ChromeDriver 102.0.5005.27
Supports Chrome version 102
- Resolved issue 1309282: chromedriver doesn't support multivalued switches [Pri-1]
For more details, see the release notes .
ChromeDriver 101.0.4951.41
Supports Chrome version 101
- Resolved issue 4046: DCHECK hit when appending empty fenced frame [Pri-]
- Resolved issue 4080: Switching to nested frame fails [Pri-]
For more details, see the release notes .
ChromeDriver 101.0.4951.15
Supports Chrome version 101
- Resolved issue 4046: DCHECK hit when appending empty fenced frame [Pri-]
- Resolved issue 4080: Switching to nested frame fails [Pri-]
For more details, see the release notes .
ChromeDriver 100.0.4896.60
Supports Chrome version 100
- Resolved issue 4002: Support Fenced Frames [Pri-]
For more details, see the release notes .
ChromeDriver 100.0.4896.20
Supports Chrome version 100
- Resolved issue 4002: Support Fenced Frames [Pri-]
For more details, see the release notes .
ChromeDriver 99.0.4844.51
Supports Chrome version 99
For more details, see the release notes .
ChromeDriver 99.0.4844.35
Supports Chrome version 99
- REVERTED!!! Resolved issue 2269: Impossible to use non-BMP characters (code points above U+FFFF) [Pri-3]
- Resolved issue chromium:1295243: Regression in ChromeDriver sendKeys [Pri-1]
For more details, see the release notes .
ChromeDriver 99.0.4844.17
Supports Chrome version 99
For more details, see the release notes .
ChromeDriver 98.0.4758.102
Supports Chrome version 98
- Resolved issue 3933: Click at edge of viewport is ineffective without error [Pri-]
- REVERTED!!! Resolved issue 2269: Impossible to use non-BMP characters (code points above U+FFFF) [Pri-3]
- Resolved issue chromium:1295243: Regression in ChromeDriver sendKeys [Pri-1]
For more details, see the release notes .
ChromeDriver 98.0.4758.80
Supports Chrome version 98
- Resolved issue 3933: Click at edge of viewport is ineffective without error [Pri-]
- Resolved issue 2269: Impossible to use non-BMP characters (code points above U+FFFF) [Pri-3]
For more details, see the release notes .
ChromeDriver 98.0.4758.48
Supports Chrome version 98
- Resolved issue 3933: Click at edge of viewport is ineffective without error [Pri-]
- Resolved issue 2269: Impossible to use non-BMP characters (code points above U+FFFF) [Pri-3]
For more details, see the release notes .
ChromeDriver 97.0.4692.71
Supports Chrome version 97
- Resolved issue 3878: Better handling of fractional element coordinates for element click [Pri-]
For more details, see the release notes .
ChromeDriver 97.0.4692.36
Supports Chrome version 97
- Resolved issue 3878: Better handling of fractional element coordinates for element click [Pri-]
For more details, see the release notes .
ChromeDriver 97.0.4692.20
Supports Chrome version 97
- Resolved issue 3878: Better handling of fractional element coordinates for element click [Pri-]
For more details, see the release notes .
ChromeDriver 96.0.4664.45
Supports Chrome version 96
- Resolved issue 3445: Impossible to access elements in iframe inside a shadow root [Pri-3]
For more details, see the release notes .
ChromeDriver 96.0.4664.35
Supports Chrome version 96
- Resolved issue 3445: Impossible to access elements in iframe inside a shadow root [Pri-3]
For more details, see the release notes .
ChromeDriver 96.0.4664.18
Supports Chrome version 96
- Resolved issue 3445: Impossible to access elements in iframe inside a shadow root [Pri-3]
For more details, see the release notes .
ChromeDriver 95.0.4638.69
Supports Chrome version 95
- Resolved issue 3857: Host header or origin header is specified and is not whitelisted or localhost [Pri-1]
- Added
--allowed-originsargument
For more details, see the release notes .
ChromeDriver 95.0.4638.54
Supports Chrome version 95
- Resolved issue 3857: Host header or origin header is specified and is not whitelisted or localhost [Pri-1]
- Added
--allowed-originsargument
For more details, see the release notes .
ChromeDriver 95.0.4638.17
Supports Chrome version 95
- Resolved issue 3857: Host header or origin header is specified and is not whitelisted or localhost [Pri-1]
- Added
--allowed-originsargument
For more details, see the release notes .
ChromeDriver 95.0.4638.10
Supports Chrome version 95
- Resolved issue 3857: Host header or origin header is specified and is not whitelisted or localhost [Pri-1]
- Added
--allowed-originsargument
For more details, see the release notes .
ChromeDriver 94.0.4606.113
Supports Chrome version 94
For more details, see the release notes .
ChromeDriver 94.0.4606.61
Supports Chrome version 94
For more details, see the release notes .
ChromeDriver 94.0.4606.41
Supports Chrome version 94
For more details, see the release notes .
ChromeDriver 93.0.4577.63
Supports Chrome version 93
For more details, see the release notes .
ChromeDriver 93.0.4577.15
Supports Chrome version 93
For more details, see the release notes .
ChromeDriver 92.0.4515.107
Supports Chrome version 92
For more details, see the release notes .
ChromeDriver 92.0.4515.43
Supports Chrome version 92
- Resolved issue 3389: Host validation for ChromeDriver requests
For more details, see the release notes .
ChromeDriver 91.0.4472.101
Supports Chrome version 91
- Resolved issue 1205107: Unable to get attribute value for fields on the web application.
For more details, see the release notes .
ChromeDriver 91.0.4472.19
Supports Chrome version 91
- Resolved issue 3744: SendKeys() and Click() silently fail after link navigation
- Resolved issue 3746: attribute endpoint incorrectly updates values
For more details, see the release notes .
ChromeDriver 90.0.4430.24
Supports Chrome version 90
- Resolved issue 3708: GetElementLocation's inView fails for elements in shadow DOM
- Resolved issue 3721: Collect performance log for service worker when enabled
- Resolved issue 3731: AdbImpl::GetPidByName doesn't work correctly on non-standard Android OS's like on OnePlus
- Resolved issue 3733: Catastrophic failure with domain on localhost
- Resolved issue 3734: Driver should Error Attempting to set Cookie on Wrong Domain
- Resolved issue 3743: Refactor call function and fix remove element issue
For more details, see the release notes .
ChromeDriver 89.0.4389.23
Supports Chrome version 89
- Resolved issue 3667: Timed out receiving a message from renderer
- Resolved issue 3675: GetElementLocation uses inView method which mishandles boolean as array
- Resolved issue 3682: GetElementRegion returns incorrect size for elements which are partially out of viewport
- Resolved issue 3690: ChromeDriver fails if extensions use chrome.windows API
For more details, see the release notes .
ChromeDriver 88.0.4324.96
Supports Chrome version 88
- Resolved issue 3641: Page not getting loaded/rendered when browser window is not in focus with Chrome Beta v87 and chromedriver v(87/86)
For more details, see the release notes .
ChromeDriver 88.0.4324.27
Supports Chrome version 88
- Resolved issue 3611:
getText()output in protractor different from<element>.innerText - Resolved issue 3625: Improve element screenshot compatibility
- Resolved issue 3628: Stale Element Reference and wrong URL reported back with URL having another URL as part of its path
- Resolved issue 3631: Add support for the
webauthn:extension:largeBlobcapability - Resolved issue 3635: Chromedriver 86 -
chromedriver.quit()doesn't seem to pass unload event properly - Resolved issue 3649: Copying selected text to clipboard doesn't work on Windows 10 when using headless mode
For more details, see the release notes .
ChromeDriver 87.0.4280.88
Supports Chrome version 87
- Resolved issue 3641: Page not getting loaded/rendered when browser window is not in focus with Chrome Beta v87 and chromedriver v(87/86)
- Resolved issue 3657: Screenshot background browser timed out
For more details, see the release notes .
ChromeDriver 87.0.4280.20
Supports Chrome version 87
- Resolved issue 2421: Delete old port-forwarding channels on android adb-server
- Resolved issue 3474: Emulated mobile device list needs updating
- Resolved issue 3507: Implement "get computed role"
- Resolved issue 3508: Implement "get computed label"
- Resolved issue 3584: Rename ChromeDriver command line option --whitelisted-ips
- Resolved issue 3588: Bidi WebSocket connection
- Resolved issue 3594: Navigation completes prematurely if OOPIF loads before main page
- Resolved issue 3598: A command line option for devtools port to be forwarded to webview_devtools_remote socket
- Resolved issue 3608: Chromedriver debuggerAddress doesn't support ipv6
For more details, see the release notes .
ChromeDriver 86.0.4240.22
Supports Chrome version 86
- Resolved issue 3370: Shut down Chrome gracefully or cookie will not be correctly saved to SQLite persistence file
- Resolved issue 3401: Get Element Location JS doesn't locate the visible center of the element
- Resolved issue 3462: For sendKeys, CMD key don't work for MAC
- Resolved issue 3541: Improve log between Client and ChromeDriver
- Resolved issue 3559: Output Chrome version when ChromeDriver reports incompatible
For more details, see the release notes .
ChromeDriver 85.0.4183.87
Supports Chrome version 85
- Resolved issue 3578: Chrome 85 no longer allows graceful interaction with windows when an alert dialog is open
For more details, see the release notes .
ChromeDriver 85.0.4183.83
Supports Chrome version 85
- Resolved issue 3577: ChromeDriver 85 doesn't detect changed Chrome directory (C:\Program Files)
For more details, see the release notes .
ChromeDriver 85.0.4183.38
Supports Chrome version 85
- Resolved issue 3214: ChromeDriver78: Sendkeys resets text selection with contenteditable
- Resolved issue 3376: Remove LaunchApp command from ChromeDriver
- Resolved issue 3432: Sometimes
NavigationTrackerfails to detect when the page has finished loading - Resolved issue 3481: New Print endpoint according to w3c spec
- Resolved issue 3488: driver.get doesn't throw error when proxy is wrong configured
- Resolved issue 3502: Use
document.hasFocus()to check if element is focused - Resolved issue 3515: selenium.common.exceptions.WebDriverException: Message: unknown error: bad inspector message
For more details, see the release notes .
ChromeDriver 84.0.4147.30
Supports Chrome version 84
- Resolved issue 3420: after switching to the print window, the chromedriver stops responding
- Resolved issue 3421: Driver returns Cyrillic text without styles
- Resolved issue 3422: GetElementText breaks with prototype 1.6.0.3
- Resolved issue 3434: Cannot get 'assert' messages from the 'browser' logs
For more details, see the release notes .
ChromeDriver 83.0.4103.39
Supports Chrome version 83
- Updated Chromedriver to work correctly with prototype.js.
For more details, see the release notes .
ChromeDriver 83.0.4103.14
Supports Chrome version 83
- Resolved issue 1778: Deprecate launchApp from ChromeDriver
- Resolved issue 2520: InitSession can wait forever when Chrome is unresponsive
- Resolved issue 3120: Headless mode download from new tab
- Resolved issue 3234: Confirm semicolon found before substring
- Resolved issue 3240: ExecuteGetElementRect doesn't check returned status from GET_SIZE
- Resolved issue 3331: The
get_cookies()method is returning 'expiry' keys of type double, but should be int64 in w3c mode - Resolved issue 3332: Retry timeout logged as severe
- Resolved issue 3339: Chromedriver exited unexpectedly with code null, signal SIGTRAP
- Resolved issue 3351: Improve Security Considerations message
- Resolved issue 3352: Support SendKeys for color elements
- Resolved issue 3353: Wait for Pending Navigation continues after frame context destroyed
- Resolved issue 3375: Chromedriver v80 stalls on getPageSource on some sites
- Resolved issue 3383: ChromeDriver 80+ on Windows seems to exit or stall on certain element or click commands
- Resolved issue 3399: Remove wasThrown check
ChromeDriver 81.0.4044.138
Supports Chrome version 81
- Updated Chromedriver to work correctly with prototype.js.
For more details, see the release notes .
ChromeDriver 81.0.4044.69
Supports Chrome version 81
- Fixed: Chromedriver crashes on getPageSource on some sites.
- Fixed: ChromeDriver crashes on certain element or click commands.
For more details, see the release notes .
ChromeDriver 81.0.4044.20
Supports Chrome version 81
- Fixed error when attempting to get location of html element.
- Get and Add Cookie commands are now frame specific.
- Resolved some issues that occur with sites that redefine standard Javascript objects.
- ChromeDriver will continue to wait for loading to complete after receiving a Target Closed message.
- Chromedriver now returns spec compliant error code for timeouts
- Fixed: ChromeDriver Unexpected Slow response time on NewSession Command.
- User-defined timeouts of over 10 minutes are now supported.
- Fixed: ChromeDriver unable to connect to DevTools due to IPv4 vs IPv6 mismatch.
- Restored search order for Chrome binary on Linux.
For more details, see the release notes .
ChromeDriver 80.0.3987.106
Supports Chrome version 80
- Restored search order for Chrome binary on Linux
For more details, see the release notes .
ChromeDriver 80.0.3987.16
Supports Chrome version 80
- Fixed Load page was aborted when using a proxy.
- Chromedriver now waits for Current frame to load.
- ChromeDriver log will include the port used by the driver.
- Enabled SetGeoLocation for w3c mode.
- Added missing Alert text for UnexpectedAlertOpen status.
- Improved message when CRX2 Extension is loaded.
- Fixed a potential race condition in ExecuteGetPageSource.
- ChromeDriver will add --ignore-certificate-errors flag when acceptInsecureCerts capability is true
- Updated the error message and return status for no such execution context
- Fixed: ChromeDriver may block indefinitely while waiting for pending navigation.
- Added SameSite attribute to AddCookie and GetCookie.
For more details, see the release notes .
ChromeDriver 79.0.3945.36
Supports Chrome version 79
Includes the following change over version 79.0.3945.16:
- Fixed incorrect calculation of element coordinates
For more details, see the release notes .
ChromeDriver 79.0.3945.16
Supports Chrome version 79
- Fixed ChromeDriver crash caused by javascript alert fired during command execution
- Fixed a bug causing Chromedriver to lock when an alert is fired while taking a screenshot
- Removed --ignore-certificate-errors from Chrome launch command
- Changed platform and platformName to windows on Win10
- Fixed undefined window.navigator.webdriver when "enable-automation" is excluded
- Fixed WPT test "test_not_editable_inputs[hidden]"
- Fixed "Element is not clickable" when using headless mode
For more details, see the release notes .
ChromeDriver 78.0.3904.105
Supports Chrome version 78
Includes the following change over version 78.0.3904.70: * Fixed incorrect calculation of element coordinates
For more details, see the release notes .
ChromeDriver 78.0.3904.70
Supports Chrome version 78
Includes the following change over version 78.0.3904.11:
- Reverted the change to adjust screeshot size on retina display, due to multiple issues reported
For more details, see the release notes .
ChromeDriver 78.0.3904.11
Supports Chrome version 78
- Fixed several issues in JavaScript object serialization
- Fixed a bug in capability matching for Chrome on Android
- Implemented permissions automation
- Fixed screenshot size on retina display
- Fixed page load timeout in some scenarios
- Improved platformName capability matching
- Fixed error code returned while moving pointer to drop-down list options
- Fixed an issue affecting download in headless mode
For more details, see the release notes .
ChromeDriver 77.0.3865.40
Supports Chrome version 77
Includes the following changes over version 77.0.3865.10:
- Fixed two bugs in serializing and deserializing JavaScript objects
- Fixed handling of platformName: android while matching capabilities
For more details, see the release notes .
ChromeDriver 77.0.3865.10
Supports Chrome version 77
- Fixed several issues in the implementation of Actions API
- Improved JavaScript code execution and result handling
- Fixed a bug that incorrectly rejected POST requests with empty body in OSS mode
- A more robust navigation tracker
- Support eager page load strategy
- Added New Window command from W3C WebDriver spec
- Support to save file downloads in headless mode
- Added support for loading CRX3 extensions
For more details, see the release notes .
ChromeDriver 76.0.3809.126
Supports Chrome version 76
Includes the following changes over version 76.0.3809.68:
- Fixed two bugs in serializing and deserializing JavaScript objects
For more details, see the release notes .
ChromeDriver 76.0.3809.68
Supports Chrome version 76
Includes the following changes over version 76.0.3809.25:
- Fixed a bug in detecting circular reference in JavaScript objects
- Fixed a bug that causes ChromeDriver to crash when certain types of JavaScript errors occur
- Fixed a bug that prevents actions API to interact with elements inside shadow DOMs
- Fixed a bug in keeping track of modifier key state between actions API commands
- Fixed a bug in keeping track of pointer locations between actions API commands
- Save "Cannot call non W3C standard command while in W3C mode" error to log file when it occurs
For more details, see the release notes .
ChromeDriver 76.0.3809.25
Supports Chrome version 76
Includes the following changes over version 76.0.3809.12:
- Fixed a bug that incorrectly rejected POST requests with empty body in OSS mode
- Added new endpoints for retrieving Chrome log
- Added endpoint for Is Displayed command in W3C mode
For more details, see the release notes .
ChromeDriver 76.0.3809.12
Supports Chrome version 76
- Finished implementation of Actions API
- Improved spec compliance of script timeout handling
- Improved serialization of results from Execute Script command
- Fixed issues in scrolling element into view
- Added handling of Cancel key defined in WebDriver spec
- Fixed processing of unhandled alert error response
- Fixed processing of
<details>element - Updated excludeSwitches option to allow optional leading dashes in switch names
For more details, see the release notes .
ChromeDriver 75.0.3770.140
Supports Chrome version 75
Includes the following changes over version 75.0.3770.90:
- Fixed a bug that caused ChromeDriver to crash when some types of JavaScript error occurs
- Fixed a bug in preserving modifier key state between actions
For more details, see the release notes .
ChromeDriver 75.0.3770.90
Supports Chrome version 75
Includes the following changes over version 75.0.3770.8:
- Fixed a bug that incorrectly rejected POST requests with empty body in OSS mode
- Added new endpoints for retrieving Chrome log
For more details, see the release notes .
ChromeDriver 75.0.3770.8
Supports Chrome version 75
The most noticeable change is ChromeDriver now runs in W3C standard compliant mode by default . Other changes include:
- Fixed a bug that caused blur event to be raised twice during element clear
- Renamed capability loggingPrefs to goog:loggingPrefs, as required by W3C standard
- Fixed error handling in W3C mode
- Correct handling of creating cookies without leading dot in the domain name
- Allows null for script timeout
- Fixed Element Send Keys command to file input with 'multiple' attribute
- Fixed Get Active Element command to return "no such element" error when no active element exists
- Fixed navigation to malformed URL to return "invalid argument" error
- Fixed HTTP status code when invalid session id is received
- Fixed error response when input parameter is missing or malformed
- Fixed Execute Script command to handle line-oriented JavaScript comment
For more details, see the release notes .
ChromeDriver 74.0.3729.6
Supports Chrome version 74
- Fixed a bug that generated unexpected debug.log file on Windows
- Fixed mouse clicking and drag / drop inside SVG document
- Added cache-control header in responses from ChromeDriver
- Fixed the type of error when click is intercepted by a different element
- Fixed a bug that caused ChromeDriver to fail on Linux devices without /dev/shm
- Fixed some types of double click events
- Fixed Get Sessions command
- Fixed error checking in Switch To Frame command
- Fixed Get Page Source command
For more details, see the release notes .
ChromeDriver 73.0.3683.68
Supports Chrome version 73
- Fixed a bug that generated unexpected debug.log file on Windows
- Fixed error code returned from Execute Script command in some scenarios
- Added cache-control header in responses from ChromeDriver
- Made the HTTP server keep connection alive by default
- Fixed Close Window command to correctly handle user prompts
- Fixed error code returned while sending keys to disabled element
- Improved spec compliance of timeout value handling
- Improved spec compliance of Add Cookie command
- Increased HTTP server listening queue length
- Fixed Is Element Displayed command in v0 shadow DOM
- Added warning about Element Clear command behavior change in log file
- Fixed Execute Script command to correctly convert document.all into JSON format
- Improved handling of bad element reference
For more details, see the release notes .
ChromeDriver 2.46
Supports Chrome v71-73
- Fixed error code returned from Execute Script command in some scenarios
- Made the HTTP server keep connection alive by default
- Fixed Close Window command to correctly handle user prompts
- Fixed error code returned while sending keys to disabled element
- Improved spec compliance of timeout value handling
- Improved spec compliance of Add Cookie command
- Improved spec compliance of Switch to Frame command
- Increased HTTP server listening queue length
- Fixed Is Element Displayed command in v0 shadow DOM
- Fixed Element Double Click command
- Added warning about Element Clear command behavior change in log file
- Fixed Execute Script command to correctly convert document.all into JSON format
- Improved handling of bad element reference
For more details, see the release notes .
ChromeDriver 2.45
Supports Chrome v70-72
- Fixed New Session is not spec compliant
- Fixed ChromeDriver shouldn't launch Chrome if Chrome and ChromeDriver versions are incompatible
- Fixed Find Element command returns wrong error code when an invalid locator is used
- Fixed Some ChromeDriver status codes are wrong
- Fixed Compile error in JS inside of WebViewImpl::DispatchTouchEventsForMouseEvents
- Fixed Window size commands should handle user prompts
- Fixed ChromeDriver doesn't start Chrome correctly with Chrome option "user-data-dir="
- Fixed Status command is not spec compliant
- Fixed Add support for strictFileInteractability
ChromeDriver 2.44
Supports Chrome v69-71
- Fixed WindowMaximize on Mac
- Fixed Incorrect 'alert open error' for window handle call
- Fixed Element Send Keys should get "text" property in W3C mode
- Fixed XML special case of Is Element Enabled is not handled as per spec
- Fixed XML special case of Get Element CSS Value is not handled as per spec
- Fixed Set Window Rect needs to check for invalid input
- Fixed Support new unhandledPromptBehavior modes
ChromeDriver 2.43
Supports Chrome v69-71
Changes include:
- Fixed Parsing of proxy configuration is not standard compliant
- Fixed Launch app command is flaky
- Fixed Screenshot of element inside iFrame is taken incorrectly
- Added ChromeDriver supports window resizing over a remote connection
- Fixed Error codes are not handled in Clear element
- Fixed Not waiting until element is visible
- Fixed Get element property is not implemented
- Fixed Switch to Frame is not spec compliant
- Fixed Execute Async Script doesn't return spec compliant error codes
- Fixed Execute Script doesn't return spec compliant error codes
- Fixed Error code in ExecuteGet is not conformant with spec
- Fixed Send Alert Text is not returning spec compliant error codes
- Fixed clear() on an input type="date" pretends element is not user-editable
- Fixed Chromedriver gets window handle for the tab which is opened manually
- Fixed Allow append or start a new log file for chromedriver
- Fixed New Session doesn't invoke w3c mode if flag is in firstMatch
ChromeDriver 2.42
Supports Chrome v68-70
Changes include:
- Fixed ClickEelement in Mobile emulation
- Fixed whitelisted IPs with IPv4
- Fixed starting ChromeDriver with whitelisted-ips flag on Mac OS
- Fixed SetTimeout to accept both pre-W3C and W3C formats
- Fixed take element screenshot
- Fixed ChromeDriver is looking for Chrome binaries in a system PATH as well
- Fixed Maximize window and Full Screen
- Implemented log-replay feature. ( doesn't work for Android and Remote Browser yet )
- Fixed some error codes were not compliant to W3C standard
- Fixed console.log with multiple arguments not handled properly
- Fixed GetElementRect should allow doubles
- Fixed touch emulation
ChromeDriver 2.41
Supports Chrome v67-69
Changes include:
- Fixed issue when ChromeDriver runs with "whitelisted-ips" option
- Remote Debugging Port is returned in capabilities
- Implemented getting window size on Android
- Desktop Chrome launch error messages are improved
- ChromeDriver fails fast when unable to start Chrome binaries
- Close Window return value conforms with spec