I am a beginner in automation field.I have a CSV file with 50 rows each row contains urls.I'm trying to capture only specific rows.
csv file 1.www.google.com 2.www.facebook.com
import csv
from selenium import webdriver
chrome_path=(.......notepad++\chromedriver.exe')
driver=webdriver.Chrome(chrome_path)
driver.implicitly_wait(30)
driver.maximize_window()
with open('list.csv') as fb:
reader=csv.reader(fb)
rows=[r for r in reader]
driver.get(rows[1])
driver.quit()
error: selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: 'url' must be a string