Hi, I am trying to use selenium (in the console, not in an app) but it only works for some pages. Actually if I try to get the title of www.google.com by using:
from pyvirtualdisplay import Display
from selenium import webdriver
with Display():
browser = webdriver.Firefox()
try:
browser.get('https://www.google.com/')
print(browser.title)
finally:
browser.quit()
I get the correct output: 'Google'. It also works with others pages like amazon. However, if I try with https://www.wsj.com the output is 'Problem loading page'. If I try with the page I am interested in, http://www.renfe.com/, I get just 'Error'. I thought the reason was I was using the free account but after upgrading (to the 'hacker' account) the problems are still there.
Thank you very much in advance.