3
Is there any framework or implementation way to navigate a website programmatically through c code#?
I studied the frameworks phantomJS
and Selenium
, but these have some limitations in relation to dynamic navigation, such as adding scripts at runtime, modifying variables and the DOM tree, capturing images (screenshot) and recovering HTML.
I also studied using the class HttpWebRequest
and HttpWebResponse
but some interactions need to be carried out in WEB forms, and as far as I searched I could not perform the Submit of a form as if I was actually browsing the page.
it is possible to execute Javascript scripts with Abot?
– João Paulo Massa
Yes, see this link.
– Leonel Sanches da Silva
is it possible to click on a button using Abot? Another question is required for this answer?
– João Paulo Massa
It’s possible. I don’t know if you need another question. That’s up to you.
– Leonel Sanches da Silva
I opened a new question regarding click after some done searches. I leave the link here for those who have the same need http://answall.com/questions/101397/como-alterar-o-dom-e-efetuar-click-utilizando-abot
– João Paulo Massa
Just read the documentation
– Rod
I did not find in the documentation a simulation of the click on a button captured in Crawledpage, @Rod, so I asked if it was possible to perform this event.
– João Paulo Massa
@Joãopaulomassa what is your purpose ? Do you want to do what exactly? I know another Abot option, and do the click events, for example
– Rod
@Rod, the ultimate purpose is to navigate my website as an end user (through a robot), performing the same interactions that an ordinary user can perform. Because it is a robot, there is no need for a visualization interface (such as phantomJS)
– João Paulo Massa
@Joãopaulo, did you manage to do what you wanted, your programming navigation? I want to develop a also porem in PHP and I’m collecting information to start.
– Valentim Araújo
@Valentimaraújo, I used Selenium with the C#API. It allows a very detailed level of navigation. Until now the only limiter I found was needing a browser with interface, since the library for Phantomjs is discontinued and without updates.
– João Paulo Massa