Я действительно попробовал почти все, что у меня на уме, чтобы нажимать на кнопки. Нет
Ниже представлен полный HTML код
<div class="row nest">
<div class="condition-row clearfix" id="condition_row_1">
<div class="field small-12 medium-6 columns">
<label>
Does this item still have the retail tags attached? <span>*</span>
</label>
<div class="btn-group elastic">
<a class="pill condition-tags btn white sml ">Yes</a><a class="pill condition-tags btn white sml ">No</a>
</div>
<p class="error clearfix" id="condition-tags_error" style="display: none;">Please select an answer</p>
<input class="required" type="hidden" id="property[condition-tags]" name="property[condition-tags]" value="">
</div>
<div class="field small-12 medium-6 empty columns"></div>
</div>
<div class="condition-row clearfix" id="condition_row_2">
<div class="field small-12 medium-6 columns">
<label>
Does this item have any signs of wear? <span>*</span>
</label>
<div class="btn-group elastic">
<a class="pill condition-wear btn white sml ">Yes</a><a class="pill condition-wear btn white sml ">No</a>
</div>
<p class="error clearfix" id="condition-wear_error" style="display: none;">Please select an answer</p>
<input class="required" type="hidden" id="property[condition-wear]" name="property[condition-wear]" value="">
</div>
<div class="field small-12 medium-6 empty columns"></div>
</div>
<div class="condition-row clearfix" id="condition_row_3">
<div class="clearfix"></div>
<div class="field small-12 columns" id="condition-custom-outer" style="display: none;">
<hr class="hr-line">
<label>Tag any signs of wear.</label>
<div class="btn-group elastic">
<a class="pill condition-list btn white sml ">Scuffs or scratches</a><a class="pill condition-list btn white sml ">Damaged or missing stones</a><a class="pill condition-list btn white sml ">Tarnishing</a> <a class="condition-add-custom btn white sml" id="condition-add-custom" href="javascript:void(0);">
<span class="icon-plus-solid"></span>Add your own
</a>
</div>
<div class="clearfix"></div>
<hr class="hr-line">
<label>Note</label>
<textarea class="condition-notes" placeholder="Please describe wear or damage in detail." id="property[condition-note]" name="property[condition-note]"></textarea>
<input class="customConditions" type="hidden" id="property[condition-list]" name="property[condition-list]" value="">
</div>
<div class="field small-12 medium-6 empty columns"></div>
</div>
</div>
Пробовал с XPATH, CSS_SELECTOR, LINK_TEXT
Все доступные методы
Кажется, ни один из них не работает.
try:
WebDriverWait(driver, 10).until(
EC.element_to_be_clickable((By.XPATH,'/html/body/div[3]/div/div/div[2]/form/div[3]/div[2]/div[1]/div/div[2]/div[1]/div[2]/div/div[1]/div[1]/div/a[2]'))).click()
except:
errorDuringFill = True
Использование FIREFOX
Живая цель доступна на: https://www.tradesy.com/sell/
Категория: Обувь ..., аксессуары, украшения, браслеты