Jump to content
UBot Underground

Exbrowser|Xpath: Google Search Button Clicking Issue


Recommended Posts

Hi

 

if someone can help please. It worked before but it stopped clicking the Google Search button and I can't find out how to make it work again.

 

Here the code I use:

plugin command("ExBrowser.dll", "ExBrowser Click", "x://input[@value=\"Google Search\"]")

I checked the html code and it seems the same button code appears twice there:

 

http://i.grab.la/08b16-ad29aa03-f06e-4d35-bbc4-01c74d729c75.png

role="listbox"></ul><style>#sbt{display:none}.sbct{padding:0px 16px;line-height:22px;display:flex;align-items:center;min-width:0;}.sbtc{display:flex;flex:auto;flex-direction:column;min-width:0;}.sbl1{display:flex;font-size:16px;color:#212121;flex:auto;align-items:center;word-break:break-word;padding-right:8px}.sbl1p{color:#52188c}.sbl1>span{flex:auto}.sbab{display:flex;flex:0 1 auto;align-self:stretch}.sbdb{color:#36c;cursor:pointer;font:13px arial,sans-serif;align-self:center;padding-right:3px;text-decoration:none}.sbdb:hover{text-decoration:underline}.sbhl{background:#eee}</style><li class="sbct" id="sbt" role="presentation"><div class="sbtc" role="option"><div class="sbl1"><span></span></div></div><div class="sbab"><div class="sbai">Remove</div></div></li><div jsname="VlcLAe" class="VlcLAe"> <style>.VlcLAe{height:58px}</style> <center> <input value="Google Search" aria-label="Google Search" name="btnK" type="submit"> <input value="I'm Feeling Lucky" aria-label="I'm Feeling Lucky" name="btnI" type="submit" jsaction="sf.lck">  </center> </div><a class="lh87ke" href="https://support.google.com/websearch/answer/106230?hl=en-DE" jsname="lh87ke">Learn more</a></div><style>.JUypV{font-size:8pt;margin-top:4px;}</style><div jsname="JUypV" jscontroller="IvlUe" class="JUypV" data-async-context="async_id:duf3-46;authority:0;card_id:;entry_point:0;feature_id:;ftoe:0;header:0;open:0;suggestions:;suggestions_subtypes:;suggestions_types:;surface:0;title:;type:46"><style>a.duf3{color:#777;float:right;font-style:italic;-webkit-tap-highlight-color:rgba(0,0,0,0);tap-highlight-color:rgba(0,0,0,0)}a.IKDlBc{color:rgba(0,0,0,.54);float:none;font-style:normal}a.aciXEb{padding:0 5px;background:rgba(255,255,255,.9);}.RTZ84b{color:#9e9e9e;cursor:pointer;padding-right:8px}.XEKxtf{color:#9e9e9e;float:right;font-size:12px;padding-bottom:4px}</style><div jscontroller="xz7cCd" style="display:none" jsaction="rcuQ6b:npT2md"></div><div id="duf3-46" data-jiis="up" data-async-type="duffy3" data-async-context-required="type,open,feature_id,async_id,entry_point,authority,card_id,ftoe,title,header,suggestions,surface,suggestions_types,suggestions_subtypes" class="y yp" data-ved="0ahUKEwjZoNGe3-feAhVLDOwKHQgiBUcQ-0EIBQ"></div><a class="duf3 aciXEb" href="#" id="sbfblt" data-async-trigger="duf3-46" jsaction="async.u" data-ved="0ahUKEwjZoNGe3-feAhVLDOwKHQgiBUcQtw8IBg">Report inappropriate predictions</a></div></div><div class="FPdoLc VlcLAe">  <center> <input value="Google Search" aria-label="Google Search" name="btnK" type="submit"> <input value="I'm Feeling Lucky" aria-label="I'm Feeling Lucky" name="btnI" type="submit" jsaction="sf.lck">  </center> </div></div>  </div> </form></div><div class="sfbgx"></div><div id="gac_scont"></div><dialog class="spch-dlg" id="spch-dlg"><div class="spch s2fp-h" style="display:none" id="spch"><button class="close-button" id="spchx">×</button><div class="spchc" id="spchc"><div class="D449Nc"><div class="button-container"><span class="r8s4j" id="spchl"></span><span class="button" id="spchb"><div class="H1aTHf"><span class="fcn9Hf"></span><div class="sM5MNb"><span class="Aax87c"></span><span class="ae3xF"></span></div></div></span></div><div class="otCIDb"><span class="spcht" id="spchi" style="color:#777"></span><span class="spcht" id="spchf" style="color:#000"></span></div><div class="google-logo"></div></div><div class="GuIecd"><div class="bQ9ks"></div></div></div></div></dialog><div jscontroller="fEVMic" style="display:none" data-u="0" jsdata="C4mku

I tried to choose the first occurrence but it doesn't work, like:

"x://input[@value=\"Google Search\"])[1]")

Thanks

 

Link to post
Share on other sites

This worked for me:

plugin command("ExBrowser.dll", "ExBrowser Launcher", "Chrome", "", "")
plugin command("ExBrowser.dll", "ExBrowser Navigate", "http://google.com")
plugin command("ExBrowser.dll", "ExBrowser Type Text2", "x://input[@name=\'q\']", "Yes", "cookie recipe", 10, 50)
plugin command("ExBrowser.dll", "ExBrowser Click", "x://input[@name=\'btnK\'][1]")
  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...