File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ from seleniumbase import BaseCase
2
+
3
+
4
+ class AppleTestClass (BaseCase ):
5
+
6
+ def test_apple_developer_site_webdriver_instructions (self ):
7
+ self .demo_mode = True
8
+ self .demo_sleep = 0.5
9
+ self .message_duration = 2.0
10
+ self .open ("https://developer.apple.com/search/" )
11
+ page = "Testing with WebDriver in Safari"
12
+ self .update_text ('[placeholder*="developer.apple.com"]' , page + "\n " )
13
+ self .click ("link=Testing with WebDriver in Safari" )
14
+ self .assert_element ('[href="/documentation"]' )
15
+ self .assert_text ("Testing with WebDriver in Safari" , "h1" )
16
+ self .highlight ("div.topic-description p" )
17
+ self .highlight ("h2" )
18
+ h3 = "h3:nth-of-type(%s)"
19
+ self .assert_text ("Make Sure You Have Safari’s WebDriver" , h3 % "1" )
20
+ self .assert_text ("Get the Correct Selenium Library" , h3 % "2" )
21
+ self .assert_text ("Configure Safari to Enable WebDriver" , h3 % "3" )
22
+ self .assert_text ("Write a WebDriver Testing Suite" , h3 % "4" )
23
+ self .assert_text ("Run Your Test" , h3 % "5" )
You can’t perform that action at this time.
0 commit comments