Jump to content
UBot Underground

How To Interact With The Browser With A Plugin


Go to solution Solved by nichewebstrategies,

Recommended Posts

Say I want to interact with the pages DOM,generated HTML,not just feeding a document text input into the plugin? like using eval

 

ubut.runscript(eval(document.title))

 

thanks for any help

Link to post
Share on other sites

Say I want to interact with the pages DOM,generated HTML,not just feeding a document text input into the plugin?

 

thanks for any help

 

 

If you automate webpage like posting data, interacting with sites you need to implement webdriver i.e. Selenium , just lik Exbrowser.

 

In order to only scrape content from html page you can use html agility (xpath version 1 is included)

 

Hope it helps 

  • Like 1
Link to post
Share on other sites

thanks yeah I can run javascript from inside the plugin get/set global variables but that isn't really the solution I am looking for,would like to know how to directly interact with the browsers DOM from a third party plugin,but I am probably not good enough at C sharp to do it

Link to post
Share on other sites
  • Solution

What you are saying is that instead of passing in the Document HTML from the built in browser via a variable to your plugin, you want to access the browser document HTML directly from the custom plugin that you are writing, correct?

 

Looking at the plugin API, there is no way to access the browser HTML directly in a custom plugin using the plugin API. That is something basic that needs to be made available via the plugin API in my opinion.

 

That said, it might be possible to walk the WPF object tree and gain access to the browser object and retrieve it, but that is a pretty advanced topic and I am not 100% that would even work.

  • Like 1
Link to post
Share on other sites

What you are saying is that instead of passing in the Document HTML from the built in browser via a variable to your plugin, you want to access the browser document HTML directly from the custom plugin that you are writing, correct?

 

Looking at the plugin API, there is no way to access the browser HTML directly in a custom plugin using the plugin API. That is something basic that needs to be made available via the plugin API in my opinion.

 

That said, it might be possible to walk the WPF object tree and gain access to the browser object and retrieve it, but that is a pretty advanced topic and I am not 100% that would even work.

Thanks everyone who contributed here,and Niche in particular

 

BUMP to your website too,

thanks for your help,yeah that sucks ha

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...