This commit is contained in:
proxmox_5500u_Win11-A_PC 2024-10-23 16:23:02 +09:00
parent e8b726ee39
commit 031a5b89cc
6 changed files with 78371 additions and 121819 deletions

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -93,7 +93,7 @@ class PriceHandler:
self.logger.debug("옵션 가격 정보를 수집하기 위해 옵션가격정렬을 클릭 합니다.")
self.ordering_by_option_button_click()
await self.ordering_by_option_button_click()
is_single = self.optionHandler.option_info['is_single_option']
@ -604,10 +604,12 @@ class PriceHandler:
# 각 선택자를 사용하여 요소 찾기
product_cost_element = await self.page.wait_for_selector(product_cost_locator, timeout=10000)
await self.page.evaluate("arguments[0].scrollIntoView()", product_cost_element)
# await self.page.evaluate("(element) => element.scrollIntoView()", product_cost_element)
await product_cost_element.scroll_into_view_if_needed(timeout=3000)
standard_selling_price_element = await self.page.wait_for_selector(standard_selling_price_locator, timeout=10000)
await self.page.evaluate("arguments[0].scrollIntoView()", standard_selling_price_element)
# await self.page.evaluate("(element) => element.scrollIntoView()", standard_selling_price_element)
await standard_selling_price_element.scroll_into_view_if_needed(timeout=3000)
# cost_value = int(float(await product_cost_element.input_value().replace(",", "")))
cost_value_str = await product_cost_element.input_value()