Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Automate simple & repeated browser tasks
Search
Tadashi Nemoto
October 25, 2017
Programming
1
74k
Automate simple & repeated browser tasks
はじめての英語プレゼン #4
https://english-lt.connpass.com/event/67958/
Tadashi Nemoto
October 25, 2017
Tweet
Share
More Decks by Tadashi Nemoto
See All by Tadashi Nemoto
Best Practice CI/CD Pipeline for Deploying Container Apps to AWS
tadashi0713
0
220
Scalable and cloud-native mobile game CI/CD environment using Unity
tadashi0713
0
130
Migrating your mobile CI/CD environment to a scalable cloud solution using CircleCI
tadashi0713
0
230
Speed matters: Advanced CI/CD techniques to improve development velocity, quality & security
tadashi0713
0
300
AWS Graviton 環境への CI _ CD パイプラインを CircleCI で実現しよう (AWS Fargate 編)
tadashi0713
0
350
10x deployment frequency using GitLab Flow and GitHub Actions on AWS ECS
tadashi0713
0
590
デプロイ頻度を10倍にした、ブランチ戦略とGitHub Actions on AWS ECS
tadashi0713
8
4.4k
Creating parallelized Android UITest (Appium) environment using Azure, Docker and Android emulator
tadashi0713
0
4.1k
メルカリの開発スピードと品質を支える Selenium on Azure Kubernetes Service
tadashi0713
2
1.4k
Other Decks in Programming
See All in Programming
The Flutter Journey of Building a Live Streaming App — With a Side of Performance Tuning
u503
1
110
GitHub Actions × AWS OIDC連携の仕組みと経緯を理解する
ota1022
0
250
Swift Concurrency - 状態監視の罠
objectiveaudio
2
490
「ちょっと古いから」って避けてた技術書、今だからこそ読もう
mottyzzz
10
6.5k
AI Coding Meetup #3 - 導入セッション / ai-coding-meetup-3
izumin5210
0
660
階層構造を表現するデータ構造とリファクタリング 〜1年で10倍成長したプロダクトの変化と課題〜
yuhisatoxxx
3
970
Back to the Future: Let me tell you about the ACP protocol
terhechte
0
140
『毎日の移動』を支えるGoバックエンド内製開発
yutautsugi
2
220
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
200
止められない医療アプリ、そっと Swift 6 へ
medley
1
140
エンジニアとして高みを目指す、 利益を生み出す設計の考え方 / design-for-profit
minodriven
24
12k
CSC509 Lecture 06
javiergs
PRO
0
260
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
64
7.9k
Code Review Best Practice
trishagee
72
19k
Scaling GitHub
holman
463
140k
Thoughts on Productivity
jonyablonski
70
4.9k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.2k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
9
590
A better future with KSS
kneath
239
18k
Why Our Code Smells
bkeepers
PRO
339
57k
Producing Creativity
orderedlist
PRO
347
40k
Designing for humans not robots
tammielis
254
26k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
Transcript
2017/10/25 Tadashi Nemoto Automate simple & repeated browser tasks
Introduction • Tadashi Nemoto • github: tadashi0713 • QA-SET Team
@mercari • Automation Engineer
Many repeated browser tasks • Give member account • Get
image of graph & send to Slack • Get specific data in page • Download file from page • Fill form same content • etc
Some services need browser operation for automating these tasks Selenium
Tools to automate browser tasks
Use headless chrome • Either need when running selenium in
non display environment • Virtual display • Xvfb, Xdummy • Headless browser • PhantomJS, Chrome 59
Using headless chrome is easy • Installing chromedriver via gem
https://github.com/flavorjones/chromedriver-helper
Easy to write code for browser automation • driver.get ‘https://www.google.co.jp’
• driver.find_element(:id, ‘hoge’).click • driver.find_element(:id, ‘hoge’).send_keys ‘hoge’ • driver.find_element(:id, ‘hoge’).text • driver.save_screenshot(‘path/to/screenshot.png’)
How to trigger build • cron • https://circleci.com/docs/2.0/workflows/ #scheduling-a-workflow •
Create slack bot or slash command
Thank you!