简体   繁体   中英

Selenium IDE: cannot run a test case or switch to the command table

I've written a test case using the Selenium IDE. I would like to run the test (using the play button) and I would like to switch to the Table tab so I can see the commands.

As seen in the screenshot, I can neither click the play button nor switch to the Table tab. Why?

硒捕获

You can execute test only when your IDE is set for Selenese (HTMl format) and not any other code format. Change it to Selenese (HTML) as following and it should work -

在此输入图像描述

On a different note, do you know Selenium questions would have their dedicated home at - https://sqa.stackexchange.com/ You might like to post your Selenium question here.

You can only run tests in Selenium IDE in the table format. You probably can't switch to the table format because it is a custom script and the IDE doesn't know how to interpret it. The IDE is fragile and the format switcher is only designed for you to get a recorded script into an exportable format. It isn't designed to go the other way.

Shalom,

The script in the image you have is not what the IDE uses to execute its tests. A test that you record will initially be in "HTML" table format and if you want to use your tests with other languages you will then convert it by either "Save Test Case As..." or "Export Test Case As...". It looks like you chose to view your script in Python. To run this you will probably need to execute it like you do any other Python code. I've used my tests in Java and Ruby IDEs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM