[PYTHON] I made a browser automatic stamping tool.

What i made

My company manages attendance with a web application. (salesforce) The flow is "when you go to work, open the web page, log in, and press the go / leave button". I have created a script that will do this series of steps fully automatically. I referred to the following. http://qiita.com/socket1016/items/fdcc454e4ffe70a07507 Please carry out the above as it is when downloading the browser startup tool. The source is here.

Time-consuming part

How to press the button in the iframe was very difficult. It seems that the focus must be transferred to the iframe in order to manipulate the DOM in the iframe. See Source for details.

Easy to launch scripts

  1. Open a terminal (windows is command line?)
  2. Move to the location of the script file
  3. Enter the python3 file name

The above 3 steps are required to start the script. It's annoying, so let's create an alias for the python3 filename (absolute path). The method of creating an alias differs depending on the OS, so please check it out. I think you will find it soon.

Try to make

I learned a lot. It was my first time to create an alias, and I was deeply moved that I finally made something like a programmer. I just started studying python and created it during work, so please forgive me that the source is dirty ... We look forward to your suggestions for refactoring! !!

Recommended Posts

I made a browser automatic stamping tool.
〇✕ I made a game
I made a useful tool for Digital Ocean
I made a router config collection tool Config Collecor
I made a tool to compile Hy natively
I made a tool to get new articles
I made a user management tool for Let's Chat
I made a cleaning tool for Google Container Registry
I made a python text
I made a repeating text data generation tool "rpttxt"
I made a tool to create a word cloud from wikipedia
[Titan Craft] I made a tool to summon a giant to Minecraft
I made you to execute a command from a web browser
I made a CUI-based translation script (2)
I made a wikipedia gacha bot
I made a fortune with Python.
I made a CUI-based translation script
I made a daemon with Python
I made a client / server CLI tool for WebSocket (like Netcat for WebSocket)
I made a scaffolding tool for the Python web framework Bottle
I made a new AWS S3 bucket
I made a dash docset for Holoviews
I made a payroll program in Python!
I made a character counter with Python
Beginner: I made a launcher using dictionary
I made a script to display emoji
I made a life game with Numpy
I made a stamp generator with GAN
After studying Python3, I made a Slackbot
I created a password tool in Python.
I made a roguelike game with Python
I made a simple blackjack with Python
I made a configuration file with Python
I made a library for actuarial science
I made a WEB application with Django
I made a neuron simulator with Python
I made a tool to automatically browse multiple sites with Selenium (Python)
I made a CLI tool to convert images in each directory to PDF
I made a kind of simple image processing tool in Go language.
I made a tool to convert Jupyter py to ipynb with VS Code
I made a tool that makes decompression a little easier with CLI (Python3)
I made a stamp substitute bot with line
I made a python dictionary file for Neocomplete
I made a competitive programming glossary with Python
I made a weather forecast bot-like with Python.
I made a tool to notify Slack of Connpass events and made it Terraform
I made a tool to easily display data as a graph by GUI operation.
I made a crazy thing called typed tuple
I made a simple Bitcoin wallet with pycoin
I made a downloader for word distributed expression
I made a tool to generate Markdown from the exported Scrapbox JSON file
I made a tool to automatically back up the metadata of the Salesforce organization
I played with Diamond, a metrics collection tool
I couldn't escape from the futon, so I made a fully automatic futon peeling machine.
I made a random number graph with Numpy
I made a peeping prevention product for telework.
I made a simple RSS reader ~ C edition ~
I made a Caesar cryptographic program in Python.
I made a bin picking game with Python
I made a Mattermost bot with Python (+ Flask)
I made a Python Qiita API wrapper "qiipy"