Tutorials on Web Development, Programming, and Web Design

Tutorial using named arguments in Python

In Uncategorized

In this tutorial, consider the following function that takes two arguments… Yes, you can call the function like this … greeting = greet('John', 'Doe') But a better way is to call it...

read more

Difference between for-in and for-of in Javascript

In Uncategorized

Here is a way to help remember the difference between for-in and for-of loops in Javascript. for-in is “introspective”. It gives the keys. Use for-in on objects. Use for-of for...

read more

Generics Tutorial in Typescript

In Uncategorized

In this Generics tutorial in Typescript, consider the following logger function that takes type of “any” … No question this works. But can we do better than to use the...

read more

Tutorial writing Typescript functions

In Uncategorized

Before we get into the tutorial of writing Typescript functions. First review the two ways of writing functions in Javascript… Now we add type enforcement with Typescript … Here we...

read more

Tutorial Introduction to PyTest

In Uncategorized

Install PyTest with … pip install pytest Run it by … py.test You should get result saying … collected 0 items because it did not find any test in the directory. Create a Class to...

read more

Tutorial writing Selenium test script in Python

In Uncategorized

Continuing from last tutorial, we now extend the test_chrome.py script to have Selenium point the Chrome browser to icanhazdadjoke.com website and search for “cat” jokes by typing...

read more

Tutorial Installing Selenium on Python

In Uncategorized

Install Selenium on Python We first install Selenium Python package by this … pip install selenium Run Chrome Test We have to download “ChromeDriver Web Driver for Chrome” and copy...

read more

Chrome extensions for finding xPaths to DOM elements

In Uncategorized

ChroPath Chrome Extension Below is screenshot of the ChroPath Chrome extension for xPath to the DOM element of the Google’s search button… The highlight is the relative XPath, but it...

read more

pip commands

In Uncategorized

pip install: to install new Python packages pip uninstall: to uninstall them pip list: to see what packages are install pip show <package name>: to see more details of the package. pip help: give...

read more

Learn Web Tutorials is hosted by Hostmonster and design based on Wordpress template by Elegant Themes
All contents are opinions and are copyrighted and may contain display ads and ad links for which site may receive revenues from.
See Terms of Use and Privacy Policy.