Let us begin by understanding what a trademark is.TrademarkA Trademark is represented as a “brand” or “logo”. A trademark is a set of letters, words, sounds, or designs that categorize one company’s goods or services from those of others in the forum. Trademark protection is applicable for specific names, symbols, devices, or words that will be used in connection with a good or service. Technically, if a specific mark is related to a service, it is known as a "service mark, " but a trademark is generally used to define both marks related to services and goods.The goal of trademarks ... Read More
Let us begin by learning about the internet.InternetThe Internet is the biggest network that connects millions of computers worldwide. It is a team of a network including public, private, government, universities, school, and other academic and business networks linked by several technologies including wireless, optical, and electronic.Internet usage is the calculation (defined in bytes, kilobytes, megabytes, or gigabytes) of the amount of data streaming through your computer and the Internet network for a specific time. These data are shared in both directions such as from the Internet network to your device (download), and from your device to the Internet network ... Read More
Let us begin by understanding what an IP Camera is.IP CameraIP camera is a network digital camera that need the Internet Protocol (IP) and has its IP address. An IP camera is used when defining video surveillance cameras.An IP camera uses an Ethernet cable and sends a digital signal. This type of camera can be simply networked and can send a signal to a network video recorder (NVR) placed on a local or remote network.IP cameras tend to capture better quality pictures, which is especially beneficial in the case of transferring targets, as frame rates can be adjusted according to ... Read More
We can obtain the tagname of the parent element in Selenium webdriver. First of all, we need to identify the child element with help of any of the locators like id, class, name, xpath, or CSS. Then we have to identify the parent with the findElement(By.xpath()) method.We can identify the parent from the child, by localizing it with the child and then passing (parent::*) as a parameter to the findElement(By.xpath()). Next, to get the tagname of the parent, we have to use the getTagName() method.Syntaxchild.findElement(By.xpath("parent::*"));Let us identify tagname of the parent of child element li in the below html code ... Read More
We can obtain the page title using Selenium webdriver. The method getTitle() is used to obtain the present page title and then we can get the result in the console.Syntaxt = driver.getTitle();Let us find the title of the current page. We shall get About Careers at Tutorials Point – Tutorialspoint as output.ExampleCode Implementation.import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.concurrent.TimeUnit; public class PageTitle{ public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\Users\ghs6kor\Desktop\Java\chromedriver.exe"); //implicit wait driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); WebDriver driver = new ChromeDriver(); ... Read More
We can handle frames in Selenium webdriver in Python. An iframe is identified with a tag in an html document. An iframe is an html document containing elements that reside inside another html document. Let us see an html document of a frame.The following methods help to switch between iframes −switch_to.frame(args) – The frame index is put as an argument to the method. The starting index of the iframe is 0.Syntaxdriver.switch_to.frame(0), switching to the first iframe.switch_to.frame(args) - The frame name or id is put as an argument to the method.Syntaxdriver.switch_to.frame("nm"), switching to the iframe with name nm.switch_to.frame(args) - The ... Read More
We can interact with hidden elements in Selenium Webdriver. The hidden elements are the ones that are present in the DOM but not visible on the page. Mostly the hidden elements are defined by the CSS property style="display:none;". In case an element is a part of the form tag, it can be hidden by setting the attribute type to the value hidden.Selenium by default cannot handle hidden elements and throws ElementNotVisibleException while working with them. Javascript Executor is used to handle hidden elements on the page. Selenium runs the Javascript commands with the executeScript method. The commands to be run ... Read More
We can get an attribute value of an element in the Selenium Webdriver. This is achieved with the help of the getAttribute method. In an html document, each element is identified with its tagname along with the element attributes with their values. To get an attribute value, we have to pass the element attribute as an argument to the getAttribute method.Let us see the html code of an element and obtain the value of its src attribute. The value of its src attribute shall be /about/images/logo.png.ExampleCode Implementation.import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.concurrent.TimeUnit; public class ... Read More
We can upload files using Selenium Webdriver. This is achieved by the sendKeys method. We have to first identify the element which performs the file selection by mentioning the file path [to be uploaded].This is only applied to an element having a type attribute set to file as a value along with the element tag name as input. The below html code shows the element with type = file value set.ExampleCode Implementation.import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.concurrent.TimeUnit; public class WndsFileUpl{ public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\Users\ghs6kor\Desktop\Java\chromedriver.exe"); ... Read More
We can work with Selenium webdriver with Java Quickstart template. This can be done by following the below steps −Step1− Click on the File menu in Eclipse. Then select the option New. Next click on Other.Step2− Click on Maven Project from the Maven folder. Then click on Next.Step3− Proceed with the further steps.Step4− Select maven-archetype-quickstart template. Then click on Next.Step5− Add GroupId as Selenium, Artifact Id as Automation-Selenium, and proceed.Step6− A project should get created with an archetype project structure. The Selenium-related scripts should be written within the src/test/java folder.
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP