File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 117
117
sb .proxy_string = None
118
118
sb .proxy_bypass_list = None
119
119
sb .proxy_pac_url = None
120
+ sb ._swiftshader = False
120
121
sb .multi_proxy = False
121
- sb .swiftshader = False
122
122
sb .ad_block_on = False
123
123
sb .highlights = None
124
124
sb .interval = None
Original file line number Diff line number Diff line change 1
1
"""This test is only for Chrome!
2
2
(Verify that your chromedriver is compatible with your version of Chrome.)"""
3
3
import colorama
4
+ import sys
4
5
from seleniumbase import BaseCase
5
6
BaseCase .main (__name__ , __file__ )
6
7
@@ -15,7 +16,13 @@ def test_chromedriver_matches_chrome(self):
15
16
major_chrome_version = chrome_version .split ("." )[0 ]
16
17
chromedriver_version = self .get_chromedriver_version ()
17
18
major_chromedriver_version = chromedriver_version .split ("." )[0 ]
18
- colorama .init (autoreset = True )
19
+ if (
20
+ "win32" in sys .platform
21
+ and hasattr (colorama , "just_fix_windows_console" )
22
+ ):
23
+ colorama .just_fix_windows_console ()
24
+ else :
25
+ colorama .init (autoreset = True )
19
26
c1 = colorama .Fore .BLUE + colorama .Back .LIGHTCYAN_EX
20
27
c2 = colorama .Fore .BLUE + colorama .Back .LIGHTGREEN_EX
21
28
c3 = colorama .Fore .BLUE + colorama .Back .LIGHTYELLOW_EX
Original file line number Diff line number Diff line change 6
6
class MijnTestklasse (Testgeval ):
7
7
def test_voorbeeld_1 (self ):
8
8
self .openen ("https://nl.wikipedia.org/wiki/Hoofdpagina" )
9
- self .controleren_element ('a[title*="hoofdpagina gaan "]' )
9
+ self .controleren_element ('a[title*="Welkom voor nieuwkomers "]' )
10
10
self .controleren_tekst ("Welkom op Wikipedia" , "td.hp-welkom" )
11
- self .typ ("#searchInput " , "Stroopwafel" )
12
- self .klik ("#searchButton " )
11
+ self .typ ("#searchform input " , "Stroopwafel" )
12
+ self .klik ("#searchform button " )
13
13
self .controleren_tekst ("Stroopwafel" , "#firstHeading" )
14
14
self .controleren_element ('img[src*="Stroopwafels"]' )
15
- self .typ ("#searchInput " , "Rijksmuseum Amsterdam" )
16
- self .klik ("#searchButton " )
15
+ self .typ ("#searchform input " , "Rijksmuseum Amsterdam" )
16
+ self .klik ("#searchform button " )
17
17
self .controleren_tekst ("Rijksmuseum" , "#firstHeading" )
18
18
self .controleren_element ('img[src*="Rijksmuseum"]' )
19
19
self .terug ()
You can’t perform that action at this time.
0 commit comments