Fixed parallel test execution failure by handling slowness when multiple sessions are logged in concurrently.

This commit is contained in:
Yogesh Mahajan 2020-06-23 18:43:54 +05:30 committed by Akshay Joshi
parent d265ed9729
commit cdf1c7a2a6

View File

@ -71,6 +71,9 @@ class CheckRoleMembershipControlFeatureTest(BaseFeatureTest):
property_object = self.wait.until(EC.visibility_of_element_located( property_object = self.wait.until(EC.visibility_of_element_located(
(By.CSS_SELECTOR, NavMenuLocators.properties_obj_css))) (By.CSS_SELECTOR, NavMenuLocators.properties_obj_css)))
property_object.click() property_object.click()
WebDriverWait(self.page.driver, 4).until(
EC.presence_of_element_located((
By.XPATH, "//a[normalize-space(text())='Membership']")))
self.click_membership_tab() self.click_membership_tab()
# Fetch the source code for our custom control # Fetch the source code for our custom control
source_code = self.page.find_by_xpath( source_code = self.page.find_by_xpath(