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
Selenium WebDriver - Einführung
Search
Robert Moszczynski
January 04, 2016
Programming
0
100
Selenium WebDriver - Einführung
Eine kurze Einführung zu Selenium WebDriver.
Robert Moszczynski
January 04, 2016
Tweet
Share
More Decks by Robert Moszczynski
See All by Robert Moszczynski
Gitflow - Einführung
rmoszczynski
1
78
Other Decks in Programming
See All in Programming
Rancher と Terraform
fufuhu
2
550
AIと私たちの学習の変化を考える - Claude Codeの学習モードを例に
azukiazusa1
10
4.3k
Navigating Dependency Injection with Metro
zacsweers
3
1k
アセットのコンパイルについて
ojun9
0
130
デザイナーが Androidエンジニアに 挑戦してみた
874wokiite
0
510
Design Foundational Data Engineering Observability
sucitw
3
200
Deep Dive into Kotlin Flow
jmatsu
1
350
Compose Multiplatform × AI で作る、次世代アプリ開発支援ツールの設計と実装
thagikura
0
160
🔨 小さなビルドシステムを作る
momeemt
4
680
GitHubとGitLabとAWS CodePipelineでCI/CDを組み比べてみた
satoshi256kbyte
4
240
旅行プランAIエージェント開発の裏側
ippo012
2
910
機能追加とリーダー業務の類似性
rinchoku
2
1.3k
Featured
See All Featured
Docker and Python
trallard
46
3.6k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Writing Fast Ruby
sferik
628
62k
Faster Mobile Websites
deanohume
309
31k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Typedesign – Prime Four
hannesfritz
42
2.8k
How to train your dragon (web standard)
notwaldorf
96
6.2k
Bash Introduction
62gerente
615
210k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Producing Creativity
orderedlist
PRO
347
40k
Transcript
Selenium WebDriver Einführung Robert Moszczynski www.robertmoszczynski.com
Selenium WebDriver • Bibliothek zum Testen von Web- Anwendungen •
Für mehrere Sprachen portiert • WebDriver API integriert in Selenium 2.0 • Nutzt die native Browser API zur Automatisierung • Mehrere Browser Driver zu Auswahl • Unterstützung für Selenium Grid mit Selenium Server
Beispiel WebDriver driver = new FirefoxDriver(); driver.get("https://www.google.com"); WebElement element =
driver.findElement (By.name("q")); element.sendKeys("Cheese!"); element.submit(); System.out.println("Page title is: " + driver.getTitle());
Beispiel (new WebDriverWait(driver, 10)) .until(new ExpectedCondition<Boolean>() { public Boolean apply(WebDriver
d) { return d.getTitle().toLowerCase() .startsWith("cheese!"); } }); driver.quit();
Locators By.id(String id) By.name(String name) By.tagName(String name) By.linkText(String linkText) By.className(String
className) By.cssSelector(String selector) By.xpath(String xpathExpression) By.partialLinkText(String linkText)
Quellen und Links • http://www.seleniumhq.org/projects/webdriver/ • http://www.seleniumhq.org/docs/03_webdriver.jsp • http://seleniumhq.github.io/selenium/docs/api/java/ Präsentation
• https://speakerdeck.com/rmoszczynski • https://www.youtube.com/user/RobertMoszczynskiCom
Danke! Robert Moszczynski www.robertmoszczynski.com