qq_40395537 2018-02-13 19:38 采纳率: 55.6%
浏览 1094
已结题

C#webbrowser 多个form表单 选择其中一个提交 来个高手

  <form method="post" action="/gp/item-dispatch/ref=olp_atc_new_2" class="a-spacing-none">
                <input type="hidden" name="session-id" value="147-3113226-4993231">
                <input type="hidden" name="qid">
                <input type="hidden" name="sr">
                <input type="hidden" name="signInToHUC" value="0" id="signInToHUC">
                <input type="hidden" name="metric-asin.B011MYEMKQ" value="1">
                <input type="hidden" name="registryItemID.1">
                <input type="hidden" name="registryID.1">
                  <input type="hidden" name="itemCount" value="1">
                <input type="hidden" name="offeringID.1" value="xXgcZtPBgpFHeUzpX2V7SNk9CfHhhXhyLioVQ%2FwdUcLYBorDSaBIDRa3rxB%2B2CLtApICpC4QCMcejhjG5ARwqRNSnlondz%2BxyqSxF1m7iiPyCS6Fab0EwYwZe0J1sAxYETAhIfWeye1fT2ySUEgi4pJTZvbJ27Qn">
                <input type="hidden" name="isAddon" value="1">

                  <span class="a-declarative" data-action="olp-click-log" data-olp-click-log="{&quot;subtype&quot;:&quot;main&quot;,&quot;type&quot;:&quot;addToCart&quot;}">
                             <span class="a-button a-button-normal a-spacing-micro a-button-primary a-button-icon"><span class="a-button-inner"><i class="a-icon a-icon-cart"></i><input name="submit.addToCart" class="a-button-input" type="submit" value="Add to cart"><span class="a-button-text" aria-hidden="true">
                                Add to cart
                                <span class="a-offscreen"">from seller Lacey Lane and price $29.99</span>

                             </span></span></span>
                  </span>
          </form>

                    </span></span></span>
                  </span>
          </form>




                    多个form表单相同   唯一不同的是每一个表单的action的值不一样
                      <span class="a-offscreen"">from seller Lacey Lane and price $29.99</span>

                        这一个也不一样   求大神    这样的表单 在一个页面可能有好几十个  我想匹配一个 然后点击
  • 写回答

6条回答

  • cocoxox 2018-02-14 01:16
    关注

    这不是很简单,js提交不久行了

    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 MATLAB动图问题
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名