File tree Expand file tree Collapse file tree 5 files changed +29
-4
lines changed Expand file tree Collapse file tree 5 files changed +29
-4
lines changed Original file line number Diff line number Diff line change
1
+ from seleniumbase import BaseCase
2
+ BaseCase .main (__name__ , __file__ )
3
+
4
+
5
+ class ThreeJSTests (BaseCase ):
6
+ def test_animation (self ):
7
+ if self .headless :
8
+ self .open_if_not_url ("about:blank" )
9
+ self .skip ("Skip this test in headless mode!" )
10
+ if self .is_chromium () and not self .enable_3d_apis :
11
+ self .get_new_driver (enable_3d_apis = True ) # --enable-3d-apis
12
+ url = "https://threejs.org/examples/#webgl_animation_skinning_morph"
13
+ self .open (url )
14
+ self .switch_to_frame ("iframe#viewer" )
15
+ self .sleep (0.8 )
16
+ self .click ('button:contains("Wave")' )
17
+ self .sleep (3 )
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ filelock>=3.12.2;python_version<"3.8"
9
9
filelock >= 3.13.1 ;python_version >= "3.8"
10
10
platformdirs >= 4.0.0 ;python_version < "3.8"
11
11
platformdirs >= 4.1.0 ;python_version >= "3.8"
12
+ typing-extensions >= 4.9.0 ;python_version >= "3.8"
12
13
parse >= 1.20.0
13
14
parse-type >= 0.6.2
14
15
pyyaml >= 6.0.1
Original file line number Diff line number Diff line change 1
1
# seleniumbase package
2
- __version__ = "4.23.0 "
2
+ __version__ = "4.23.1 "
Original file line number Diff line number Diff line change @@ -1030,7 +1030,10 @@ def _set_chrome_options(
1030
1030
if swiftshader :
1031
1031
chrome_options .add_argument ("--use-gl=angle" )
1032
1032
chrome_options .add_argument ("--use-angle=swiftshader-webgl" )
1033
- elif not is_using_uc (undetectable , browser_name ):
1033
+ elif (
1034
+ not is_using_uc (undetectable , browser_name )
1035
+ and not enable_3d_apis
1036
+ ):
1034
1037
chrome_options .add_argument ("--disable-gpu" )
1035
1038
if not IS_LINUX and is_using_uc (undetectable , browser_name ):
1036
1039
chrome_options .add_argument ("--disable-dev-shm-usage" )
@@ -2698,7 +2701,10 @@ def get_local_driver(
2698
2701
if swiftshader :
2699
2702
edge_options .add_argument ("--use-gl=angle" )
2700
2703
edge_options .add_argument ("--use-angle=swiftshader-webgl" )
2701
- else :
2704
+ elif (
2705
+ not is_using_uc (undetectable , browser_name )
2706
+ and not enable_3d_apis
2707
+ ):
2702
2708
edge_options .add_argument ("--disable-gpu" )
2703
2709
if IS_LINUX :
2704
2710
edge_options .add_argument ("--disable-dev-shm-usage" )
Original file line number Diff line number Diff line change 142
142
'filelock>=3.13.1;python_version>="3.8"' ,
143
143
'platformdirs>=4.0.0;python_version<"3.8"' ,
144
144
'platformdirs>=4.1.0;python_version>="3.8"' ,
145
+ 'typing-extensions>=4.9.0;python_version>="3.8"' ,
145
146
'parse>=1.20.0' ,
146
147
'parse-type>=0.6.2' ,
147
148
'pyyaml>=6.0.1' ,
233
234
'pdfminer.six==20221105;python_version<"3.8"' ,
234
235
'pdfminer.six==20231228;python_version>="3.8"' ,
235
236
'cryptography==39.0.2;python_version<"3.9"' ,
236
- 'cryptography==42.0.0 ;python_version>="3.9"' ,
237
+ 'cryptography==42.0.1 ;python_version>="3.9"' ,
237
238
'cffi==1.15.1;python_version<"3.8"' ,
238
239
'cffi==1.16.0;python_version>="3.8"' ,
239
240
"pycparser==2.21" ,
You can’t perform that action at this time.
0 commit comments