x@x-desktop:~$ pip3 install pandas
Requirement already satisfied: pandas in ./.local/lib/python3.5/site-packages
Requirement already satisfied: pytz>=2011k in ./.local/lib/python3.5/site-packages (from pandas)
Requirement already satisfied: numpy>=1.7.0 in ./.local/lib/python3.5/site-packages (from pandas)
Requirement already satisfied: python-dateutil>=2 in ./.local/lib/python3.5/site-packages (from pandas)
Requirement already satisfied: six>=1.5 in ./.local/lib/python3.5/site-packages (from python-dateutil>=2->pandas)
x@x-desktop:~$ cd Загрузки/
x@x-desktop:~/Загрузки$ python script_csv.py report\ \(27\).csv seotime_mails\ \(1\).csv
Traceback (most recent call last):
File "script_csv.py", line 2, in <module>
import pandas as pd
ImportError: No module named pandas
import sys
import pandas as pd
from pandas import read_csv
df1 = read_csv(sys.argv[1])
df2 = read_csv(sys.argv[2])
print(df1)
print(df2)
print sys.argv
el = wait.until(EC.element_to_be_clickable((By.XPATH, "//div/*/img")))
el.click()
time.sleep(5)
driver.find_element(By.XPATH, "//div/*/img").click()
Element <input type="text" size="24" autocomplete="off" id="ext-comp-5086" name="ext-comp-5086" class="x-form-text x-form-field x-trigger-noedit" readonly="" style="width: 176px;"> is not clickable at point (219, 20). Other element would receive the click: <div id="loading-mask" style="opacity: 0.024336;"></div>
Element <input type="text" size="24" autocomplete="off" id="ext-comp-5086" name="ext-comp-5086" class="x-form-text x-form-field x-trigger-noedit" readonly="" style="width: 176px;"> is not clickable at point (219, 20). Other element would receive the click: <div id="loading-mask" style="opacity: 0.024336;"></div>
def autister_login_test(self):
s = self.driver
s.get(hostname)
wait = WebDriverWait(s, 10)
assert "Log in | Django site admin" in s.title
s.find_element(By.ID, "id_username").send_keys(login)
s.find_element(By.ID, "id_password").send_keys(password)
element = wait.until(EC.element_to_be_clickable((By.XPATH, "//div[@class='submit-row']/input")))
element.click()
wait.until(EC.element_to_be_clickable((By.XPATH, "//th/a[contains(text(), 'Meta')]")))
assert "Site administration | Django site admin" in s.title
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
def autister_login_test(self):
s = self.driver
s.get(hostname)
wait = WebDriverWait(s, 10)
assert "Log in | Django site admin" in s.title
element = wait.until(EC.element_to_be_clickable((By.XPATH, "//div/input[@name='username']")))
element.send_keys(login)
s.find_element(By.ID, "id_password").send_keys("password")
s.find_element(By.XPATH, "//div[@class='submit-row']/input").click()
assert "Site administration | Django site admin" in s.title
def autister_login_test(self):
s = self.driver
s.get("http://autister.pythonanywhere.com/admin/")
time.sleep(5)
assert "Log in | Django site admin" in s.title
time.sleep(1)
s.find_element(By.ID, "id_username").send_keys("login")
time.sleep(1)
s.find_element(By.ID, "id_password").send_keys("password")
time.sleep(1)
s.find_element(By.XPATH, "//div[@class='submit-row']/input").click()
#time.sleep(3)
assert "Site administration | Django site admin" in s.title