Re: Visit All URLs with selenium python

2017-04-13 Thread John Gordon
In <43f70312-83ba-457e-a83f-7b46e5d2a...@googlegroups.com> Nicole writes: > it just visit first url not all .. Can anybody help how to fix that.. Have you tried some basic debugging, for example printing p_links to verify that it contains what you expected, and then

Re: Visit All URLs with selenium python

2017-04-13 Thread Nicole
I have used 0 to 10 sec time sleep but it is not working.. please help me otherwise my assignment would get mark 0 -- https://mail.python.org/mailman/listinfo/python-list

Re: Visit All URLs with selenium python

2017-04-13 Thread Nicole
browser.get('https://www.google.co.uk/search?q=Rashmi=Rashmi=chrome..69i57j69i60l3.6857j0j1=chrome=UTF-8#q=Rashmi+Custom+Tailors') time.sleep(5) try: p_links = browser.find_elements_by_css_selector(' div > h3 > a') url_list = []

Re: Visit All URLs with selenium python

2017-04-13 Thread Nicole
Not actually that's not.. You said there could be a Problem in HTML that's why I tested it on a new URL but it just viting the first URL not all.. Please help.. -- https://mail.python.org/mailman/listinfo/python-list

RE: Visit All URLs with selenium python

2017-04-13 Thread Deborah Swanson
Nicole wrote, on Wednesday, April 12, 2017 11:30 PM > > Here you can see now > > from selenium.webdriver.firefox.firefox_profile import FirefoxProfile > import random > from selenium import webdriver > from selenium.webdriver.common.keys import Keys > >

RE: Visit All URLs with selenium python

2017-04-13 Thread Deborah Swanson
Nicole wrote, on Wednesday, April 12, 2017 11:05 PM > > Hi Deborah, >I checked again selecting css there found 11 URLS and I > printed it is printing all urls but it visits the first url not all.. Hmm. Sounds like you've changed your code in some way. Either changing the web page you're

RE: Visit All URLs with selenium python

2017-04-13 Thread Deborah Swanson
Nicole wrote, on Wednesday, April 12, 2017 11:05 PM > > Hi Deborah, >I checked again selecting css there found 11 URLS and I > printed it is printing all urls but it visits the first url not all.. I'm just guessing again, but time.sleep(4) could be too long a time to sleep,

RE: Visit All URLs with selenium python

2017-04-13 Thread Deborah Swanson
Nicole wrote, on Wednesday, April 12, 2017 11:03 PM > > from selenium.webdriver.firefox.firefox_profile import > FirefoxProfile import random from selenium import webdriver > from selenium.webdriver.common.keys import Keys Ok, that gives us a clue what you're working with, which will probably

Re: Visit All URLs with selenium python

2017-04-13 Thread Nicole
Here you can see now from selenium.webdriver.firefox.firefox_profile import FirefoxProfile import random from selenium import webdriver from selenium.webdriver.common.keys import Keys

Re: Visit All URLs with selenium python

2017-04-13 Thread Nicole
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile import random from selenium import webdriver from selenium.webdriver.common.keys import Keys -- https://mail.python.org/mailman/listinfo/python-list

Re: Visit All URLs with selenium python

2017-04-13 Thread Nicole
Hi Deborah, I checked again selecting css there found 11 URLS and I printed it is printing all urls but it visits the first url not all.. -- https://mail.python.org/mailman/listinfo/python-list

RE: Visit All URLs with selenium python

2017-04-12 Thread Deborah Swanson
Nicole wrote, on Wednesday, April 12, 2017 9:49 PM > > browser.get('https://www.google.co.uk/search?q=Rashmi=Rashm > i=chrome..69i57j69i60l3.6857j0j1=chrome=UTF-8# q=Rashmi+Custom+Tailors') > time.sleep(5) > > try: > p_links = >

Visit All URLs with selenium python

2017-04-12 Thread Nicole
browser.get('https://www.google.co.uk/search?q=Rashmi=Rashmi=chrome..69i57j69i60l3.6857j0j1=chrome=UTF-8#q=Rashmi+Custom+Tailors') time.sleep(5) try: p_links = browser.find_elements_by_css_selector('div > h3 > a') url_list = []