I cant find an element that shows on home page logged in vs logged out

username 61452202780 password aaaaaaaa
[
  [
    "wait_for_element",
    {
      "value": "a[href=\"#settings\"]",
      "type": "css",
      "meta": {}
    },
    {
      "frame": 0,
      "timeout": 12
    }
  ],
  [
    "while",
    [
      "or",
      [
        "and",
        [
          "not",
          [
            "element_exists",
            {
              "value": ".close",
              "type": "css",
              "meta": {}
            },
            {
              "frame": 0
            }
          ]
        ]
      ]
    ],
    [
      [
        "wait_for_duration",
        1
      ],
      [
        "cond",
        [
          [
            "or",
            [
              "and",
              [
                "not",
                [
                  "element_exists",
                  {
                    "value": "div.vc-username span",
                    "type": "css",
                    "meta": {}
                  },
                  {}
                ]
              ]
            ]
          ],
          [
            "click",
            {
              "value": ".login",
              "type": "css",
              "meta": {}
            },
            {
              "x": 0,
              "y": 0
            },
            {
              "frame": 0,
              "timeout": 30,
              "button": "left",
              "clickCount": 1,
              "delay": 0
            }
          ],
          [
            "wait_for_duration",
            2
          ]
        ]
      ],
      [
        "type",
        {
          "value": "[type='text']",
          "type": "css",
          "meta": {}
        },
        "0452202780",
        {}
      ],
      [
        "type",
        {
          "value": "[type='password']",
          "type": "css",
          "meta": {}
        },
        "aaaaaaaa",
        {}
      ],
      [
        "click",
        {
          "value": ".login",
          "type": "css",
          "meta": {}
        },
        {
          "x": 0,
          "y": 0
        },
        {
          "frame": 0,
          "timeout": 30,
          "button": "left",
          "clickCount": 1,
          "delay": 0
        }
      ],
      [
        "wait_for_duration",
        1
      ]
    ]
  ],
  [
    "while",
    [
      "or",
      [
        "and",
        [
          "element_exists",
          {
            "value": ".close",
            "type": "css",
            "meta": {}
          },
          {
            "frame": 0
          }
        ]
      ]
    ],
    [
      [
        "click",
        {
          "value": ".close",
          "type": "css",
          "meta": {}
        },
        {
          "x": 0,
          "y": 0
        },
        {
          "frame": 0,
          "timeout": 30,
          "button": "left",
          "clickCount": 1,
          "delay": 0
        }
      ]
    ]
  ],
  [
    "cond",
    [
      [
        "or",
        [
          "and",
          [
            "element_exists",
            {
              "value": ".close",
              "type": "css",
              "meta": {}
            },
            {}
          ]
        ]
      ],
      [
        "click",
        {
          "value": ".close",
          "type": "css",
          "meta": {}
        },
        {
          "x": 0,
          "y": 0
        },
        {
          "frame": 0,
          "timeout": 30,
          "button": "left",
          "clickCount": 1,
          "delay": 0
        }
      ]
    ]
  ],
  [
    "wait_for_duration",
    3
  ],
  [
    "cond",
    [
      [
        "or",
        [
          "and",
          [
            "not",
            [
              "element_exists",
              {
                "value": "div.vc-username span",
                "type": "css",
                "meta": {}
              },
              {
                "frame": 0,
                "timeout": 30
              }
            ]
          ]
        ]
      ],
      [
        "click",
        {
          "value": ".login",
          "type": "css",
          "meta": {}
        },
        {
          "x": 0,
          "y": 0
        },
        {
          "frame": 0,
          "timeout": 30,
          "button": "left",
          "clickCount": 1,
          "delay": 0
        }
      ],
      [
        "cond",
        [
          [
            "or",
            [
              "and",
              [
                "element_exists",
                {
                  "value": "[class*='confirm']",
                  "type": "css",
                  "meta": {}
                },
                {
                  "frame": 0
                }
              ]
            ]
          ],
          [
            "click",
            {
              "value": "[class*='confirm']",
              "type": "css",
              "meta": {}
            },
            {
              "x": 0,
              "y": 0
            },
            {
              "frame": 0,
              "timeout": 30,
              "button": "left",
              "clickCount": 1,
              "delay": 0
            }
          ]
        ]
      ],
      [
        "type",
        {
          "value": "[type='text']",
          "type": "css",
          "meta": {}
        },
        "0452202780",
        {
          "frame": 0
        }
      ],
      [
        "type",
        {
          "value": "[type='password']",
          "type": "css",
          "meta": {}
        },
        "aaaaaaaa",
        {}
      ],
      [
        "click",
        {
          "value": ".login",
          "type": "css",
          "meta": {}
        },
        {
          "x": 0,
          "y": 0
        },
        {
          "frame": 0,
          "timeout": 30,
          "button": "left",
          "clickCount": 1,
          "delay": 0
        }
      ],
      [
        "wait_for_element",
        {
          "value": "a:nth-child(4) .material-icons",
          "type": "css",
          "meta": {}
        },
        {
          "frame": 0,
          "timeout": 30
        }
      ],
      [
        "wait_for_duration",
        2
      ]
    ]
  ],
  [
    "wait_for_duration",
    1
  ],
  [
    "cond",
    [
      [
        "or",
        [
          "and",
          [
            "element_exists",
            {
              "value": ".close",
              "type": "css",
              "meta": {}
            },
            {
              "frame": 0
            }
          ]
        ]
      ],
      [
        "click",
        {
          "value": ".close",
          "type": "css",
          "meta": {}
        },
        {
          "x": 0,
          "y": 0
        },
        {
          "frame": 0,
          "timeout": 30,
          "button": "left",
          "clickCount": 1,
          "delay": 0
        }
      ]
    ]
  ],
  [
    "cond",
    [
      [
        "or",
        [
          "and",
          [
            "element_exists",
            {
              "value": "a[href=\"#promotion\"]",
              "type": "css",
              "meta": {}
            },
            {}
          ]
        ]
      ],
      [
        "click",
        {
          "value": "a[href=\"#promotion\"]",
          "type": "css",
          "meta": {}
        },
        {
          "x": 0,
          "y": 0
        },
        {
          "frame": 0,
          "button": "left",
          "clickCount": 1,
          "delay": 0
        }
      ]
    ]
  ],
  [
    "wait_for_duration",
    2
  ],
  [
    "cond",
    [
      [
        "element_exists",
        {
          "value": ".close",
          "type": "css",
          "meta": {}
        }
      ],
      [
        "wait_for_element",
        {
          "value": ".close",
          "type": "css",
          "meta": {}
        },
        {
          "frame": 0,
          "timeout": 7
        }
      ],
      [
        "click",
        {
          "value": ".close",
          "type": "css",
          "meta": {}
        },
        {
          "x": 0,
          "y": 0
        },
        {
          "frame": 0,
          "button": "left",
          "clickCount": 1,
          "delay": 0
        }
      ]
    ]
  ]
]

i tried using username span negated but it fails for some reason

@asdhghbb what element are you looking for that could not be found? if you can share a screenshot, that will be great. thanks!