1

I am trying to scrape job postings from this website: https://apply.workable.com/caxton and am using Selenium with Python for this exercise.

Here is the portion of the website's HTML where I face the problem:

enter image description here

I am trying to reach the <li> tags inside the <main> tag but get the Unable to locate element

error when I try to find the <main> tag using XPATH, TAG NAME, CLASS NAME or CSS SELECTOR. Please see my code and the result below.

Code

Output

Things seem to be fine until //div[@id = 'app']//div//div, since printing elem1 gives the webdriver element as the output (please see below).

Code

Output

Could you please suggest what code I can use to reach the <main> tag and ultimately the <li> tags contained therein?

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
dbjax
  • 39
  • 3