I want to click on this checkbox:
<label for="auth:RegistrationForm:multistep[gtcAgbChechbox]" class="checkbox">
::before
Ich bestätige, dass ich die
<a href="/gtc" title="AGB" class="popup" data-title="gtc" data-funnelize="A::Click,O::###page###,T::Link,ST::GTC">AGB</a>
gelesen und akzeptiert habe.
</label>
But I can't click on the checkbox itself because the label has everything in it. I tried to do so but then it sometimes clicks on the link AGB which I don't want to.
So I tried clicking on "Ich bestätige, dass ich die" with:
WebDriverWait(driver, 15).until(expected_conditions.element_to_be_clickable((By.XPATH, '//*[@id="auth:RegistrationForm:multistep[signupForm]"]/div[4]/div[2]/div[1]/label/text()[1]'))).click()
But then I get the error "The result of the xpath is [object Text]. It should be an element."

