0
keyword_input = wait_for_element(
    driver,
    By.XPATH,
    '/html/body/div[12]/div[2]/div/div/div/main/form/div[14]/div/div[2]/input',
    description="Keyword input field"
)
if keyword_input:
    keyword_input.click()
    keyword_input.clear()
    keyword_input.send_keys(keywords[i + 1])
    time.sleep(1)
else:
    print("❌ Keyword input not found.")
    continue
Error:
⚠️ Less than 22 items, skipping export.
➡️ Preparing to input next keyword...
Found Edit Filters button
Timeout waiting for Keyword input field
❌ Keyword input not found.

🔍 Searching with keyword: frida baby get-a-grip teether
⏳ Waiting for results to load...
Found 'Viewing' text
'Viewing' text detected: Viewing 0-0 of 0 items
Found items count text (specific)
📦 Found 0 items for 'frida baby get-a-grip teether'
⚠️ Less than 22 items, skipping export.
➡️ Preparing to input next keyword...
Found Edit Filters button
❌ Error updating filters for next keyword: Message: Element <button class="sc-iKOmoZ ilSVPa" type="button"> is not clickable at point (1594,281) because another element <div class="sc-cMHQto fvEFVp"> obscures it

enter image description here

I want to go to the title keyword input and change its value, but it's not working.

5
  • 2
    There's no need to click the div before sending some input. And are you sure that's the proper XPath? Commented May 15 at 8:01
  • yes the xpath is proper Commented May 15 at 8:50
  • ibb.co/7tn5bLdt Commented May 15 at 8:53
  • It should have been straightforward, are you working in headless mode? Make sure the filters sidebar is indeed opening, find the input element by xpath and try sending your keys directly. Commented May 15 at 9:01
  • 1
    Post the HTML of the page. Also, the image link shows no image. Attach the image. Commented May 15 at 9:28

1 Answer 1

0

fixed it by chaning xpath to css selector

and adding data-testid

Sign up to request clarification or add additional context in comments.

1 Comment

keyword_input = wait_for_element( driver, By.CSS_SELECTOR, 'input[data-testid="titlekeywords"]', timeout=5, description="Keyword input field (data-testid)" )

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.