@skrillex1224/playwright-toolkit 2.1.277 → 2.1.279

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4683,9 +4683,7 @@ var buildActionOptions = (options = {}) => {
4683
4683
  if (options && options.timeout != null) {
4684
4684
  actionOptions.timeout = options.timeout;
4685
4685
  }
4686
- if (options && options.force != null) {
4687
- actionOptions.force = options.force;
4688
- }
4686
+ actionOptions.force = true;
4689
4687
  const humanConfig = buildTypingHumanConfig(options);
4690
4688
  if (humanConfig) {
4691
4689
  actionOptions.human_config = humanConfig;
@@ -4842,7 +4840,7 @@ var CloakBrowserHumanize = {
4842
4840
  return false;
4843
4841
  }
4844
4842
  if (typeof resolvedTarget.hover === "function") {
4845
- await resolvedTarget.hover();
4843
+ await resolvedTarget.hover({ force: true });
4846
4844
  return true;
4847
4845
  }
4848
4846
  const box = await resolvedTarget.boundingBox?.();
@@ -5014,10 +5012,10 @@ var CloakBrowserHumanize = {
5014
5012
  }
5015
5013
  await ensureDesktopHumanized(page);
5016
5014
  if (typeof page.clear === "function") {
5017
- await page.clear(selector);
5015
+ await page.clear(selector, { force: true });
5018
5016
  return;
5019
5017
  }
5020
- await page.fill(selector, "");
5018
+ await page.fill(selector, "", { force: true });
5021
5019
  },
5022
5020
  async warmUpBrowsing(page, baseDuration = 3500) {
5023
5021
  if (isMobilePage(page)) {