Change Header on Scroll in Angular2 Typescript

As I was migrating from Angular 1.x to Angular 2, I needed to implement a header which changes its background when the page is scrolled somewhat similar to this fiddle fork. The basic idea is to change or apply a class on the header on the scroll event after some scrolling. Here is the working … Continue reading Change Header on Scroll in Angular2 Typescript

Advertisements

Constants in ECMA Script 6 and their implementations

Web browsers have already started providing ECMA Script 6 functionalities to the users, BUT  before utilizing these features there are few anomalies in the implementations in different web browsers, and one of them is constant. Constants were among the most awaited features in JavaScript. Below is a brief look at constants and their behavior in different browsers. … Continue reading Constants in ECMA Script 6 and their implementations

Element not clickable at point Selenium Webdriver

Issue: Element not clickable at point (x, y) Reason: This issue normally occurs if the target element is not clickable, which means that the element is not in the state of user interaction. This is due to the following reason A.) Element is in list and is currently not in the view-able area of the … Continue reading Element not clickable at point Selenium Webdriver

Handling tinyMCE editor with Selenium Webdriver

Here is how to use Selenium Webdriver with tinyMCE: The tinyMCE editor creates its own iframe, so before selenium is able to perform any task or action on it, it has to first switch the control to the iframe and then start execution. Here is how to switch this: // Select the iframe driver.switchTo().frame("yourtxtarea_ifr"); // … Continue reading Handling tinyMCE editor with Selenium Webdriver

Selenium Page Interactions and Actions API

Interactions A Note Before Interactions Slow Network Connections are evil for Selenium Since right the after the statement to load the page the element is not displayed, because the page might not have been loaded fully depending upon the network connection speed. If this is the case then the best way to deal with this … Continue reading Selenium Page Interactions and Actions API

Installing testlink in Ubuntu

We will go step by step for installing the testlink. We will assume that PHP, mySQL and apache server are already installed. Download testlink from Sourceforge. After downloading the testlink, extract it with following command:tar zxvf your_testlink_file_name.tar.gzThis will create a folder with same name. You can rename it to testlink with the following command: mv your_testlink_dir … Continue reading Installing testlink in Ubuntu

Selenium Element Selectors

To perform operations and tasks on webpage and or elements of the page, the selenium script requires to be aware of the element on which the operation is to be performed. Selenium provides a range of element selection method for that purpose. We will be looking at the most commonly used ones. Selectors Selenium generally selects … Continue reading Selenium Element Selectors