0

I am trying to automate a task with python. This task is simply to open a link, put some text into the field and click the button. I can't seem to figure out where the link is for this button/how to click this button through python or a different programming language. I dont see an onclick() or ref/link for it. When I get the html code for the site the button is not in it but when I inspect the elements of the page I can see it. Please let me know what I should do thanks in advance. webpage_elements

  • 1
    You should probably just hit the API directly instead of trying to use web automation. Can you see the network request when you perform the action yourself? – bryce Jun 20 '22 at 15:12
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jun 20 '22 at 15:22
  • How can I go about seeing the network request when I perform the action myself? – Zack Paquette Jun 20 '22 at 17:34
  • You don't have a button because it needs javascript to render. You need to use real browser. Use playwright https://playwright.dev/python/docs/intro. Also add URL page to your post. – MeT Jun 20 '22 at 19:18
  • @ZackPaquette you can see request here https://stackoverflow.com/questions/4423061/how-can-i-view-http-headers-in-google-chrome – MeT Jun 20 '22 at 19:19
  • 1
    @MeT playwright did it. Thank you so much!!!!! Why did playwright do it and not selenium? Is there a way to obtain the source/element code from after the javascript is processed? I could not post the link bc it is work related unfortunately. – Zack Paquette Jun 20 '22 at 21:50

0 Answers0