Loop for incrementing a click activity

I m trying to extract impact factor from a website.https://mjl.clarivate.com/search-results
I m trying to form a loop. So that when a click on view profile page (button). It will take me to another page from there I will scrape the text impact factor.
And then again by clicking on return to search (result button) .
I will be able to return to main page.
I have to do this for entire website.
Can someone help with how this can be done.