-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_add_chrome.py
More file actions
27 lines (23 loc) · 987 Bytes
/
Copy pathtest_add_chrome.py
File metadata and controls
27 lines (23 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Generated by Selenium IDE
import pytest
import time
import json
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
class TestTestadd():
def setup_method(self, method):
self.driver = webdriver.Chrome()
self.vars = {}
def teardown_method(self, method):
self.driver.quit()
def test_testadd(self):
self.driver.get("http://localhost:3000/")
self.driver.set_window_size(633, 1049)
self.driver.find_element(By.CSS_SELECTOR, ".form-control").click()
self.driver.find_element(By.CSS_SELECTOR, ".form-control").send_keys("test")
self.driver.find_element(By.CSS_SELECTOR, ".btn").click()