def _go_to_bulk(self, title_start, listing_status): mp = MainPage(self.driver) shop_name = self.cfg.vela.shop_name self._log_action('choose shop ' + self.cfg.vela.shop_name) if mp.shop_name_text() != shop_name: mp.change_shop(shop_name) self._log_action('select listings to edit') mp.select_listings_to_edit(checked_listings='ALL', status=listing_status, filter=title_start)
def go_to_bulk(self): # log in lpg = LoginPage(self.driver) lpg.login(page=self.login_url_https, user=VELA_USER, password=VELA_PASSWORD) # switch the shop if needed mp = MainPage(self.driver) if mp.shop_name_text() != self.shop_name: mp.change_shop(self.shop_name) # select listings to edit mp.select_listings_to_edit(checked_listings=[ "auto_test_listing_00", "auto_test_listing_01", "auto_test_listing_02" ], status='Draft', filter='auto_')
def go_to_bulk(self, shop_name): # log in lpg = LoginPage(self.driver) lpg.login(page=self.login_url_https, user=VELA_USER, password=VELA_PASSWORD) # switch the shop if needed mp = MainPage(self.driver) if mp.shop_name_text() != shop_name: mp.change_shop(shop_name) # select listings to edit listings_titles = [ '{}{:02d}'.format(AT_TITLE_PREFIX, i) for i in range(NUMBER_OF_TEST_LISTINGS) ] mp.select_listings_to_edit(checked_listings=listings_titles, filter='auto_')