开发者

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 (usin开发者_如何学Cg 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?

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


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 -

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

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜