python - Get values from CSV Selenium -


i trying write selenium script post ad on craiglist. have selenium script following in post values directly passed.

var driver = test.openbrowser(); var selenium = driver.getselenium();  var timeout = 30000; selenium.settimeout(timeout);  var tx = test.begintransaction();  var step = test.beginstep("step 1"); selenium.open("https://www.google.co.in/?gws_rd=cr&ei=5i1suur9estiraed8ocgba"); test.endstep();  test.beginstep("step 2"); selenium.waitforpagetoload(60000); selenium.type("id=gbqfq", "chennai craiglist"); selenium.keypress("id=gbqfq", "\13"); selenium.click("link=craigslist: chennai (madras) classifieds jobs, apartments ..."); test.endstep();  test.beginstep("step 3"); selenium.waitforpagetoload(60000); test.endstep();  test.beginstep("step 4"); selenium.waitforpagetoload(60000); selenium.click("link=admin / office"); test.endstep();  test.beginstep("step 5"); selenium.waitforpagetoload(60000); selenium.doubleclick("id=ef"); selenium.click("link=post"); test.endstep();  test.beginstep("step 6"); selenium.waitforpagetoload(60000); selenium.click("name=id"); test.endstep();  test.beginstep("step 7"); selenium.waitforpagetoload(60000); selenium.click("name=go"); test.endstep();  test.beginstep("step 8"); selenium.waitforpagetoload(60000); selenium.click("xpath=//section[@class='body']/form/blockquote/label[2]/input"); test.endstep();  test.beginstep("step 9"); selenium.waitforpagetoload(60000); selenium.type("id=postingtitle", "post title "); selenium.type("id=geographicarea"); selenium.type("id=geographicarea", "post location"); selenium.type("id=postingbody", "post description"); selenium.type("id=fromemail", "replyto@gmail.com"); selenium.type("id=confirmemail", "replyto@gmail.com"); selenium.type("id=compensation", "doe"); selenium.click("name=go"); test.endstep();  test.beginstep("step 10"); selenium.waitforpagetoload(60000); selenium.click("name=file"); selenium.click("name=go"); selenium.click("xpath=//section[@class='body']//button[.='done images']"); test.endstep();  test.beginstep("step 11"); selenium.waitforpagetoload(60000); test.endstep();  test.endtransaction(); 

i trying script in such way these values stored in csv file , values should read that. tried using python along it. failed.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -