Writing on browser with Java [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I've looked for a solution for 2 days without getting any working answer. That's the point: I made a program which get information from the HTML of a website, needed to make some math calculation in order to resolve a captcha. I tried to make use of the output result with Selenium and everything seems to work perfectly (I handled all the popups, changes of the question and everything). But yesterday my output are not accepted anymore. The website says "Invalid security answer", while my answer it's correct. I think that the browser opened by Selenium has been someway detected but not blocked. So.. Are there any other working ways to write on a browser textbox the result I get from my java program? Or is there a way to try making the Selenium browser more "human"?
Thank you in advance!
P.S. I'm on Windows 10 with Chrome

Well, it is the whole point of CAPTCHA to check whether the user is a human or a computer.
Your question is proof that the CAPTCHA is working correct to seperate humans from computers, for more info: https://en.wikipedia.org/wiki/CAPTCHA

Related

How to run Java Code with html..? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am starting to build my first website with Angular&Bootstrap. I am using the Spring Tool Suite. So far my website looks pretty boring but learning CSS takes me a while.
On my website I have an input (style=file) and a button to submit. So far I managed to press a button to upload a file. I can see is as a String in the console when I log it, its working.
Now to the point where I need help:
I got a java-program that I have to use which gets the path to an XML-File and parses it. It checks if it has the right special format and reads it in. This is only a part of the whole program.
How can I use this in my Code to upload an XML-File and then check it and read it with this program? How do I use the Java-Code? So far I am only using HTML, CSS and Javascript.
Thank you for your help!
There are two options precisely available for you:
1) convert the logic which is in Java to Java script
Or
2) make it a web application and run it on tomcat(or a similar web server)
There are others too but there are a bit heavy to understand and implement.

Data from a website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I was just sitting and thinking what I should do in programming.
And I thought of a csgo item value calculator.
Then I thought how would I get the prices of the items.
So my question is how do I get information from ex. //
http://steamcommunity.com/market/listings/730/Chroma%202%20Case And retrieve the price of the item, which is in this: market_commodity_orders_header_promote
What I would recommend is getting some kind of API tool such as PostMan or Fiddler and use them to sniff the website. See if its calling any kind of API, and if it is, see if you can take advantage of that API to do what you need to do.
Website Scraping is also a valid option. Either way you should have a look and see which method would work best for you given your problem and experience level.
The most important part is research research research. Google everything before you ask. We all wish you the best of luck!

Please suggest approach for Java-based web app [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm a Java developer that hasn't coded in about 5 years and wants to polish up my skills. I am going to create a small app that uses an OAuth 2.0 authentication flow and then makes a few REST calls and displays the results. I've got my credentials setup with the OAuth provider.
I used Eclipse back in the day, is that still a solid IDE for this type of project? If I want to share the app with others to show my work, where could I host the code?
Thanks for these and any other pointers.
first off - yes, Eclipse if still a good choice.
if you can, make you app a web-application, and then you can host it in PaaS such as Google AppEngine. then the app itself will be always accessible from any machine that is connected to the web. this way, you will be able to show it to anyone you want.
if you only want to show the code, then GitHub or Google Code are a good choices.
HTH

How to automate java applet using fest java? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I spent almost entire day on finding the answer of this question. I came to know that I can do this using Fest. I tried to understand how to do it using fest, but unable to understand it. There are not much tutorial available on fest. So can anyone help me on this? I want to know following things :
1)There is a applet running on a appletviewer on my desktop. How my code will recognize the applet? (a simple code snippet with explanation will help a lot.)
2)There is a log in , password field and a login button in the applet. How my code will recognize the field, fill suitable values and click on on login button?
(I am just a part time coder, so not very good with programming. So little detail will help me a lot. Thanks in advance.)

Access website without browser [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am just learning java. I just want to make a simple application to access a web-site.
there is a website onto which i want to log-in through java:
and then interact with it through my interface, basically after log in, i would be writing in some text boxes and sending it.
I tried many places to do it, studied HTTP protocol but still cant make it.
can someone help me out?
Accessing a web site, logging in and interacting with forms on it is somewhat complex work, so it might not be the best choice for a first java project.
But if you want to do it, you should probably use Apache HttpComponents/HttpClient.
There are useful examples at the above link as well, which may help you get started.

Categories