Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
140
Migrating your mobile CI/CD environment to a scalable cloud solution using CircleCI
tadashi0713
0
240
Speed matters: Advanced CI/CD techniques to improve development velocity, quality & security
tadashi0713
0
300
AWS Graviton 環境への CI _ CD パイプラインを CircleCI で実現しよう (AWS Fargate 編)
tadashi0713
0
360
10x deployment frequency using GitLab Flow and GitHub Actions on AWS ECS
tadashi0713
0
610
デプロイ頻度を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.2k
メルカリの開発スピードと品質を支える Selenium on Azure Kubernetes Service
tadashi0713
2
1.5k
Other Decks in Programming
See All in Programming
Why Kotlin? 電子カルテを Kotlin で開発する理由 / Why Kotlin? at Henry
agatan
2
7.2k
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
150
ハイパーメディア駆動アプリケーションとIslandアーキテクチャ: htmxによるWebアプリケーション開発と動的UIの局所的適用
nowaki28
0
420
React Native New Architecture 移行実践報告
taminif
1
150
エディターってAIで操作できるんだぜ
kis9a
0
720
FluorTracer / RayTracingCamp11
kugimasa
0
230
SwiftUIで本格音ゲー実装してみた
hypebeans
0
350
認証・認可の基本を学ぼう前編
kouyuume
0
200
モデル駆動設計をやってみようワークショップ開催報告(Modeling Forum2025) / model driven design workshop report
haru860
0
270
開発に寄りそう自動テストの実現
goyoki
2
950
30分でDoctrineの仕組みと使い方を完全にマスターする / phpconkagawa 2025 Doctrine
ttskch
4
850
生成AIを利用するだけでなく、投資できる組織へ
pospome
2
330
Featured
See All Featured
Writing Fast Ruby
sferik
630
62k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.1k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
For a Future-Friendly Web
brad_frost
180
10k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
What's in a price? How to price your products and services
michaelherold
246
13k
Leading Effective Engineering Teams in the AI Era
addyosmani
8
1.3k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Site-Speed That Sticks
csswizardry
13
1k
How to Ace a Technical Interview
jacobian
280
24k
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!