Java - browser automation? [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
So, I need to write software that automates some browser tasks for me. Nothing fancy (clicking and getting data from the webpage). I want to use Java. Can you point me in a direction where to look/start, like libraries?
Thanks in advance!
Cheers

It is written for the purpose of running automated tests against websites, but you could use it for this job too: Selenium.
However, before you try to automate an entire browser, check if the service you're connecting to has an API, because otherwise your script will definitely just break if the site updates its styles a bit.
Even if there is no API, check if the answers you are looking for are just sent in the HTML - if so, just load the page with JSoup and parse the answer right out, no need to start or script any browsers.

Related

I want to create a java application on intellij idea and integrate it with only office [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 23 hours ago.
Improve this question
So i want to create a java application in intellij and want to integrate it with onlyoffice but i can't seem to find any proper tutorials to do it can yoy please help maybe write some steps on how can i approach the problem??
Develop a standalone application which integrates with Only Office and DocuSign and covers the following use cases
Ability to generate asset request using a respective form that generates PDF based on the UI input controls.
Here is the thing i am required to do any help will be appriciated

Java Mikrotik API [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am trying to make a program using Java to allow me to log into my Mikrotik router and change user passwords. I have tried different syntax for the code but nothing has worked. I'm not to great with the api syntax to begin with. Does anyone know how the proper syntax is? Thanks in advance!
Every time i try to send the command to change the password it returns the error "=message=no such command prefex"
I Have tried:
ret.sendCommand("/user/set admin password=xxx");
ret.sendCommand("/user set admin password=xxx");
ret.sendCommand("/user/set");
ret.sendCommand("=number=admin");
ret.sendCommand("=password=xxx");
ret.sendCommand("/user/set");
ret.sendCommand("=.id=admin");
ret.sendCommand("=password=xxx");
It looks like you're using the example code from http://wiki.mikrotik.com/wiki/API_in_Java and while it is quite possible to get that to work, it's not the easiest way to manipulate a Mikrotik from Java.
I suggest you take a look at this API I wrote: https://github.com/GideonLeGrange/mikrotik-java
It comes with proper examples and is intended to make the transition between the RouterOS command line and come a bit easier.

Automaticly Click a button on a remote website Every 50 Minutes? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I got a mine craft server online (https://server.pro/control-panel/1446793/) and I need to click the restart button every 45-55 Minutes. How can I do this? Is it possible to Do using GC (google code)? If not do i use java? Is it even possible? I have no idea what to do. Any response is helpful (even if it says something I have done wrong :) )
If i do need to use JAVA what program would i use to make the script (If there is one)
I am not familiar with either of those languages, however I have made an autoclicker in C. It can be found here. If you are unwilling to use mine, there are many other autoclickers out there.
There are many ways to do it. You could write some javascript that is injected into the page by plugin. You could also do it in Java with a Robot although that would be more hacky than the first solution. Also the Selenium library may help you as it's used for writing tests that will click different things on the web page.
You don't need to click the button from the remote to restart the server.
You can do that with a plugin, for example auto-restart plugin

Looking for a "web-scraping script builder" [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm writing the code to access and download data from some web sites using HTMLUnit.
I was wondering whether a tool that could help me exists. I think maybe to a visual tool, something that lets you express the path you want to follow on the web sites visually and generates the Java code.
I'd like something for HTMLUnit, but I'm open to other solutions.
Writing screen-scraping code gets very repetitive :(
I used to work at screen-scraper. Not sure if it's quite what you're looking for, but it's definitely a powerful tool for building web-scraping scripts.
Not exactly visual tools, but maybe you could use something like JMeter or The Grinder for recording navigation scripts of web pages. They surely are easier to use than writing all the input requests by hand in HTMLUnit.
There is only one tool that does exactly this - and does it very very well - but it's highly expensive, since their technology is amazing. Some of the biggest companies uses this. I think you might be able to get a free trail, if you want to try it out. http://kapowsoftware.com/

Java web scraper [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
What is the best library for a Java web scraper? I know the following choices:
Selenium
HTMLUnit
Lobo browser
I need to select one option to build a scraper for one scalable project.
If you are scraping, why do you need a browser? Just doing basic cURL calls to a page and getting the response will give you what you need to do scraping.
This will help with scalability. If you want a browser then go for HTMLUnit as that would again help with scalability.
I was recently recommended Web Harvest, and thought it worked well out of the box, except for some issues around HTTP 500 response codes ...
Use jsoup, it works great to get the response from URL and then use the XPath Expression to parse data from the response. I've implemented this and it works great.

Categories

Resources