从2个按钮中单击顶部按钮

时间:2019-04-27 22:53:38

标签: javascript jquery safari click applescript

我目前正在使用自动化器,并且操作受限,我认为此方法是解决方案,

如果有人可以帮助我使用野生动物园应用程序创建AppleScript,我将在如何单击此链接方面遇到麻烦。那将帮助我节省很多时间。 如果您可以帮助将applescript和jQuery或javascript结合使用,请单击

这是点击的目标链接

<a href="/admin/products/3424746569792/variants/27652747591744" class="ui-button ui-button--size-small" data-bind-event-click="saveScrollPosition(this)" data-track-click="{ action: 'Edit variant', category: 'Products' }">Edit</a>

一堆HTML:

<td class="new-variants-table__cell">
              <div class="next-field__connected-wrapper next-field__connected-wrapper--align-right">
                <a href="/admin/products/3424746569792/variants/27652747591744" class="ui-button ui-button--size-small" data-bind-event-click="saveScrollPosition(this)" data-track-click="{ action: 'Edit variant', category: 'Products' }">Edit</a>
                <button class="ui-button ui-button--size-small" data-bind-event-click="deleteVariantModal_27652747591744.show()" data-track-click="{ action: 'Delete variant', category: 'Products' }" type="button" name="button"><svg aria-hidden="true" focusable="false" class="next-icon next-icon--size-20"> <use xlink:href="#delete-minor"></use> </svg></button>

              </div>
              <script data-define="{deleteVariantModal_27652747591744: new Shopify.Modal(this)}" type="text/html" class="modal_source"><header><h2>Delete Chrome?</h2><button type="button" name="button" class="btn--link close-modal">Close</button></header>

<form class="edit_product_variant" id="edit_product_variant_27652747591744" autocomplete="off" data-define="{ deleteForm: new Shopify.Form(this) }" data-tg-refresh-on-success="modal variant-row-27652747591744" data-tg-remote="true" action="/admin/products/3424746569792/variants/27652747591744" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="_method" value="delete" /><input type="hidden" name="authenticity_token" value="vHjz4tkmojd0dpVMZeZsQt3Bn/EaumOoZrNxR1awHaHaQnNQSsO1YxJglzNwoNthWoBwIlCjlxVPwmiLpTc5UA==" />
  <div class="body">
    <p>
      Are you sure you want to delete the variant <strong>Chrome</strong>? This action cannot be reversed.
    </p>
  </div>
  <div class="buttons">
    <button class="ui-button close-modal" type="button" name="button">Cancel</button>
    <button class="ui-button js-btn-loadable btn-destroy-no-hover" type="submit" name="button">Delete</button>
  </div>
</form></script>
            </td>

0 个答案:

没有答案