【问题标题】:JS script comes out with website's error of invalid shipping methodJS脚本出现网站错误发货方式无效
【发布时间】:2019-04-19 09:31:23
【问题描述】:

在朋友网站上运行一个简单的 JS 脚本进行自动结帐以测试漏洞

var address = "1240 Loma Vista Dr";

document.getElementById("shipping:street1").value = address;
function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}

async function demo() {
  console.log('Taking a break...');
  await sleep(2000);
  console.log('Two seconds later');
}
document.getElementsByClassName("continue button")[1].click();

这是一个检查网站按钮代码的元素,以确保我没有不当使用click()

<button type="button" class="continue button validation-passed" title="Save and Continue" onclick="shipping.save();saveBilling();"><span><span>Save and Continue</span></span></button>

/\ 显示来自站点的错误结果。运行代码时显示我从 google chrome 控制台收到的错误消息。该网站给我这个错误?但我 100% 确定我输入了有效的送货地址。那么为什么它会给我这个错误呢?

【问题讨论】:

    标签: javascript web e-commerce


    【解决方案1】:

    有人知道发生了什么吗? :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-06
      • 2021-02-20
      • 2012-08-10
      • 2020-05-22
      • 2022-12-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多