selenium-ide icon indicating copy to clipboard operation
selenium-ide copied to clipboard

Feature request: go back, go forward and refresh commands.

Open janedallaway opened this issue 6 years ago • 10 comments

🐛 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"

selenium ide - untitled project 2018-09-12 12-31-23

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)

janedallaway avatar Sep 12 '18 11:09 janedallaway

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.

corevo avatar Sep 13 '18 14:09 corevo

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.

janedallaway avatar Sep 13 '18 15:09 janedallaway

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.

corevo avatar Sep 13 '18 15:09 corevo

Aha, I understand. Thanks for taking the time to clarify

janedallaway avatar Sep 13 '18 16:09 janedallaway

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-zz avatar Feb 12 '19 12:02 m-a-bailey-zz

@m-a-bailey

Here is a workaround for going back: using the execute script command. screen shot 2019-02-19 at 2 43 55 pm

Jonahss avatar Feb 19 '19 05:02 Jonahss

It seems execute script | location.reload(); works ok for refreshing

aplocher avatar Mar 12 '19 07:03 aplocher

We will want to wire these commands up to recording as well.

tourdedave avatar Jun 17 '19 13:06 tourdedave

Is go back still unofficial? Are there plans to integrate it in version 4 of the IDE?

mario-s avatar Oct 05 '23 14:10 mario-s

@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.

toddtarsi avatar Oct 05 '23 14:10 toddtarsi