I used two methods to get Page Source of an internal application link.
- first Method - used Robot Framework Keyword ${html_page} =. Get Source
- Second Method -
- using request -- visit_url_content = urllib.request.urlopen(url).read().decode('utf-8') and
- visit_url_content = requests.get(url, 'html.parser').text
After getting page source i am extracting all links with tag a and attribute as 'href' using beautifulsoup. soup = BeautifulSoup(html_page, "html.parser")
with first method i get about 20 links but with second method i get 2 links only... I need to process this in python so cannot use robot framework option. Any help as to why it might be happening