Real Time Scenarios-Selenium WebDriver

      1 Comment on Real Time Scenarios-Selenium WebDriver

1. How to apply break from an nested for loop in java?
Lets try this on a Real Time Website -> https://demo.openmrs.org/openmrs/login.htm

  • Access the url and enter Admin/Admin123 as credentials
  • Select the ‘Inpatient Ward’.
  • click on Login.
  • Navigate to Appointment Scheduling->Manage Service Types.
  • Write Selenium WebDriver Script to verify the Service Type ‘Urology’ available in the html table.


HomePage

Selenium WebDriver Logic Implemented Using Nested for loop and break Statement

Output

=====================================================================================
2. How to Delete a Service Type from the List?
Lets try this on a Real Time Website -> https://demo.openmrs.org/openmrs/login.htm

  • Access the url and enter Admin/Admin123 as credentials
  • Select the ‘Inpatient Ward’.
  • click on Login.
  • Navigate to Appointment Scheduling->Manage Service Types.
  • Click on Delete icon to perform deletion of Service Type.
  • Finding an xpath for Yes button results in multiple matching nodes.
  • Even though we applying indexing to identify the ‘Yes’ Button its not working.


Delete Service Type
Selenium WebDriver Logic Implemented Using isEnabled and is Displayed

Output

1 comment on “Real Time Scenarios-Selenium WebDriver

  1. Pingback: Selenium WebDriver Tester Resume,Automation Tools Used

Leave a Reply

Your email address will not be published. Required fields are marked *