옵션이미지 번역 업로드버튼 선택자 수정
This commit is contained in:
parent
1d039d2b28
commit
301702605a
File diff suppressed because one or more lines are too long
|
|
@ -776,12 +776,7 @@ class OptionHandler:
|
|||
|
||||
# '+ 버튼' 클릭 후 파일 업로드
|
||||
self.logger.debug(f"{index}번째 옵션의 이미지추가 버튼 가져오기")
|
||||
add_button = self.page.locator(f'//*[@id="productMainContentContainerId"]/div[1]/div[2]/div/div/div[2]/div/div[1]/div/div/div[2]/div/div/div[5]/div[1]/div/div/ul/li[{index}]/div/div[1]/div/div[2]/div/div/img')
|
||||
|
||||
# add_button = await option_box.query_selector('.//div[contains(@class, "sc-krITIZ") and contains(@class, "ckztYT")]')
|
||||
|
||||
# add_button = await option_box.query_selector(f'div#productMainContentContainerId li:nth-child({index}) > div > div:nth-child(1) > div > div:nth-child(2) > div > div')
|
||||
# add_button = await option_box.query_selector(f'div:nth-child({index}) > div > div:nth-child(1) > div > div:nth-child(2) > div > div')
|
||||
add_button = self.page.locator(add_button_selector)
|
||||
|
||||
if add_button:
|
||||
await add_button.click()
|
||||
|
|
|
|||
Loading…
Reference in New Issue