[error] timeout reached when looking for element


#1

Hello,
I’m having this issue when running this in my script, that i made and i couldn’t make a fix of it.

I tried everything and i don’t know what to do. can anyone help me.

My project is making an amazon automatic bo4 codes, it presses the button only and i’m having issues.

    {
  "CreationDate": "2018-8-12",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://www.amazon.co.uk/ap/register?_encoding=UTF8&openid.assoc_handle=gbflex&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.pape.max_auth_age=0&openid.return_to=https%3A%2F%2Fwww.amazon.co.uk%2Fgp%2Fyourstore%2Fhome%3Fie%3DUTF8%26ref_%3Dnav_newcust",
      "Value": ""
    },
    {
      "Command": "type",
      "Target": "id=ap_email",
      "Value": "email"
    },
    {
      "Command": "clickAndWait",
      "Target": "id=continue",
      "Value": ""
    },
    {
      "Command": "open",
      "Target": "https://www.amazon.co.uk/Call-Duty-Black-Ops-Pro/dp/B07DPV4XDX/ref=sr_1_2_twi_cd__1?ie=UTF8&qid=1533779751&sr=8-2&keywords=black+ops+4",
      "Value": ""
    },
    {
      "Command": "clickAndWait",
      "Target": "id=add-to-cart-button",
      "Value": ""
    },
    {
      "Command": "open",
      "Target": "https://www.amazon.co.uk/Call-Duty-Black-Ops-Xbox/dp/B07DPW42WJ/ref=sr_1_2_twi_cd__3?ie=UTF8&qid=1533778259&sr=8-2&keywords=black+ops+4",
      "Value": ""
    },
    {
      "Command": "clickAndWait",
      "Target": "id=add-to-cart-button",
      "Value": ""
    },
    {
      "Command": "open",
      "Target": "https://www.amazon.co.uk/Call-Duty-Exclusive-Calling-Amazon-co-uk/dp/B07D7LH3R4/ref=sr_1_1_twi_gam_1?ie=UTF8&qid=1533778259&sr=8-1&keywords=black+ops+4",
      "Value": ""
    },
    {
      "Command": "clickAndWait",
      "Target": "id=add-to-cart-button",
      "Value": ""
    },
    {
      "Command": "open",
      "Target": "https://www.amazon.co.uk/Call-Duty-Exclusive-Calling-Amazon-co-uk/dp/B07D7M2PC3/ref=sr_1_1_twi_gam_2?ie=UTF8&qid=1533778259&sr=8-1&keywords=black+ops+4",
      "Value": ""
    },
    {
      "Command": "clickAndWait",
      "Target": "id=add-to-cart-button",
      "Value": ""
    },
    {
      "Command": "open",
      "Target": "https://www.amazon.co.uk/Call-Duty-Black-Ops-Pro/dp/B07G3LFDG7/ref=sr_1_2?s=videogames&ie=UTF8&qid=1533400614&sr=1-2&keywords=black%2Bops%2B4&th=1",
      "Value": ""
    },
    {
      "Command": "clickAndWait",
      "Target": "id=add-to-cart-button",
      "Value": ""
    },
    {
      "Command": "open",
      "Target": "https://www.amazon.co.uk/Call-Duty-Black-Ops-Pro/dp/B07G4DSP1D/ref=sr_1_2?s=videogames&ie=UTF8&qid=1533400614&sr=1-2&keywords=black%2Bops%2B4&th=1",
      "Value": ""
    },
    {
      "Command": "clickAndWait",
      "Target": "id=add-to-cart-button",
      "Value": ""
    },
    {
      "Command": "open",
      "Target": "https://www.amazon.co.uk/Call-Duty-Black-Ops-Code/dp/B07BBGVF6B/ref=sr_1_3_twi_dvd_1?ie=UTF8&qid=1533778259&sr=8-3&keywords=black+ops+4",
      "Value": ""
    },
    {
      "Command": "clickAndWait",
      "Target": "id=add-to-cart-button",
      "Value": ""
    },
    {
      "Command": "clickAndWait",
      "Target": "link=Proceed to checkout",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "4",
      "Value": ""
    },
    {
      "Command": "click",
      "Target": "name=shipToThisAddress",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "4",
      "Value": ""
    },
    {
      "Command": "click",
      "Target": "//*[@id=\"shippingOptionFormId\"]/div[1]/div[2]/div/span[1]/span/input",
      "Value": ""
    },
    {
      "Command": "click",
      "Target": "id=ccAddCard",
      "Value": ""
    },
    {
      "Command": "open",
      "Target": "https://www.amazon.co.uk/gp/buy/spc/handlers/display.html?hasWorkingJavascript=1",
      "Value": ""
    },
    {
      "Command": "click",
      "Target": "id=continue-top",
      "Value": ""
    },
    {
      "Command": "clickAndWait",
      "Target": "name=placeYourOrder1",
      "Value": ""
    }
  ]
}

#2

Maybe try the visual ui method with #EFP?


#3

Had been having issues, with the page need to go down and stuff