selectFrame not working in TC run, but does standalone

I have a test case that does a selectFrame so I can then access elements in it.

I’m selecting the frame based on its ID.

If I double click to run the command, the frame is selected, and the next command works. However, if I run the text case as a whole, then it fails. It looks like a bug, here’s the log with I run the selectFrame command when playing the test case vs when I double click:

In the log when I run the test case:

[info] Executing: | selectFrame | id=parentifyIframe | |

[info] Expand variable ‘id=parentifyIframe’ into ‘id=parentifyIframe’

[error] Invalid argument

When just double clicking on it and then the next command:

[info] Executing: | selectFrame | id=parentifyIframe | |

[info] Executing: | verifyVisible | id=select74 | -Not specified yet- [no suitable parent to link to] 1.1 Operations |

Any ideas what’s going on?

Hi,

I have same issue. I found object “app-iframe”, I set wait for frame to load succeed, but when action select frame, then I got [error] Invalid argument. You can follow executing bellow:

[info] Wait for the new page to be fully loaded

[info] Executing: | waitForFrameToLoad | app-iframe | 3000 |

[info] Wait for the new page to be fully loaded

[info] Executing: | selectFrame | app-iframe | |

[info] Expand variable ‘app-iframe’ into ‘app-iframe’

[error] Invalid argument