Articles on Trending Technologies

Technical articles with clear explanations and examples

How to click on a link in Selenium?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 10-Jun-2020 3K+ Views

We can click a link in Selenium by the following locators along with click() method.By link text.By partial link text.Code Implementation with link text locator.Exampleimport 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 LinkScripting {    public static void main(String[] args) {       System.setProperty("webdriver.chrome.driver",    "C:\Users\ghs6kor\Desktop\Java\chromedriver.exe");       WebDriver driver = new ChromeDriver();       String url = "https://www.tutorialspoint.com/index.htm";       driver.get(url);       driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);       driver.findElement(By.linkText("Coding Ground")).click();       driver.close();    } }Code Implementation with partial link text locator.Exampleimport org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; ...

Read More

What are the most basic steps to write a web driver script?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 10-Jun-2020 147 Views

The most basic steps to write a web driver script are listed below −Open any browser by creating a webdriver reference pointing to the corresponding browser driver class.Launch any URL with the get() method.Pause for some time for the page load.Confirm that we are on the correct web page.Finally close the session.Code ImplementationExampleimport 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 WebScripting {    public static void main(String[] args) {       System.setProperty("webdriver.chrome.driver",       "C:\Users\ghs6kor\Desktop\Java\chromedriver.exe");       WebDriver driver = new ChromeDriver();       String url = "https://www.tutorialspoint.com/index.htm";     ...

Read More

List down the name of the Web drivers supported by Selenium.

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 10-Jun-2020 1K+ Views

The name of the web drivers supported by Selenium are listed below −Google Chrome Driver [ ChromeDriver() supports chrome ]HTML Unit Driver [ WebClient() supports chrome, firefox and IE ]Safari Driver [ SafariDriver() supports Safari ]IOS Driver [ IOSDriver() supports ios ]Android Driver [ AndroidDriver() supports Android ]OperaChromium Driver [ ChromeDriver() supports opera ]Gecko Driver [ FirefoxDriver() supports firefox ]Microsoft WebDriver [ InternetExplorerDriver() supports IE ]EventFiring WebDriver [ EventFiring Driver() supports majority of browsers ]Code Implementation with Firefox driverExampleimport org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import java.util.concurrent.TimeUnit; public class BrowserDriverScript {    public static void main(String[] args) ...

Read More

Why does the Selenium WebDriver have an edge over Selenium RC?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 10-Jun-2020 365 Views

Selenium was introduced as a part of version 1.0 of Selenium. Selenium WebDriver was introduced as a part of version 2.0 of Selenium. Selenium RC is deprecated and obsolete now. Though some users still use Selenium RC, the support for it is not there anymore.Selenium RC enabled the feature of recording scripts in multiple browsers namely Chrome, Safari, IE and so on. Also, it had communicated with the browser via the Selenium RC server.Selenium Web Driver supported cross browser testing and did not require the Selenium Server which enhanced its speed of execution. Overall Selenium RC had an architecture which ...

Read More

What is the Selenium Web Driver Architecture?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 10-Jun-2020 10K+ Views

Selenium Web Driver architecture in a simplified diagram is described below:Let us now understand the Selenium Web Driver Architecture. Selenium WebDriver API enables interaction between browsers and browser drivers. This architecture consists of four layers namely the Selenium Client Library, JSON Wire Protocol, Browser Drivers and Browsers.Selenium Client Library consists of languages like Java, Ruby, Python, C# and so on. After the test cases are triggered, entire Selenium code will be converted to Json format.JSON stands for Javascript Object Notation. It takes up the task of transferring information from the server to the client. JSON Wire Protocol is primarily responsible ...

Read More

Difference between Simultaneous and Hierarchical Access Memory Organisations

Nitin Sharma
Nitin Sharma
Updated on 09-Jun-2020 1K+ Views

As we know in context of computer/system, the main key feature on which the whole performance get dependent is Memory. It is memory and its allocation which make the system to perform fast and efficient. Now on the basis of organizing of this memory in the system, we can distinguish between Simultaneous and Hierarchical Access Memory Organisations.Following are the important differences between Simultaneous and Hierarchical Access Memory Organisations.Sr. No.KeySimultaneous Access Memory OrganisationsHierarchical Access Memory Organisations1DefinitionSimultaneous Access Memory Organisations is the memory organizing technique in which CPU can interact with multiple memory levels at same time and gets data interaction. This ...

Read More

Difference between Simple and Complex View in SQL

Nitin Sharma
Nitin Sharma
Updated on 09-Jun-2020 3K+ Views

Before discussing on Simple and complex, first we should know what is View. A View is the logical virtual table created from one or more tables which can be primarily used to fetch the columns from one or more different tables at a time. On the basis of tables involved in the view we can distinguish between Simple and Complex View in SQL.Following are the important differences between Simple and Complex View.Sr. No.KeySimple ViewComplex View1DefinitionSimple View in SQL is the view created by involving only single table. In other words we can say that there is only one base table ...

Read More

Difference between Set and MultiSet in C++

Nitin Sharma
Nitin Sharma
Updated on 09-Jun-2020 5K+ Views

In C++, both Set and MultiSet are the type of data structures which are used to store the data for easy accessing and insertion. On the basis of characteristics of both these data structures we can distinguish between Set and MultiSet.Following are the important differences between Set and MultiSet −Sr. No.KeySetMultiSet1DefinitionSet in C++ can be defined as a type of associative container which stores the data in key value pair and in which each value element has to be unique, because the value of the element identifies it.On other hand MultiSet are part of the C++ STL (Standard Template Library) ...

Read More

Difference between ASP and ASP.NET

Nitin Sharma
Nitin Sharma
Updated on 09-Jun-2020 4K+ Views

Both ASP and ASP.NET are the widely used languages for application and mainly the frontEnd development. Both the languages used for dynamic generation of web pages. The content generated through server-side scripting is then sent to the client’s web browser.Following are the important differences between ASP and ASP.NET.Sr. No.KeyASPASP.NET1DefinitionASP or also popularly known as Classic ASP developed by Microsoft is first Server-side scripting engine which is used for dynamic generation of web pages.ASP.NET, on the other hand, is a server-side web framework, open-source, which is designed for the generation of dynamic web pages.2Language typeASP is interpreted language that means the ...

Read More

Difference between Synthesized and Inherited Attributes

Nitin Sharma
Nitin Sharma
Updated on 09-Jun-2020 23K+ Views

Both Synthesized and Inherited Attribute are the part of semantics of a language that provide meaning to its constructs, like tokens and syntax structure. Semantics help interpret symbols, their types, and their relations with each other and its analysis judges whether the syntax structure constructed in the source program derives any meaning or not. Now on the basis of features of attributes we can distinguish between Synthesized and Inherited AttributesFollowing are the important differences between Synthesized and Inherited Attributes.Sr. No.KeySynthesized AttributeInherited Attribute1DefinitionSynthesized attribute is an attribute whose parse tree node value is determined by the attribute value at child nodes.To ...

Read More
Showing 54091–54100 of 61,297 articles
Advertisements