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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
240
Scalable and cloud-native mobile game CI/CD environment using Unity
tadashi0713
0
150
Migrating your mobile CI/CD environment to a scalable cloud solution using CircleCI
tadashi0713
0
250
Speed matters: Advanced CI/CD techniques to improve development velocity, quality & security
tadashi0713
0
310
AWS Graviton 環境への CI _ CD パイプラインを CircleCI で実現しよう (AWS Fargate 編)
tadashi0713
0
380
10x deployment frequency using GitLab Flow and GitHub Actions on AWS ECS
tadashi0713
0
620
デプロイ頻度を10倍にした、ブランチ戦略とGitHub Actions on AWS ECS
tadashi0713
8
4.5k
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
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
260
encoding/json/v2のUnmarshalはこう変わった:内部実装で見る設計改善
kurakura0916
0
390
AI活用のコスパを最大化する方法
ochtum
0
130
New in Go 1.26 Implementing go fix in product development
sunecosuri
0
420
Claude Codeログ基盤の構築
giginet
PRO
7
2.4k
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
880
エラーログのマスキングの仕組みづくりに役立ったASTの話
kumoichi
0
170
米国のサイバーセキュリティタイムラインと見る Goの暗号パッケージの進化
tomtwinkle
2
550
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
140
Codexに役割を持たせる 他のAIエージェントと組み合わせる実務Tips
o8n
3
1.2k
技術検証結果の整理と解析をAIに任せよう!
keisukeikeda
0
110
15年目のiOSアプリを1から作り直す技術
teakun
1
620
Featured
See All Featured
Embracing the Ebb and Flow
colly
88
5k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
310
How to make the Groovebox
asonas
2
2k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Fireside Chat
paigeccino
42
3.8k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
240
Tell your own story through comics
letsgokoyo
1
840
Testing 201, or: Great Expectations
jmmastey
46
8.1k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
440
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
210
Designing for Performance
lara
611
70k
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!