| || |
Selenium with python
Are there any online training/ tutorial for advanced selenium+python? All I see are really basic ones.
Are you looking for guidance on anything specific?
LearningSlot provides Selenium online training and many other software testing tools.Attend for demo to know about their training service and to choose the best institute.
Since selenium bindings are very similar between all the supported languages...
I would separate the two concepts. First learn python, then learn selenium. When learning Python, keep in mind there are 2 main version of python used today, Python 2.7 and 3. Although the languages are very similar, people get into trouble when they start mixing python 2 and python 3 libraries. I would recommend Python 3. (I've submitted code to making Selenium backwards compatible with Python 2.7 in the past, but the majority of the Selenium Committers are Python 3 users)
For learning the selenium part, pick any tutorial. Just a couple things to keep in mind are..
- When creating new drivers, you're doing `webdriver.Firefox()` as opposed to `new FirefoxDriver`,
- When locating elements, you will mainly see the form `driver.find_element_by_name("q")` vs `driver.findElementBy(By.Name, "q")`. Python does also support `By` objects as well, but generally pythonista prefer to use descriptive method names vs overloaded interfaces favored by the compiled languages.
- Make sure to understand lamba statements in Python. As you get stuck, you might google things and find lambda statements, especially with using WebDriverWaits. These are confusing to understand at first, but an easy way to think about them is think of them as function pointers.