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 »

Docker image commands

//Build an image fromDockerfile and tag it docker build -t appimage:1.1 //List all images docker image ls //Delete an image docker image rm appimage:1.1 // to get rootprivilege use’sudo’ before above commands e. g. sudo docker image ls #shorts

Most useful git commands

Most useful git commands are git init, git add ., git commit, git push, git pull, git feth 1. git init// to start local repo 2. git add .//to add local changesto staging area 3. git commit -m “change1″// to collect stagedchanges 4. git push// to push localcommittedchanges toremote branch 5. git fetch// will fetchremote …

Most useful git commands Read More »

What is Blue/Green Deployment and its Pros/Cons

What is Blue/Green Deployment and its Pros/Cons t’s an AdvancedDeployment processwith following steps 1. While Blue environmentis active and supportingproduction users,Green environmentwill be upgraded,then smoke tested 2. After successfulsmoke test, Load balancerwill direct user trafficto Green environment 3. Now Blueenvironmentwill be upgraded Pros:Uninterruptedavailability of servicesduring deployment Cons:Expensive to maintainduplicateproduction environment