jeudi 11 juin 2020

TypeError: 'module' object is not callable error in robot framework

I am not importing any classes. I am trying to initiate the test case for UI testing using Robot framework. Please find the below code.Can someone help me on this.

    *** Settings ***
Library    SeleniumLibrary
*** Test Cases ***
LoginTest
    create webdriver    chrome  executable_path="driver path"
    open browser    "https://innovate.dev-ais.corecompete.com/dashboard"    chrome
    click button    xpath=//span[text()='Sign In']//parent::button

I am receiving below error message.

    LoginTest                                                             | FAIL |
TypeError: 'module' object is not callable
------------------------------------------------------------------------------
TC001                                                                 | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed

Aucun commentaire:

Enregistrer un commentaire