Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
f569c296
...
f569c2966775839bb06c83d4e7c0eec0c0d8a98f
authored
2013-09-19 21:17:33 -0700
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixes #639 - withFrame() now switches back to parent frame instead of main one
1 parent
0dcd7fb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
modules/casper.js
modules/casper.js
View file @
f569c29
...
...
@@ -2250,12 +2250,12 @@ Casper.prototype.withFrame = function withFrame(frameInfo, then) {
}
catch
(
e
)
{
// revert to main page on error
this
.
warn
(
"Error while processing frame step: "
+
e
);
this
.
page
.
switchTo
Main
Frame
();
this
.
page
.
switchTo
Parent
Frame
();
throw
e
;
}
return
this
.
then
(
function
_step
()
{
// revert to main page
this
.
page
.
switchTo
Main
Frame
();
this
.
page
.
switchTo
Parent
Frame
();
});
};
...
...
Please
register
or
sign in
to post a comment