Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Automate simple & repeated browser tasks
Search
Tadashi Nemoto
October 25, 2017
Programming
74k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Automate simple & repeated browser tasks
はじめての英語プレゼン #4
https://english-lt.connpass.com/event/67958/
Tadashi Nemoto
October 25, 2017
Transcript
10 slides
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!
More Decks by Tadashi Nemoto
See All by Tadashi Nemoto
コンテナイメージの脆弱性を削減する新しいアプローチ:Hardened Container Images
tadashi0713
1
460
Best Practice CI/CD Pipeline for Deploying Container Apps to AWS
tadashi0713
0
320
Scalable and cloud-native mobile game CI/CD environment using Unity
tadashi0713
0
210
Migrating your mobile CI/CD environment to a scalable cloud solution using CircleCI
tadashi0713
0
320
Speed matters: Advanced CI/CD techniques to improve development velocity, quality & security
tadashi0713
0
380
AWS Graviton 環境への CI _ CD パイプラインを CircleCI で実現しよう (AWS Fargate 編)
tadashi0713
0
440
10x deployment frequency using GitLab Flow and GitHub Actions on AWS ECS
tadashi0713
0
690
デプロイ頻度を10倍にした、ブランチ戦略とGitHub Actions on AWS ECS
tadashi0713
8
4.6k
Creating parallelized Android UITest (Appium) environment using Azure, Docker and Android emulator
tadashi0713
0
4.4k
Other Decks in Programming
See All in Programming
R言語プログラミング
profjoesuzuki
0
130
LLM 101
dalinaum
0
550
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
440
Canvas 2D Context Next
petamoriken
0
750
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
160
vue-tsc x TypeScript7
koukimiura
0
110
手の動かし方がわからなかった私が個人開発者になるまで
usagi0920_pochi
0
350
DroidKnights 2026 Android A2UI Jetpack Compose 기반의 안전한 AI UI 렌더링 - 박제창
itsmedreamwalker
1
270
SONY CISC-NEWS NWS-1750 + NWB-225 ハードウェアメンテとフレームバッファカラー対応 / KOF2026
tsutsui
0
150
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
240
Agentic AI with the Power of Jakarta EE
ivargrimstad
0
230
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
170
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
96
14k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Bash Introduction
62gerente
615
220k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
Paper Plane (Part 1)
katiecoart
PRO
3
12k
The Language of Interfaces
destraynor
163
27k
Prompt Engineering for Job Search
mfonobong
0
610
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
530
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
680
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k