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
110
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
86
Other Decks in Programming
See All in Programming
ベクトル検索のフィルタを用いた機械学習モデルとの統合 / python-meetup-fukuoka-06-vector-attr
monochromegane
2
490
脱 雰囲気実装!AgentCoreを良い感じにWEBアプリケーションに組み込むために
takuyay0ne
3
360
Claude Codeログ基盤の構築
giginet
PRO
7
3.5k
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
120
ふつうのRubyist、ちいさなデバイス、大きな一年 / Ordinary Rubyists, Tiny Devices, Big Year
chobishiba
1
480
CSC307 Lecture 15
javiergs
PRO
0
260
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
570
モダンOBSプラグイン開発
umireon
0
160
Windows on Ryzen and I
seosoft
0
330
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
300
AI 開発合宿を通して得た学び
niftycorp
PRO
0
160
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
2
200
Featured
See All Featured
Between Models and Reality
mayunak
2
240
Building Adaptive Systems
keathley
44
3k
Site-Speed That Sticks
csswizardry
13
1.1k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Building Applications with DynamoDB
mza
96
7k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
The Cult of Friendly URLs
andyhume
79
6.8k
Marketing to machines
jonoalderson
1
5k
We Are The Robots
honzajavorek
0
200
The Invisible Side of Design
smashingmag
302
51k
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