selenium-ide
selenium-ide copied to clipboard
Feature request: go back, go forward and refresh commands.
🐛 Bug Report
The behaviour of the command goBack has changed in 3.3.1 I used to have a command of goBack with no additional details (as described in https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/1162) which would go back a page (I was using it to check the flow of information). It now shows an error of "Cannot read property 'target' of undefined"

To Reproduce
Add a new command with goBack as the Command
Expected behavior
I expect to be able to go back in my browser history (as it used to do in the previous version)
Project file reproducing this issue (highly encouraged)
goBack no longer works.side.txt
Environment
OS: OSX 10.13.6 Selenium IDE Version: 3.3.1
Browser: Browser Version: Version 68.0.3440.106 (Official Build) (64-bit)
go back
is not a command that is currently supported, I've amended the issue to a feature request.
Also adding refresh and go forward.
Great it has been made into a request. But it worked as per the attached project until this latest release. I've been using it for a couple of months on other projects.
Some commands are "officially" implemented in the IDE, while others may have a fallback (or may not work at all).
The ones that have a fallback, for example goBack
and refresh
, fall to an older implementation, that we are in a long process of removing, you can notice these commands by the way they are written doubleClick
vs double click
.
The new commands are space separated, and have an entry in the reference tab.
goBack
is one of the commands that we aren't "officially" supporting yet, it is there for backwards compatibility, we will make sure to fix this bug, as well as to add official support for it.
Aha, I understand. Thanks for taking the time to clarify
Is there a suggestion on what command to use instead of goBack to navigate through browser functionality?
Or where / If we could find the "unofficially" supported commands?
Thanks, Matt.
@m-a-bailey
Here is a workaround for going back: using the execute script
command.
It seems execute script
| location.reload();
works ok for refreshing
We will want to wire these commands up to recording as well.
Is go back still unofficial? Are there plans to integrate it in version 4 of the IDE?
@mario-s - Not really any plans for that. It's a simple enough function that execute script covers it nicely. In v4 though, it's a lot easier to extend projects with custom plugins via npm. Adding a public plugin with these functions would be pretty close to trivial, if you're just looking for the autocomplete niceties.