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

Request for shortening URL

Open Chukkyoj opened this issue 3 years ago • 1 comments

(https://github.com/SeleniumHQ/selenium-ide/issues/new/choose)

Hi So i was thinking if there is a way to shorten the URL to get to certain parts of the website

Example To get to EXPLORE on this GitHub page using selenium IDE, I will have to

  1. Launch the website https://github.com/
  2. Login with a username and password
  3. Click the Explore button before i get to the explore page
    However, I don't want to start from the login page, I just want to start from the point where I am already logged in

Is there a way to do that

Chukkyoj avatar Jun 27 '22 12:06 Chukkyoj

@Chukkyoj - So you're looking to shortcut the Github login. That's a good question. Probably not an easy one, but its not something we can really solve for you either. Basically, you'd have to know how to get a login from github, and I don't know what the cookie they use is, but you'll need that. If you figure that side out, this is what you'd do.

  1. You create a plugin based on this one: https://github.com/SeleniumHQ/selenium-ide/tree/trunk/packages/side-plugin-example
  2. You extend your plugin with a custom command:
  commands: {
    loginGithub: {
      name: 'Login to GitHub',
      description: `
        This command should log your browser into GitHub via API,
        get a session cookie, and inject it into the browser
      `,
      execute: async (command, driver) => {
        const ghSessionCookie = await getGHSessionCookie(); 
        // set a cookie on the current domain
        await driver.manage().addCookie({
          name: 'github-session-or-whatever',
          value: ghSessionIdentifier
        });
      },
    },
  },
}

The known unknown in this situation is getGHSessionCookie, and assuming you get that working, make sure to set it to the right key as well.

toddtarsi avatar Jul 05 '22 00:07 toddtarsi

Closing this, as its best approached via a bespoke plugin,

toddtarsi avatar Nov 10 '22 05:11 toddtarsi

Alright Todd that's fine.

If you need me to help you test the project let me know. I have 4+ years experience as a software test analyst and a certified ISTQB and Professional member of the British Computer Society.

Looking forward to working with you on this awesome project.

Thanks and Regards

On Thu, Nov 10, 2022, 6:43 AM toddtarsi @.***> wrote:

Closing this, as its best approached via a bespoke plugin,

— Reply to this email directly, view it on GitHub https://github.com/SeleniumHQ/selenium-ide/issues/1474#issuecomment-1309805167, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOE5WDKV2T5HCJFJKVNTWHDWHSDOXANCNFSM5Z6K54FA . You are receiving this because you were mentioned.Message ID: @.***>

Chukkyoj avatar Nov 10 '22 06:11 Chukkyoj

@Chukkyoj - Wowie zowie I'm just some clod who got conned into working on this thing unpaid for the last 10 months 😆. Yes please! If you like v3, please try v4 and let me know your experience! Thank you!

https://github.com/SeleniumHQ/selenium-ide/releases/tag/4.0.0-alpha.17

toddtarsi avatar Nov 10 '22 12:11 toddtarsi

Sure, I will let you know. I can do unpaid in as much as there is room for growth, that's all I am after for now

On Thu, Nov 10, 2022 at 1:55 PM toddtarsi @.***> wrote:

@Chukkyoj https://github.com/Chukkyoj - Wowie zowie I'm just some clod who got conned into working on this thing unpaid for the last 10 months 😆. Yes please! If you like v3, please try v4 and let me know your experience! Thank you!

https://github.com/SeleniumHQ/selenium-ide/releases/tag/4.0.0-alpha.17

— Reply to this email directly, view it on GitHub https://github.com/SeleniumHQ/selenium-ide/issues/1474#issuecomment-1310238677, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOE5WDIVNDKWNVDRDXCXWEDWHTWD3ANCNFSM5Z6K54FA . You are receiving this because you were mentioned.Message ID: @.***>

Chukkyoj avatar Nov 10 '22 13:11 Chukkyoj

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Dec 11 '22 01:12 github-actions[bot]