Selenium: Automate Web Application Login
From last post, we have started writing basic selenium automation scripts. Now, let's take that journey forward and try to automate any web based application. In this post, we will automate our Facebook login as a demo which can be used for any web based application with little modifications. [Source: www.facebook.com ] Code with Explanation: We will create one class named FacebookLogin in the package blog in eclipse which we have created during googleSearch automation script. package blog; Here, we will import all the necessary external jars, we can give suppress warnings for jar which we are not using. import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; @SuppressWarnings("unused") public class FacebookLogin {...
Nice job buddy. I would like to hear more from you on such intrestiint topic
ReplyDeleteyes sure. you can learn with new posts every week. !!
Deletehello i have visited your blog first time.content was good enough but u have to put more real time scenario in actual where we have used oops concept in selenium
ReplyDelete..anyways nice job keep it up:)
Hi There, Thanks a lot. You will see more real time examples once we will start writing more complex scripts in Selenium. Here I am starting from beginners' level so flow can be maintained. Happy learning :)
DeleteGlad to connect !
ReplyDeleteThank you and same here ! Keep learning :)
Delete