Tyydytys
Tyydytys

Reputation: 1

Automate process of grabbing elements from a webpage

I'm looking to automate test cases for webpage development using Robot Framework. I have about 5000 test case strings that describe pathways to different page elements. Now I'm going to be going through and grabbing specific "id" or "css selector" within the webpage for automation. My default option is to manually inspect each button, link, table etc. and enter it into a huge spreadsheet for automation, but I feel like there must be a less arduous method to extracting the elements.

I've looked into different options and the closest thing I can find to a solution is python webscraping, but from what I understand webscraping requires the elements are already defined and your goal is extract information rather than the actual elements.

Does anyone have a solution that might be a bit less tedious than inspecting 5000 webpage elements? ;)

Upvotes: 0

Views: 83

Answers (1)

Gergo
Gergo

Reputation: 135

If you can put your page in IFRAME, than you could probably use JS (in the parent) to wait until page is loaded and then get (all or specific) elements in the IFRAME. That way you should be able to get all the elements of fully rendered page.

(never did this, but it should work)

Upvotes: 0

Related Questions