How to create program that does operations on a webpage?

83
March 14, 2018, at 08:00 AM

I'm learning java and I want to create a some kind of bot that will be doing operations on webpages, suchas clicking buttons filling textboxes etc. My question which library use to do it? I found out this bot works well:

https://github.com/DaveDuck321/SmashIt/blob/master/app/src/main/java/tk/smashr/smashit/KahootHandle.java

But I don't know how it's even done, it uses okhttp library, but it just sends http requests, but how author knew which request he need send to server to do stuff? Is it possible to use just reqest to bot any site or it's better to use something like htmlunit?

READ ALSO
retrieve triples with specific predicate without sparql

retrieve triples with specific predicate without sparql

I am very new to jena and rdf, so apologies if this is a silly questionI am trying to retrieve all the triples of an rdf model with the same predicate

107
Populate Select2 from function call with AJAX

Populate Select2 from function call with AJAX

I want to populate a select2 dropdown with an AJAX response function with data that will be called whenever the dropdown required for it changes valueI console logged to be sure that the function gets reached, but nonetheless, the instructions are not being ran by the machine:

134
Slick Slider z-index issues

Slick Slider z-index issues

I'm using slick slider and have created the following custom layout with it

259
Like/Unlike Button with jQuery in a Django App

Like/Unlike Button with jQuery in a Django App

I'm trying to create a Like/Unlike button with jQuery! Here's what I did,

160