Skip to content
Browse files

Logowanie

  • Loading branch information...
1 parent 14b8335 commit 028d807faa31a000f433e9a25b3f1c30f0668b99 Karolina committed
Showing with 5 additions and 14 deletions.
  1. +3 −14 Selenium_test.py
  2. +2 −0 puste_logowanie.py
View
17 Selenium_test.py
@@ -15,26 +15,15 @@ def zaloguj():
write_textfield(passw,'dupa.8')
submit = get_element(tag='input', type='submit')
click_element(submit)
-
-
-def testuj_puste_logowanie():
- go_to(base_url)
- sleep(3)
- user = get_element(tag='input', name='user')
- passw = get_element(tag='input', name='pass')
-
- write_textfield(user,'admin')
- write_textfield(passw,'dupa.8')
- submit = get_element(tag='input', type='submit')
- click_element(submit)
+
def testuj_czy_get():
text1 = get_element(tag='input', name='id1')
text2 = get_element(tag='input', name='id2')
- write_textfield(text1,u'ksztaltna dupa', check=False)
+ write_textfield(text1,u'ksztaltna dupa')
sleep(3)
- write_textfield(text2,u'ksztaltne cycki', check=False)
+ write_textfield(text2,u'ksztaltne cycki')
sleep(3)
submit = get_element(tag='input', type='submit')
click_element(submit)
View
2 puste_logowanie.py
@@ -12,5 +12,7 @@ def testuj_puste_logowanie():
#write_textfield(passw,'')
submit = get_element(tag='input', type='submit')
click_element(submit)
+ sleep(3)
+ go_to(base_url)
testuj_puste_logowanie()

0 comments on commit 028d807

Please sign in to comment.
Something went wrong with that request. Please try again.