Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to call multiple data from csv file using python webdriver in selenium
    primarykey
    data
    text
    <p>I am using the code in single login credential. I need to use multiple login credentials using python webdriver. Please guide me some one how can i call csv file(multiple login credentials) in this below code.</p> <pre><code> from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import Select from selenium.common.exceptions import NoSuchElementException import unittest, time, re class Browse(unittest.TestCase): def setUp(self): self.driver = webdriver.Firefox() self.driver.implicitly_wait(30) self.base_url = "http://careergrab.ionface.com/" self.username=['senthil@gmail.com','senthil@gmail.com'] self.password=['12345','12345'] self.verificationErrors = [] def test_browse(self): driver = self.driver driver.get(self.base_url + "/") driver.find_element_by_css_selector("img[alt=\"img\"]").click() driver.find_element_by_link_text("Career Grab").click() driver.find_element_by_class_name("browse").click() driver.find_element_by_id("id_identification").clear() driver.find_element_by_id("id_identification").send_keys(self.username) for index in range(len(self.password)): driver.find_element_by_id("id_password").clear() driver.set_page_load_timeout driver.find_element_by_id("id_password").send_keys(self.password) driver.find_element_by_css_selector("input.login-button").click() def is_element_present(self, how, what): try: self.driver.find_element(by=how, value=what) except NoSuchElementException, e: return False return True def tearDown(self): self.driver.quit() self.assertEqual([], self.verificationErrors) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload