tag:blogger.com,1999:blog-8413152152322860613.post4406282136272268917..comments2024-03-13T21:30:30.697-07:00Comments on smyles blog: selenium + python = web automation ftw!smyleshttp://www.blogger.com/profile/18337620590297008155noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-8413152152322860613.post-10717640482675369602020-05-25T02:14:59.816-07:002020-05-25T02:14:59.816-07:00This comment has been removed by a blog administrator.latesttechnologyblogshttps://www.blogger.com/profile/00537914353624338231noreply@blogger.comtag:blogger.com,1999:blog-8413152152322860613.post-5082388099567188592019-10-23T03:35:00.171-07:002019-10-23T03:35:00.171-07:00This comment has been removed by a blog administrator.Annuhttps://www.blogger.com/profile/16474916918059327598noreply@blogger.comtag:blogger.com,1999:blog-8413152152322860613.post-58025786948768574922019-05-30T04:40:34.680-07:002019-05-30T04:40:34.680-07:00This comment has been removed by a blog administrator.Chris Hemsworthhttps://www.blogger.com/profile/06613494414894930889noreply@blogger.comtag:blogger.com,1999:blog-8413152152322860613.post-64904844909755802152019-01-31T22:30:53.332-08:002019-01-31T22:30:53.332-08:00This comment has been removed by a blog administrator.tamizhhttps://www.blogger.com/profile/11365697773422657301noreply@blogger.comtag:blogger.com,1999:blog-8413152152322860613.post-83333553314763596392018-10-10T02:05:12.364-07:002018-10-10T02:05:12.364-07:00This comment has been removed by a blog administrator.akhilapriya404https://www.blogger.com/profile/10222629842767638735noreply@blogger.comtag:blogger.com,1999:blog-8413152152322860613.post-85508996213327142592018-08-30T23:35:05.364-07:002018-08-30T23:35:05.364-07:00This comment has been removed by a blog administrator.Renuhttps://www.blogger.com/profile/10645244396839047167noreply@blogger.comtag:blogger.com,1999:blog-8413152152322860613.post-17620483321396231722016-11-15T20:55:54.348-08:002016-11-15T20:55:54.348-08:00This comment has been removed by a blog administrator.Keerthihttps://www.blogger.com/profile/15051803633102424348noreply@blogger.comtag:blogger.com,1999:blog-8413152152322860613.post-74284485270114449402016-08-27T08:30:14.230-07:002016-08-27T08:30:14.230-07:00import unittest
from selenium import webdriver
fro...import unittest<br />from selenium import webdriver<br />from selenium.webdriver.common.keys import Keys<br /><br />class SearchTests(unittest.TestCase):<br /><br />def setup(self):<br /><br /># create a new Firefox session<br />self.driver = webdriver.Chrome("C:\\Users\\Dreamthought\\Downloads\\chromedriver_win32")<br />self.driver.implicitly_wait(30)<br />self.driver.maximize_window()<br /><br />I am getting a bunch of error message while running the above code. Please help me to fix the issue.<br /><br />C:\Users\Dreamthought\AppData\Local\Programs\Python\Python35-32\python.exe "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.2.1\helpers\pycharm\utrunner.py" C:\Users\Dreamthought\PycharmProjects\Myfirstselenium\MyPythonProgram\Basicscript.py true<br />Testing started at 7:56 AM ...<br />Traceback (most recent call last):<br /> File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.2.1\helpers\pycharm\utrunner.py", line 153, in <br /> modules = [loadSource(a[0])]<br /> File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.2.1\helpers\pycharm\utrunner.py", line 65, in loadSource<br /> module = imp.load_source(moduleName, fileName)<br /> File "C:\Users\Dreamthought\AppData\Local\Programs\Python\Python35-32\lib\imp.py", line 172, in load_source<br /> module = _load(spec)<br /> File "", line 693, in _load<br /> File "", line 673, in _load_unlocked<br /> File "", line 661, in exec_module<br /> File "", line 767, in get_code<br /> File "", line 727, in source_to_code<br /> File "", line 222, in _call_with_frames_removed<br /> File "C:\Users\Dreamthought\PycharmProjects\Myfirstselenium\MyPythonProgram\Basicscript.py", line 7<br /> def setup(self):<br /> ^<br />IndentationError: expected an indented block<br /><br />Process finished with exit code 1Luckyhttps://www.blogger.com/profile/04915207099206494567noreply@blogger.comtag:blogger.com,1999:blog-8413152152322860613.post-22771678786539611012012-10-04T13:57:37.779-07:002012-10-04T13:57:37.779-07:00Hello engy. I'm glad that you found my post on...Hello engy. I'm glad that you found my post on selenium helpful. So far as the issues with the selenium web driver installation go, perhaps this link will be helpful? http://seleniumhq.org/docs/03_webdriver.htmlsmyleshttps://www.blogger.com/profile/18337620590297008155noreply@blogger.comtag:blogger.com,1999:blog-8413152152322860613.post-61404833135972869812012-10-02T05:46:03.696-07:002012-10-02T05:46:03.696-07:00these are amazing notes about using selenium+pytho...these are amazing notes about using selenium+python.<br />actually i'm having some issues with the needed api or files i have to pre-install to be able to use the selenium web driver.<br />i appreciate the help<br />engyengyhttps://www.blogger.com/profile/04458575975317351219noreply@blogger.com