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
170
Scalable and cloud-native mobile game CI/CD environment using Unity
tadashi0713
0
100
Migrating your mobile CI/CD environment to a scalable cloud solution using CircleCI
tadashi0713
0
200
Speed matters: Advanced CI/CD techniques to improve development velocity, quality & security
tadashi0713
0
270
AWS Graviton 環境への CI _ CD パイプラインを CircleCI で実現しよう (AWS Fargate 編)
tadashi0713
0
310
10x deployment frequency using GitLab Flow and GitHub Actions on AWS ECS
tadashi0713
0
530
デプロイ頻度を10倍にした、ブランチ戦略とGitHub Actions on AWS ECS
tadashi0713
8
4.1k
Creating parallelized Android UITest (Appium) environment using Azure, Docker and Android emulator
tadashi0713
0
3.9k
メルカリの開発スピードと品質を支える Selenium on Azure Kubernetes Service
tadashi0713
2
1.3k
Other Decks in Programming
See All in Programming
⚪⚪の⚪⚪をSwiftUIで再現す る
u503
0
130
若手バックエンドエンジニアが Elasticsearch を使ってみた話
hott0mott0
1
100
DRFを少しずつ オニオンアーキテクチャに寄せていく DjangoCongress JP 2025
nealle
2
300
Google Cloudとo11yで実現するアプリケーション開発者主体のDB改善
nnaka2992
1
130
責務と認知負荷を整える! 抽象レベルを意識した関心の分離
yahiru
9
1.6k
5分で理解する SOLID 原則 #phpcon_nagoya
shogogg
1
420
コードを読んで理解するko build
bells17
1
120
CloudRun, Spanner に対する負荷試験の反省と オブザーバビリティによるアプローチ
oyasumipants
1
190
コミュニティ駆動 AWS CDK ライブラリ「Open Constructs Library」 / community-cdk-library
gotok365
2
260
オレを救った Cline を紹介する
codehex
15
14k
やっと腹落ち「スプリント毎に動くモノをリリースする」〜ゼロから始めるメガバンクグループのアジャイル実践〜
sasakendayo
0
190
楽しく向き合う例外対応
okutsu
0
740
Featured
See All Featured
Adopting Sorbet at Scale
ufuk
75
9.2k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Measuring & Analyzing Core Web Vitals
bluesmoon
6
260
Unsuck your backbone
ammeep
669
57k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Stop Working from a Prison Cell
hatefulcrawdad
268
20k
How to train your dragon (web standard)
notwaldorf
91
5.9k
A better future with KSS
kneath
238
17k
Building Your Own Lightsaber
phodgson
104
6.2k
Rebuilding a faster, lazier Slack
samanthasiow
80
8.9k
Scaling GitHub
holman
459
140k
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!