File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ class FirefoxPrintToPDFMixin :
3
+
4
+ def get_driver_options (self ):
5
+ opts = super ().get_driver_options ()
6
+
7
+ # Print to PDF options
8
+ opts .set_preference ("print.printer_Mozilla_Save_to_PDF.print_to_file" , True )
9
+ opts .set_preference ("print_printer" , "Mozilla Save to PDF" )
10
+ opts .set_preference ("print.always_print_silent" , True )
11
+
12
+ return opts
13
+
14
+
15
+ class FirefoxDisableGeoLocationAbilitiesMixin :
16
+
17
+ def get_driver_options (self ):
18
+ opts = super ().get_driver_options ()
19
+
20
+ opts .set_preference ("geo.enabled" , False )
21
+ opts .set_preference ("geo.provider.use_corelocation" , False )
22
+ opts .set_preference ("geo.prompt.testing" , False )
23
+ opts .set_preference ("geo.prompt.testing.allow" , False )
24
+
25
+ return opts
You can’t perform that action at this time.
0 commit comments