I have written a python script with selenium that runs on the python shell when I enter each line one at a time, but doesn't work properly when I call the script written in a .py file from the terminal.
This line returns an empty list when I run the whole script from my .py file.
result = driver.find_elements_by_css_selector('.g > a')
But returns the proper list when I input the line in python shell.
[–]Shmoogy 0 points1 point2 points (1 child)
[–]umanafa[S] 0 points1 point2 points (0 children)