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

copy/cut/paste multiple commands

Open jngale opened this issue 7 years ago • 34 comments

When I write tests, I often find the need to break apart my complex creations into more manageable chunks. Is there a way to copy/cut/paste multiple commands between tests? This would be an awesome add.

jngale avatar May 04 '18 21:05 jngale

Sounds interesting, but we don't have a way to handle more than one item selected.
I'll have to think about it, but it definitely sounds like something we should do.

corevo avatar May 13 '18 07:05 corevo

https://github.com/SeleniumHQ/selenium/issues/6020

lucianobargmann avatar Jun 14 '18 14:06 lucianobargmann

copy/cut/paste multiple commands helps a lot...thanks for looking in to it @corevo

saradhit avatar Jun 26 '18 14:06 saradhit

This would be extremely helpful! Thanks!

On a related note, the new .side file type seems to group all "tests" into one file (unlike the old ide file structure which stored each test as separate .html file), so I can't copy or move individual tests from one "suite" (or "project" .side file) into another, except by manually trying to copy the text from notepad, which is difficult to do with human imprecision).

Being able to select 5+ commands at once to cut or copy and move into another test in same project or even across projects would be very helpful (the latter piece would ameliorate the problem with being unable to copy/move individual tests across suites/projects).

luquitia avatar Jul 05 '18 19:07 luquitia

Any update on this? Even if I could copy multiple lines within same test case, that would be helpful. Record doesn't capture everything I need and it is labor-intensive to copy/paste one line at a time when I need to reuse 5 commands (or sometimes more) later in the same test case.

luquitia avatar Oct 04 '18 16:10 luquitia

Could really use this feature. I feel Copy and Delete should work on multiple commands for a really effective tool.

cawoodm avatar Oct 31 '18 08:10 cawoodm

I also feel that this feature would be a big help when writing tests.

mdken avatar Nov 07 '18 20:11 mdken

Yes please, I really need this!

p2635 avatar Jan 04 '19 15:01 p2635

Just checking to see if any headway has been made with this. The more I use the new IDE the more I am really missing the ability to copy/paste steps.

Thanks!

98gmarquee avatar Apr 30 '19 15:04 98gmarquee

Just another vote for this. I've just started using the new IDE and I'm really missing this.

trish1400 avatar Aug 01 '19 09:08 trish1400

+1

  • copying of multiple commands between test scenarios
  • copying full test cases between projects

DorotaGK avatar Sep 11 '19 10:09 DorotaGK

Another vote for this. Could save me a huge amount of time. Thanks.

myusernamedm avatar Feb 27 '20 11:02 myusernamedm

Yeah, this chewed up a lot of time for me again today.

We have a registering website that allows me to key a primary record (registering for trade shows) and before I collect payment, I can add another record to the group and I can continue doing that indefinitely. When I use the add another, it takes me to the address/name page vs the starting page, then every page after that is the same as the primary record. My script was creating a group of 5. Ended up with 816 commands...

Usually I'd duplicate 75% of the script just by copy/pasting in the IDE and then edit the records first name/email to make them unique. With copy/paste, that's an easy thing to do. Without it, I was going into notepad, copying the 600 lines (90 commands) into another txt file, globally changing the "id": "nnnnn" to insert a new letter for each iteration, and pasting it back in the main script. It was a very clunky process, but it was far quicker than recording the 5 iterations, then editing the script to work properly/dynamically from variable data.

That said, when I was "done" with my script, it was super slow to load and run. I suppose I could have tried breaking my script up into pieces then running the entire suite and hope it didn't freak it out since I wouldn't be opening a url for any script but the first and last. Maybe I'll just do a single record tomorrow and see if it feels faster or if it was just my imagination. It took the script 20 minutes to key the 5 records... which would usually take 3 minutes using the old ide.

98gmarquee avatar Feb 28 '20 08:02 98gmarquee

Another vote for adding this. My company just started using Selenium IDE at the end of last week. They gave it to four of us and we are supposed to learn it, create some regression scripts, and then train others. On our site we have different order flows for new customers, existing customers, recurring shipments, etc., but much within each flow is the same, such as adding a new payment method, or new address. It would be so helpful if once we get others trained, that they could just select all the commands for something like adding a new address and they could copy it into their new script. This seems like such a basic thing that I figured the functionality must exist and I just hadn't figured out how to do it, but reading this thread it sounds like that is not the case.

daanon avatar Mar 11 '20 17:03 daanon

I would like to add my +1 vote for the request to copy+paste multiple lines within and across Test Scripts in Selenium IDE.

I recently started using the Selenium IDE again (after 2014-2015), and this is the one feature that I sorely miss.

I would also like to add a similar request for multiple-line "Select+Delete".

Oh, I almost forgot to add requests for multiple-line "Select+Comment-out", and "Select & remove the Comment-out".

Appreciate your attention to rebuilding these features back into the new Selenium IDE!

jobs4mvr avatar Apr 08 '20 13:04 jobs4mvr

+1 I also tried this and searched for help. Would be very helpful, if the feature gets implemented.

TAkbay avatar Jul 28 '20 09:07 TAkbay

+1 That would really be helpful!

kn0rr avatar Dec 16 '20 08:12 kn0rr

This would be extremely helpful! Thanks!

On a related note, the new .side file type seems to group all "tests" into one file (unlike the old ide file structure which stored each test as separate .html file), so I can't copy or move individual tests from one "suite" (or "project" .side file) into another, except by manually trying to copy the text from notepad, which is difficult to do with human imprecision).

Being able to select 5+ commands at once to cut or copy and move into another test in same project or even across projects would be very helpful (the latter piece would ameliorate the problem with being unable to copy/move individual tests across suites/projects).

jobs4mvr avatar Jan 05 '21 17:01 jobs4mvr

It is also important to me to be able to export and import individual (or multiple) Test Scripts between .side files. I have a .side file from which I inadvertently deleted a few important scripts, but I have an older .side file with the exact scripts that I need to re-include into the latest .side file - please have this functionality included in Selenium IDE. BTW, Selenium IDE has proved to be a life-saver for me on my current project - cheers, and Happy New Year 2021!

jobs4mvr avatar Jan 05 '21 17:01 jobs4mvr

+1 would be nice to get this feature

spiff123 avatar Jan 28 '21 11:01 spiff123

+1 Yes please! Being able to copy and paste commands across projects and tests would be extremely helpful! Great tool!!!

joseaurrutia avatar Feb 03 '21 07:02 joseaurrutia

Hey everyone,

It is clear that this will NOT be implemented by Selenium Team. How about we start proposing / reviewing implementation solutions instead of putting a +1 I love this feature comment?

LUCIANO BARGMANN

On Wed, Feb 3, 2021 at 4:01 AM joseaurrutia [email protected] wrote:

+1 Yes please!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SeleniumHQ/selenium-ide/issues/189#issuecomment-772283987, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZB3AZCIBLDLWRSHSFMK3S5DYDXANCNFSM4E6NCDZA .

lucianobargmann avatar Feb 03 '21 14:02 lucianobargmann

@corevo @Jongkeun

Any progress on selecting multiple commands to cut/copy/paste?

jeremy-ade avatar Jun 02 '21 02:06 jeremy-ade

Selenium is dead folks, move on to other modern tools. Obrigado,

LUCIANO BARGMANN

On Tue, Jun 1, 2021 at 11:04 PM jeremy-ade @.***> wrote:

@corevo https://github.com/corevo @Jongkeun https://github.com/Jongkeun

Any progress on selecting multiple commands to cut/copy/paste?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SeleniumHQ/selenium-ide/issues/189#issuecomment-852654656, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZB3ABMVNDRVPYAOYCUIDTQWGUTANCNFSM4E6NCDZA .

lucianobargmann avatar Jun 20 '21 23:06 lucianobargmann

+1 for this request. Re @lucianobargmann yes it's frustrating, but it doesn't seem to be (completely) dead and there is still home?

See https://www.selenium.dev/

JPustkuchen avatar Nov 15 '21 10:11 JPustkuchen

This is still a pain. i have found a simple workarround to do this today. i am unable to attach the video so uploaded to youtube, hope this helps. https://youtu.be/VEVx-Tq3WtU

hi2rashid avatar Apr 12 '23 07:04 hi2rashid

@hi2rashid - I'm sorry I never updated here. The last post here was from just before I became a maintainer. v4 supports this inherently. It's still in alpha here (https://github.com/SeleniumHQ/selenium-ide/releases/tag/latest), but in v4, it's shift + cmd/ctrl + c/x/v respectively

Edit: Oh, and I believe shift and option and selecting things should do all the stuff. The only thing is that multi stuff on commands requires holding shift because I didn't want to block standard cut/copy/paste interactions. Also, it doesn't work for tests yet. It only works for commands, but I've found it quite nice.

toddtarsi avatar Apr 12 '23 13:04 toddtarsi

@hi2rashid - I'm sorry I never updated here. The last post here was from just before I became a maintainer. v4 supports this inherently. It's still in alpha here (https://github.com/SeleniumHQ/selenium-ide/releases/tag/latest), but in v4, it's shift + cmd/ctrl + c/x/v respectively

Edit: Oh, and I believe shift and option and selecting things should do all the stuff. The only thing is that multi stuff on commands requires holding shift because I didn't want to block standard cut/copy/paste interactions. Also, it doesn't work for tests yet. It only works for commands, but I've found it quite nice.

bro, it not work

asimo1998 avatar Jul 27 '23 03:07 asimo1998

@asimo1998 - The entire tool or this thing?

toddtarsi avatar Jul 27 '23 03:07 toddtarsi

Also, are you using the v4 electron binary or building locally? Which version are you on?

toddtarsi avatar Jul 27 '23 03:07 toddtarsi