Real Time Scenarios-Selenium WebDriver

      3 Comments 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

3 comments on “Real Time Scenarios-Selenium WebDriver

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

  2. Pingback: Sorting the Dynamic HTML Table List in Selenium WebDriver & Java - TotalQA

  3. Kriti

    My question is why was it not working earlier (without using List and isenabled )even though the button was getting highlighted with index

    Reply

Leave a Reply

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