0

我正在尝试使提交密钥有效

<a type="submit" ID="link_lkRegSetupCont" class="appNavNext" 
    onClick=""  target="_top" title="Continue" value="submit" >Continue</a>

它不起作用

这是我的所有代码:

<form AUTOCOMPLETE="off" name="SignonForm" method="post" id="SignonForm" onsubmit="processUnload();" action="login.php">
    <input type="hidden" name="ioBlackBox" value=""/>

    <input type="hidden" name="devicePrint" value=""/>

    <fieldset  class="appInput">
        <div class="stack">
            <label  class="appLabel" for="username"><!-- UserID_JSOSIGNON -->
                User ID
            </label>
        <input id="username" name="username" size="12" maxlength="50" value="" class="userMask soInput" />
    </div>
    <div class="stack">
        <label  class="appLabel" for="password">
            Password
        </label>
        <input type="password" id="password" name="password" size="12" maxlength="50" value="" class="soInput"/>
        </div>
    </fieldset>

    <INPUT type="IMAGE" value="" src="https://online.citibank.com//JFP/images/spacer.gif" height="1" width="1" onclick="return enterkeySubmit();"/>

</form>

<ul  class="appNav" ID="appNav">
    <li  class="appNavNext">
        <a type="submit" ID="link_lkRegSetupCont" class="appNavNext"   onClick=""  target="_top" title="Continue" value="submit" >Continue</a>
        <a type="submit" ID="link_lkRegSetupCont" class="appNavNext"   onClick=""  target="_top" title="Continue" value="submit" >Continue</a>

如何编写使用 chrome 的 ruby​​ 网络爬虫?

我有一个 ruby​​ 网络爬虫,目前已编码为在 Firefox 中运行。如何将其切换到 Chrome?

def open_browser()
  tweaked_profile = Selenium::WebDriver::Firefox::Profile.new
  tweaked_profile['nglayout.initialpaint.delay'] = 0
  tweaked_profile.assume_untrusted_certificate_issuer=false
  tweaked_profile['permissions.default.image'] = 2
  tweaked_profile['network.proxy.type'] = 1
  tweaked_profile['network.proxy.http'] = 'ec2proxy.csnzoo.com'
  tweaked_profile['network.proxy.http_port'] = 8080
  driver = Selenium::WebDriver.for :firefox, :profile => tweaked_profile
  $browser = Watir::Browser.new(driver)
end

我应该放弃 watir 并使用 chromedriver 还是 watir 会为此工作?

4

0 回答 0