matimagallanes 0 Posted September 18, 2017 Report Share Posted September 18, 2017 Hi, Is it possible to use xpath within ubot? I just installed "Free Xpath Plugin" navigate("https://www.google.com/", "Wait") wait(3) type text(<name="q">, "Apple Trees", "Standard") But not found how to use it inside UBOT Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted September 19, 2017 Report Share Posted September 19, 2017 You answered your first question. "Is it possible to use xpath within ubot? I just installed "Free Xpath Plugin" Do you know how to use Xpath? navigate("https://www.google.com/","Wait") wait for element(<id="sb_ifc0">,20,"Appear") type text(<name="q">,"Apple Trees","Standard") click(<name="btnK">,"Left Click","No") add list to list(%TITLES,$list from text($plugin function("XpathPlugin.dll", "$Generic Xpath Parser", $document text, "//div[@class=\"rc\"]", "InnerText", ""),$new line),"Delete","Global") alert(%TITLES) While it is probably not what you want from the results it shows functionality. Knowing some Xpath is helpful. google seardnsite: ubotstudio.com xpath Regards,CD Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.