-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switchWindow , swithctopreviouswindow is giving error "cannot find specified action parameter / previous window not found" #5463
Comments
Hi @aprabh001c, Our attempts to replicate this issue based on your description were unsuccessful. Could you please share your test code so that we can reproduce and analyze the issue? |
Thanks for your response. I cannot share test code, but i am able to recreate this issue using a public website, please refer details below
Node - v12.18.3 Also: - It would be nice to have maximizeWindow action for await t.openWindow as well
with Previous Window Step;::
|
Hello, Thank you for the information. I reproduced the issue. Our team will examine it and check for a suitable solution. For the team: if we remove all |
@Farfurix Any update on the above reported issue, i too face this same issue. I couldn't switch between windows. |
Once we get any results, we will share them here. |
Any update on this issue, even i am facing this issue when i try to switchwindows after performing click action. |
Hello, Thank you for reaching out to us. No updates yet. We will update this thread as soon as we have any results. |
I wanted to add that I'm also seeing this using TestCafe 1.9.3 and Chrome 85.0.4183.121 (Official Build) (64-bit). It appears that we can "typeText" on either window and continue to switch between them, but the moment either of them are clicked (.click(...)) then the switching between windows fails, just as @Farfurix pointed out. I feel like it's worth emphasizing that the ability to click within either window is quite critical functionality to be able to run any useful end-to-end test scenario. I'm actually quite confused how some of the sample code provided in the advanced guide here and the sample blog here both contain click events, yet this clearly doesn't work. While I realize this is beta, it makes me wonder if this behavior used to work and broke shortly after being released or if it the click followed by switching windows ever did work at all. @arubtsov Do you know if anyone is currently working on a fix for this? I see the tag "STATE: Need response" and so that is why I am asking (even though I see your response saying you will post once you have updates) |
@iamle0pard Thank you for your input. We agree that everything should work correctly in this case. We haven't yet researched this issue. We will discuss it when planning the next development sprint. Perhaps we will decide to research this behavior. The |
Scenario:
Using await t.switchToWindow(firstWindow)
Getting ```1 Cannot find the window specified in the action parameters.
{
code: 'E74',
isTestCafeError: true,
callsite: CallsiteRecord {
filename: 'C:\Users\xxxx\Desktop\Tool\xxxxx.js',
lineNum: 76,
callsiteFrameIdx: 6,
stackFrames: [
[CallSite], [CallSite],
[CallSite], [CallSite],
[CallSite], [CallSite],
[CallSite], CallSite {},
[CallSite], [CallSite],
[CallSite], [CallSite]
],
isV8Frames: true
}
}
Tried using switchToPreviousWindow as well
Environment details:
The text was updated successfully, but these errors were encountered: