Uncategorized

Selenium tutorials

Selenium # Selenium Implicit and Explicit wait //Implicit Waitdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS)// Explicit waitWebDriverWait wait = newWebDriverWait(driver,20);wait.until(ExpectedConditions.textToBePresentInElementLocated Selenium # Selenium Keyboard and Mouse eventskeyDown(); keyUp(); sendKeys();doubleClick(); Code Example:Actions builder = new Actions(driver);Action actions = builder.moveToElement(“logintextbox”).click().keyDown(“logintextbox”, Keys.SHIFT).sendKeys(“logintextbox”, “hello”).keyUp(“logintextbox”, Keys.SHIFT).doubleClick(“logintextbox”).contextClick().build();actions.perform() ; What is Cucumber BDD for Selnium tests Cucumber BDD (Behaviourdriven development):Cucumber is a testing toolused for Software testingwith behaviour …

Selenium tutorials Read More »

DevOps tool chain and important tools and frameworks

Source code management:GitHub, BitBucket, GitLab Programming Languages:Java, Python,JavaScript,Typescript Build management tools:Gradle, Maven, Ant Configuration management:Ansible, Chef, Puppet,Salt Stack Container:Docker, LXC, RKT Container orchastrators:Kubernetes, Docker swarm,Openshift, NoMad Infrastructure Provisioning:Terraform, Azure template,AWS cloud formation,Google Deployment Manager Monitoring :DataDog, Grafana, Zabbix,Prometheus, Checkmk,New Relic Logging:Splunk, ELK, Graylog Clouds:Azure, AWS, GCP, OpenStack ,IBM Bluemix, Alicloud CI/CD:Jenkins, Travis CI, Circle CITeamCity, …

DevOps tool chain and important tools and frameworks Read More »

Kubernetes concepts, cluster, nodes, docker container, image, Dockerfile

Kubernetes concepts to remember: 1. Kubernetes Cluster: combination of large number of node machines 2. node machines:where Kubernetes softwareis installed and docker containers are hosted 3. docker container:each node machines contain large number of docker containers 4. docker image:Docker instructions are build and stored as image 5.Dockerfile:Docker instructionsare written in markup language and stored in …

Kubernetes concepts, cluster, nodes, docker container, image, Dockerfile Read More »

What are the new features in Python 3.9

Python 3.9 features: 1. High performance andflexibility – PEG basedparser (replaced currentLL(1) ) has high performanceand stability. 2. New 2 operatorsmerge “|”, and “|=” updateare introduced forDictionary operations 3. new two string functionsadded to string object for easy coding experience.they are ‘removeprefix(string)’and removesuffix(string) as below’prefix-n’. removeprefix(‘prefix-‘)’n-suffix’. removesuffix(‘-suffix’)both code provides ‘n’ as result 4. Type hinting …

What are the new features in Python 3.9 Read More »

What is single and double slash for xpath

#shortsWhat is Single slash ‘/’in Xpath in selenium: Single slash ‘/’ is usedwhen absolute Xpathis considered for Elementidentification for SeleniumWebDriver What is Double slash ‘//’in Xpath in selenium: Double slash ‘//’ is usedwhen relative Xpathis considered for Elementidentification for SeleniumWebDriver Relative Xpath ‘//’is better Elementidentification strategy

Java access modifiers:default, public, privateand protected

Java access modifiers:default, public, privateand protected. 1. default access modifier:here variables and methodsare accessible with in samepakage and not in other pakages 2. public access modifier:variables and methods are acce-ssible in same & other pakages 3. private access modifier:does not allow accessoutside to class or file 4. protected access modifier:here same pakage accessis allowed and …

Java access modifiers:default, public, privateand protected Read More »