Selenium-java: Screenplay example

Last week, i have read a post about ScreenPlay design pattern, and hear it in Selenium Conference 2016. So today I created this post to show "How to implement ScreenPlay in Selenium Java". For concepts and comparison between Page Object and ScreenPlay, please find in attached links in this my post. URL: http://www.calculator.net/bmi-calculator.html Test case steps: Click … Continue reading Selenium-java: Screenplay example

Chocolaty – The package manager for Windows

You can find many tool to manage packages on MAC, Linux but on Windows maybe lesses. This week, I read a blog use chocolaty to install packages on Windows via command line, so i create this post to share it to everybody. The first, you can read chocolaty at: https://chocolatey.org/ and installation guide at: https://chocolatey.org/install.   ** … Continue reading Chocolaty – The package manager for Windows

Add dependencies for maven selenium project

Please see my previous post about Create simple java + maven project with Inteliji, in this post, i will show how to add dependencies.   Open the pom.xml file and add <dependencies> ..</dependencies> block: You can find more maven dependency at: https://mvnrepository.com and the pom.xml file will be like it: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> … Continue reading Add dependencies for maven selenium project

[Selenium] Handle Ajax, loading page, state of element

This section will show a solution to handle ajax while perform selenium scripts with java. selenium have methods to check status of web element such as: isDisplayed(), isVisibled(), isSelected() but in actual, we face many cases that theirs functions is not work well. For wait function, Selenium have 3 types: implicit wait (not recommend) explicit wait (recommend) fluent wait (recommend … Continue reading [Selenium] Handle Ajax, loading page, state of element