Why my TOSCA script is not closing the browser?

658 Views Asked by At

I am new to TOSCA, and completing my assessment for AS Level 1. Everything was fine until I reached Lesson 12 - Exercise 6. I followed all steps mentioned in the exercise and when I do "Run in Scratchbook" I get the below error.

Screenshots of the code and error:

enter image description here

enter image description here

2

There are 2 best solutions below

1
On

I would suggest using a asterix also before Demo. Depending on the title of the page it could be a reason that the window was not found. Can you share the exact titel of the window.

Also I would recommend using the Test Configuration Parameter "Browser" and define the Browser which should be automated.

0
On

By this time you would have figured the issue, but anyways i wanted to post this as no reply's posted on your question.

  1. Make sure you have the the browser plug in installed- ex: for chrome plugin
  2. Make sure Chrome is your default browser.