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
73k
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
86
Scalable and cloud-native mobile game CI/CD environment using Unity
tadashi0713
0
41
Migrating your mobile CI/CD environment to a scalable cloud solution using CircleCI
tadashi0713
0
110
Speed matters: Advanced CI/CD techniques to improve development velocity, quality & security
tadashi0713
0
190
AWS Graviton 環境への CI _ CD パイプラインを CircleCI で実現しよう (AWS Fargate 編)
tadashi0713
0
180
10x deployment frequency using GitLab Flow and GitHub Actions on AWS ECS
tadashi0713
0
420
デプロイ頻度を10倍にした、ブランチ戦略とGitHub Actions on AWS ECS
tadashi0713
8
3.7k
Creating parallelized Android UITest (Appium) environment using Azure, Docker and Android emulator
tadashi0713
0
3.6k
メルカリの開発スピードと品質を支える Selenium on Azure Kubernetes Service
tadashi0713
2
1.2k
Other Decks in Programming
See All in Programming
Front-end application development, Symfony-style(s)
dunglas
2
2k
VS Code をプロダクトにどう取り込むか
onomax
1
350
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
220
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
4
820
入門 AWS Amplify Gen2 / Introduction to AWS Amplify Gen2
genkiogasawara
1
320
雑に思考を整理する技術と効能
konifar
58
28k
코틀린으로 멀티플랫폼 만들기
pangmoo
0
140
コードレビューで学ぶ!Kotlinオブジェクト指向デザインパターン
akkie76
2
200
冗長なエラーログを削減し、スタックトレースを手に入れる / Reducing Verbose Error Logs and Obtaining Stack Traces
upamune
0
230
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
380
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
680
Site Reliability Engineering for GMO
pyama86
7
1k
Featured
See All Featured
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
Writing Fast Ruby
sferik
620
60k
Adopting Sorbet at Scale
ufuk
67
8.6k
Fireside Chat
paigeccino
20
2.6k
Building Your Own Lightsaber
phodgson
98
5.7k
Unsuck your backbone
ammeep
663
57k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
321
20k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
154
14k
What's in a price? How to price your products and services
michaelherold
237
11k
Clear Off the Table
cherdarchuk
83
310k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
6
990
Designing for humans not robots
tammielis
248
25k
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!