- π Hi, Iβm @ManishkumarJ
- π Iβm interested in Python,Robot Framework
- π± Iβm currently learning Python
manishkumarj Goto Github PK
Name: Manishkumar
Type: User
Bio: Test Design Professional
Name: Manishkumar
Type: User
Bio: Test Design Professional
Test
A robot powered training repository :robot:
Config files for my GitHub profile.
Sample
Repo for "Selenium for all" at the 2016 Selenium Conference. Scalable framework for automating tests for app on Android, iOS & Web(most supported browsers)
PROBLEM: As we know the explicit and the implicit waits are not applicable to the angularJS application. We are forced to use "Thread.sleep" statement in our framework. This leads to forcefull wait for the set timeout as defined. SOLUTION: Currently, We have come up with a stable solution without using the wait statement. The solution waits for Angular and jQuery to load and then proceed with the next statement. USE: 1. Add the angularJSWait utility class into your project. 2. Create a web driver object to angularJSWait class by adding the below lines angularJSWait.setDriver(driver); 3. Finally, replace the below method with the Thread.sleep. waitUntilAngularReady(); It only waits for Angular and JQuery //Wait Until JQuery, Angular and JS is ready public static void waitJQueryAngular() { waitUntilAngularReady(); waitUntilJQueryReady(); } Where it contains the two methods for the angular JS and JQuery. For AngularJS it will wait till the time angular JS is defined in the particular application. If angular JS is not defined, it waits for it to load and get defined. //Define whether angular is defined in the application or not Boolean angularUnDefined = (Boolean) jsExec.executeScript("return window.angular === undefined"); If Defined: //Define whether angular is ready or not String angularReadyScript1 = "return angular.element(document).injector().get('$http').pendingRequests.length"; Similarly, for JQuery it will check if JQuery is defined in the application or not. If the JQuery is present, it will wait until the time itβs not ready. //check that JQuery is defined on the page. Boolean jQueryDefined = (Boolean) jsExec.executeScript("return typeof jQuery != 'undefined'"); //If it is, then wait //AJAX if Defined //Wait Javascript loading until it is Ready!! jsReady1 = String.valueOf(jsExec.executeScript("return document.readyState").toString());
TestPublic
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.