applescript - 使用 AppleScript 在 eBay 上单击按钮时出现错误消息
问题描述
我正在尝试使用 AppleScript 在 eBay 中自动插入文章。因此,我必须找到一个代码,它会自动单击 eBay 页面中的按钮。我使用这段代码:
to clickID(theId)
tell application "Safari"
do JavaScript "document.getElementById('" & theId & "').click();" in document 1
end tell
end clickID
clickID("w0-find-product-search-bar-search-field")
此代码不起作用。在源代码中,我收到此错误消息: [错误] [仅报告] 拒绝连接到https://backstory.ebay.de/customer/v1/customer_service?ct=1635315001915因为它既不出现在 connect-src指令也不是内容安全策略的 default-src 指令。
有什么我可以做的,我的代码可以工作,还是 ebay 只是禁止在他们的网站上使用这些代码?
解决方案
推荐阅读
- php - Square 连接 API | 通过 API 生成个人访问令牌
- javascript - AWS Lambda & JSON.stringify \\n -> \n - 不适用于 Slack API
- ios - 滚动时 setNeedsStatusBarAppearanceUpdate() 似乎卡在了我的应用程序的主队列中
- java - 无法使用机器人类取消“身份验证弹出”
- flutter - 如何使用颤振显示数据json中的折线图
- python - 如何使用 GDAL 将数据保存到 PNG
- javascript - 为什么我的 Swiper 滑块在 Django 中不起作用?
- ios - Websocket在连接后立即断开
- python - 没有焦点的 urwid 自动完成编辑小部件或弹出窗口
- python - 为什么我在尝试从列表中绘制散点图时得到 ValueError