-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WebDriver Error: no such frame #548
Comments
HI @vobu , I tried executing the test from WDI5 on main branch and also by checking out the commit chore(release): 2.0.0(b3b4db3). In both the case the test on FE passed successfully. Below is the error I am getting. ℹ This is a showstopper as none of the test are working now. Just FYI, the test were working since many months before I upgraded to WDI5 2.0. Regards, |
hi @nair-sumesh, couple of ideas:
the functional changes in Line 68 in 1bf1f1d
eventually you can spot something there that helps you resolve your issue. hth, v. |
Thanks @vobu for the prompt response.
Still I see the error. When I try to debug the below code from WDI5
it goes into infinite LoCs and I feel a bit lost. Any other suggestions? Regards, |
this seems to be an issue with the iframe(s) your app runs in (or not). |
Hi @vobu How can we validate this. Regards, |
HI @vobu , My analysis was correct. When i commented out the code as below // first magic wand wave -> app context
await loadFELibraries(browserInstance);
await initOPA(appConfig, browserInstance);
// second magic wand wave -> shell context
// yet only wave the wand when there's an iframe somewhere,
// indicating BTP WorkZone territory
/* await browserInstance.switchToParentFrame();
// @ts-ignore
const iframe = await browserInstance.findElement("css selector", "iframe");
let shell;
if (!iframe.error) {
const shellConfig = {
onTheShell: {
Shell: {}
}
};
shell = new WDI5FE(shellConfig, browserInstance);
await loadFELibraries(browserInstance);
await initOPA(shellConfig, browserInstance);
// back to app
await browserInstance.switchToFrame(0);
}
else {
// revert back to app context
await browserInstance.switchToFrame(null);
} */
return new WDI5FE(appConfig, browserInstance); My test started working. Regards, |
HI @vobu, Just a reminder, this is a showstopper as currently all my test fails and due to impacts of webdriverIO.V8 changes, it will be difficult for me to revert my code to older version of WDI5. Regards, |
@vobu : Just a gentle reminder. |
+1 for this - we have the same issue and our goal is to always start on the launchpad and not on the app. |
should be fixed with |
Describe the bug
When using Test Library via WDI5, on execution of
browser.fe.initialize
throws below error.I have recently upgrade wdio-ui5-service from
1.3.2
to2.0.0
Expected behavior
Should be able to execute the Test Library code.
Runtime Env (please complete the following information):
wdi5/wdio-ui5-service
-version:2.0.0
UI5
version:[1.117.0]
wdio
-version (output ofwdio --version
):8.16.12
node
-version (output ofnode --version
):v18.16.1
macOS 13.5.2
Chrome version 117.0.5938.92
The text was updated successfully, but these errors were encountered: