Python applet automation

At work, I need to run a Java applet every 20-30 minutes in order to reconnect to one of the internal applications.

I would like to automate the login to the website of this application and then run this Java applet that does not require any input at all, just accept it so that I can just run the script every time the application disconnects me.

Is there a way to do this with Python using urllib or a similar library? I know how to make the login part, but I don’t know what to do with the accept and run this applet part.

+6
source share
1 answer

The web application testing framework will be useful for what you ask, it allows you to simulate user interaction (POST, GET, login, clicks, etc.) with the website.

The hard part of your question interacts with the Java applet - not many Webapp testing web templates will let you do this; in particular, I don't know the Python framework that offers this functionality, but, in my experience, I found that HTTPUnit works well with applets. Of course, this is in Java, not Python, but worth checking out.

+1
source

Source: https://habr.com/ru/post/904870/


All Articles