Selecting date in date picker widget, is exactly same as fetching values from web tables. Date picker is also a web table in kind. so the code explained earlier on on how to fetch values from web table will work here as well. Please find below code to select date in any date picker.
Jenkins is most widely used tool for Continuous Integration and Continuous Development purpose. You can schedule your build through Jenkins and trigger can be your deployment. It will automatically schedule the build and even can send the feedback using mail SMTP servers. It is very easy to use any mail server with Jenkins, So that if any of the build fails, it will trig an email notification to target audience. Let’s see how you can configure Jenkins on your windows machine. Step 1: Access the URL Jenkins site and locate the Generic Java Package situated at the bottom. Step 2: Once you finish the download of war file, open the Command prompt and enter java -jar <location of downloaded war file> and hit the enter button. Wait until you get below mentioned success message that Jenkins server is up and running. Step 3: Once you get above stated success message, in the browser hit URL localhost:8080 because Jenkins ...
Generally alert pop up are of three types: 1. Alert pop up with OK button 2. Alert pop up with OK and Cancel button 3. Alert pop up with OK , Cancel button and Text field to enter values. To deal with alert pop up selenium comes with simple method Alert(); In the first case where we only have OK button below mentioned code snippet will be helpfull. Alert alert = driver.switchTo().alert(); alert.accept(); Above code snippet will switch the control to alert and it will accept it. In the second case where we have cancel button as well, code snippet will be: Alert alert = driver.switchTo().alert(); alert.accept() — To accept the alert alert.dismiss() — To dismiss the alert In the last case where we are supposed to enter some value and click either OK or Cancel , code snippet will be: Alert alert = driver.switchTo().alert(); alert.sendKeys(“value to enter”); alert.accept(); or alert.dismiss();
Comments
Post a Comment