OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Robot Framework is Automatically closing the browser

  • Thread starter Thread starter User9123
  • Start date Start date
U

User9123

Guest
I am new to Robot and have this simple code from a tutorial. The code is supposed open chrome and visit the login page of this website. It does that, however, it closes the browser automatically. I've tried to debug by adding the params options=add_experimental_option("detach",${True}) after create webdriver, however, this makes things worse.

Code:
*** Settings ***
Documentation    To validate the Login form
Library    SeleniumLibrary


*** Test Cases ***
Validate Unsuccessful Login
    Open The Browser With The Mortgage Payment URL
    # Fill the login form
    # Wait until it checks and displays error message
    # Verify error message is correct

*** Keywords ***
Open The Browser With The Mortgage Payment URL
    Create Webdriver    Chrome
    Go To    https://rahulshettyacademy.com/loginpagePractise/
<p>I am new to Robot and have this simple code from a tutorial. The code is supposed open chrome and visit the login page of this website. It does that, however, it closes the browser automatically. I've tried to debug by adding the params <code>options=add_experimental_option("detach",${True})</code> after create webdriver, however, this makes things worse.</p>
<pre><code>*** Settings ***
Documentation To validate the Login form
Library SeleniumLibrary


*** Test Cases ***
Validate Unsuccessful Login
Open The Browser With The Mortgage Payment URL
# Fill the login form
# Wait until it checks and displays error message
# Verify error message is correct

*** Keywords ***
Open The Browser With The Mortgage Payment URL
Create Webdriver Chrome
Go To https://rahulshettyacademy.com/loginpagePractise/
</code></pre>
 

Latest posts

I
Replies
0
Views
1
impact christian
I
Top