I'm trying to expand a dynamic section of the UI without much success. It works like a charm in the console (using the rubyshell instance) but when I execute this in a batch on TestWise I get this error:

1 Answer
1

If the code works in IRB but not when you run the script, it is usually timing problem. Maybe the element is not at the page when you try to access it.

By the way, div(:id, ID2) should be div(:id, "ID2") (please notice the quotes), otherwise it should raise NameError: uninitialized constant ID2 (assuming that you did not define constant ID2 any you want to access <div id="ID2">.