Category: Web Development
Selenium | Take UI screenshots when script is executed
During testing a website with Selenium, function given below can take screenshot that can help us in cases like when testcase fails and we need the screenshot to see what happened on UI. Here is function to take screenshot: public
Java | static variables, instance variables, final and static
Explain with an example which variables should become instance variables and which others should become static. Also when to use final with static and final without static? (JAVA) INSTANCE VARIABLES: Variables that belong to the object of the class and
AWS Amazon CloudFront – How to enable cache for whole site
AWS Amazon CloudFront is a web service that speeds up serving static and dynamic web content like, .html, .css, .php, and image files and videos. It also integrates with other Amazon Web Services like S3, EC2, Elastic Load Balancer and
Does Java support call by reference?
Java does not support call by reference because in call by reference we need to pass the address and address are stored in pointers. Java does not support pointers and it is because pointers break the security. Java does manipulate
Selenium | how to upload a csv file with Selenium script
In this post I will give an example of how to upload a csv file with Selenium script to a webpage. Below is the screenshot of webpage: Code to automatically select a csv file and then click Submit button is
How to show slanted text and images using CSS?
Slanted text and Images in CSS for different browser is given by transform property in CSS. We need to specify the angle by which to slant the image or text. Angle can be negative or positive. Positive angle inclines the
Salesforce | Trap incoming email and extract email content with attachments in salesforce
Problem: Trap incoming email and extract email content with attachments in Salesforce Solution: Salesforce provides us a mechanism to trap incoming emails on a specific email id and extra email contents including attachments out of it. To achieve this we
PHP | Load Data Infile to insert csv data into Mysql with PHP
Problem: How to insert csv data into mysql table with mysql query in php. What problems usually you face with this and how to resolve them. Description: I have csv file with thousands of records. I want to insert these
Moodle/Totara | Creating a new Activity Plugin
Introduction: In Moodle/Totara we can add a different type of activities to a course by selecting from the list of standard activities available. As shown in the the list below: But there might be some cases in which we need
