5. Selenium Webdriver with Python Tutorial - Basic Actions #1

preview_player
Показать описание
In this video, I show you how to send keys to a field and how to click on a button using the Selenium Webdriver Python API.
I also show you how to use Webdriverwait (explicitwait) to wait for an element to display.

"Selenium Webdriver Python Training"
"Selenium Webdriver Python Tutorial"
"Selenium Python"
"WebdriverWait"
"FireBug"
"FirePath"
"Selenium Send_Keys"
"Selenium Click"
"Selenium Grid"
"Selenium IDE"
"Page Objects"
"UI Map"
Xpath
Css Selector
Рекомендации по теме
Комментарии
Автор

This is so cool. I've been learning more about unit tests and the selenium library, so this was two birds with one stone. Thank you.

mwtillotson
Автор

Thank you! Great tips for beginners, now I'm ready to dig deep into Selenium documentation!

izaiasags
Автор

but you dont explain what does unittest means, what does setUp(self) means and others element....
how can manual tester understand that

ov
Автор

In your code you did not define the Firefox profile. Isn't it mandatory?

farmakoxeris
Автор

How does the unittest runner now to run your code? I didn't see any connection there?

yonatanmyers
Автор

So loginbutton.click, can this be used for any button? Or does it need special definition first to identity?

jsx
Автор

wondering if you can help me with this on a project im working on. in understand the concept but you lost me at the log in button part

anthonysanchez
Автор

is there any way to click a button or hyperlink on a webpage without knowing its id/name etc but know its pixel location?

sameerbolke
Автор

I have that issue :( my python is 2.7

ERROR: test_Login (__main__.LoginTest)

Traceback (most recent call last):
File "BasicActions.py", line 23, in test_Login
loginButtonElement = webDriverWait(driver, 20).until(lambda driver:
File "C:\Python27\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace)
TimeoutException: Message:

joaobaganha
Автор

Thanks for the nice tutorial.
Just a question: Why did you use the elements' ids for the email/pass fields and XPath expressions for the submit button/logo?

pkaramol
Автор

I used eclipse and getting this:

Undefined variable: _name_

How can i fix this?

Akash
Автор

thank you very much! awesome tutorial ^_^

reymondturbanada
Автор

PyCharm is telling me "ImportError: No module named selenium". I'm using Python 2.7. Is there a way that I need to manually download and import selenium?

derekantrican
Автор

I need online training currently i am working as automation engineer using Robot frame work and Selenium2 library

ramakoteswararaovemuri
Автор

Hi great video...


I have a question is there any way to do the exact same without displaying the browser on screen but the work should be done off screen...

BarathKumar
Автор

Guys, i have an error
NameError: global name 'find_element_by_name' is not defined

can you help me?

Lev-fuys
Автор

is it possible to do this with python 3.5??

stevepill
Автор

I didn't understand the whole logic behind that facebook logo thing. What's the need? Would anyone explain it?

JenilCalcuttawala