@@ -14500,15 +14500,13 @@ def setUp(self, masterqa_mode=False):
14500
14500
self.__skip_reason = None
14501
14501
self.testcase_manager.insert_testcase_data(data_payload)
14502
14502
self.case_start_time = int(time.time() * 1000.0)
14503
- self.__activate_virtual_display_as_needed()
14504
14503
elif hasattr(self, "is_behave") and self.is_behave:
14505
14504
self.__initialize_variables()
14506
- self.__activate_virtual_display_as_needed()
14507
14505
elif hasattr(self, "is_nosetest") and self.is_nosetest:
14508
14506
pass # Setup performed in plugins for pynose
14509
14507
else:
14510
- # Pure Python run. Eg. SB() Manager
14511
- self.__activate_virtual_display_as_needed()
14508
+ # Pure Python run. ( Eg. SB() and Driver() Managers)
14509
+ pass # Variables initialized in respective plugins
14512
14510
14513
14511
# Verify SeleniumBase is installed successfully, and used correctly
14514
14512
if not hasattr(self, "browser"):
@@ -14696,6 +14694,10 @@ def setUp(self, masterqa_mode=False):
14696
14694
)
14697
14695
raise Exception(message)
14698
14696
14697
+ if not hasattr(self, "is_nosetest") or not self.is_nosetest:
14698
+ # Xvfb Virtual Display activation for Linux
14699
+ self.__activate_virtual_display_as_needed()
14700
+
14699
14701
# Dashboard pre-processing:
14700
14702
if self.dashboard:
14701
14703
if self._multithreaded:
0 commit comments