How to Handle Alerts and Popups in Protractor With Selenium?

See the original posting on DZone Python

There are times in the life-cycle of various web applications where you need to interrupt a message to the user. These may be warnings, alerts, or information. Browsers have native dialog boxes, one that you can show to alert users to these important messages using JavaScript.

Suppose you fill in an application form and accidentally miss out on a couple of details. How do you know this unless there is a notification alert or a pop-up window? Or If we test a web application using Selenium JavaScript and try logging in to a web site, but do not add an email ID or password to the required fields, the program sends an alert. This is precisely what I will be talking about today. I will be performing Selenium test automation using Protractor to handle alerts and pop-ups. 

Top 10 PHP Development Tools For Efficient PHP Developers

See the original posting on DZone Python

PHP is the fastest and most widely used server-side scripting language for building websites and web apps. There are many good reasons why several developers prefer PHP to other server-side languages like Python and Ruby. PHP includes detailed documentation, numerous ready-to-use scripts, a huge community, and well-supported frameworks. To make PHP work easier, experts have developed some PHP development tools that increase programming efficiency. PHP tools are meant to account for a perfect IDE (Integrated Development Environment) where PHP developers can efficiently build engaging, innovative, and feature-rich PHP projects.

Today’s market is flooded with many PHP tools, and choosing the best one from among them is a challenging task. Here are the top 10 best PHP development tools that captured the attention of web development communities.

Adding Google reCAPTCHA v3 to Your Laravel App

See the original posting on DZone Python

Hi there. I want to share with you how I implemented Google’s reCAPTCHA v3 in my Laravel app.

Securing HTML forms from bots is an essential part of the security of any web app these days. One common and easy solution to this is implementing a captcha system. And Google’s reCAPTCHA v3 makes it quite easy to both implement as a developer and use as a user (v3 users do not have to select images to verify).

Introducing a Drill Down Table API in Cube.js

See the original posting on DZone Python

Since the release of drill down support in version 0.19.23, you can build interfaces to let users dive deeper into visualizations and data tables. The common use case for this feature is to let users click on a spike on the chart to find out what caused it, or to inspect a particular step of the funnel — who has converted and who has not.

In this blog post, I’ll show you how to define drill downs in the data schema and build an interface to let users explore the underlying chart’s data. If you’re just starting with Cube.js, I highly recommend beginning with this Cube.js 101 tutorial and then coming back here. Also, if you have any questions, don’t hesitate to ask them in our Slack community.

Builder Design Pattern in Modern C++

See the original posting on DZone Python

In software engineering, Creational Design Patterns deal with object creation mechanisms — trying to create objects in a manner suitable to the situation. The basic or ordinary form of object creation could result in design problems or added complexity to the design. Builder Design Pattern in C++ solves this specific problem by separating the construction of a complex object from its representation.

By the way, If you haven’t check out my other articles on Creational Design Patterns, then here is the list:

Creating a JWT auth server in 1 second

See the original posting on DZone Python

Security is one of those things you shouldn’t play around with yourself, unless you know what you’re doing. This is the reason products such as Identity Server has gained such momentum and popularity. However, Identity Server is extremely difficult to configure correctly, and OIDC is also arguably a "hack" on top of OAuth2. JWT on the other hand, is dead simple to understand, and was created explicitly to authenticate and authorise users, contrary to OAuth that was originally created for an entirely different purpose. Hence, JWT is just as secure as OpenID Connect, only a gazillion times easier to understand and implement.

In the following video I demonstrate how to create your own JWT server using Magic in 1 second. Notice, Magic is a commercial product, and you need to pay a small fee to use it in a production environment – But compared to the number of hours you’d have to spend rolling your own Enterprise Single Sign On solution using JWT, I’m confident in that the license costs are small in comparison.

Deno JS: CRUD and MySQL Connection

See the original posting on DZone Python

Deno.js is a new backend language based on the javascript framework. Deno is a simple, modern, and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. In this tutorial, we’ll learn how to develop a complete CRUD web application using Deno js (Oak as a framework) and using Mysql as database. 


This project takes an example of an Employee object having four attributes id, name, department, and isActive. We will proceed with adding an employee object in our DB and then performing further operations.

Getting Started With AVRO

See the original posting on DZone Python

Recently we want very fast communication between our distributed system, our payload was also considered so we try to evaluate different protocols like AVRO, Thrift, Protobuff, and MessagePack. I will try to cover each one in-depth starting with AVRO, so stay tuned for others.

So what is AVRO?

AVRO is a data serialization framework. It uses JSON to define the schema and serialize data into a binary compact format that can be store in persistent storage or transfer across the wire. We are not going to go in details of definition but will concentrate on implementation and its pros and cons.

Common Selenium XPath Mistakes

See the original posting on DZone Python

Xpath is widely used in Selenium for web automation testing. We all have gone through challenges to find perfect XPath for that web element yet due to time constrain or ease to get and XPath via default browser finder or some chrome plugin makes leads to a very poor XPath selection for web element identification.

Well, nobody is perfect! Even if you have selected a poor XPath, we can always go back and refactor our web element’s XPath and find a better alternative for it. Below are the mistakes I have seen on various test frameworks. If we fix these mistakes it will lead to better clarity of the test scenario and less maintenance for the regression suite. 

Best Resources to Learn React Native Development

See the original posting on DZone Python

React Native is a framework for building cross-platform mobile apps for iOS and Android. There are lots of materials with which to learn React Native and in this article, I will show the best 10 resources to learn React Native development. For each learning material, I will talk about the entry behavior, time to complete, content, and difficulty level.

1. The Official Documentation

You can find the official documentation here.

What Are The Ways To Capture User Feedback in React Native Application?

See the original posting on DZone Python

There’s nothing like receiving real feedback from your users. But the question is how to capture that feedback. Here we will discuss everything about how you should prompt them, when you should prompt them, and what tools can be used to capture the user’s feedback in react native application. 

Let’s have a look at some of the bad ways or bad times when applications ask for a feedback or a review:

All About Maps — Episode 1: Showing Routes From GPX Files on Maps

See the original posting on DZone Python

All About Maps

Let’s talk about maps. I started an open-source project called All About Maps ( In this project, I aim to demonstrate how we can implement the same map related use cases with different map providers in one codebase. We will use Mapbox Maps, Google Maps, and Huawei HMS Map Kit. This project uses the following libraries and patterns:

  • MVVM pattern with Android Jetpack Libraries

REST API Tools Smackdown

See the original posting on DZone Python


So you’ve decided that with your next project you are going to tread the RESTful path. But to be smart about it, you need an intelligent tool to ensure quality and productivity. With the abundance of options available, let’s thumb through some of the developers’ favorites.

First Things First – API Definition

Swagger Editor is a popular choice with graphical visualization. APIs can be defined either in JSON or YAML. Additionally, you can generate a server-side or client-side stub for most of the relevant technologies (from ASP.NET Core and Kotlin to Node.JS and Python).

1 2 3 195