Giter Site home page Giter Site logo

Comments (8)

dgtlmoon avatar dgtlmoon commented on June 12, 2024 1

fantastic report, thanks! will check it out

from changedetection.io.

manojVivek avatar manojVivek commented on June 12, 2024 1

Create a browser steps workflow with the following steps: Step 1: Goto site Step 2: Click element containing text "Login" Step 3: Enter text in field ".username" "some-username" Step 4: Enter text in field ".password" "some-password" Step 5: Click element button.login Step 6: Goto site Step 7: Click element containing text "show data"

why are you even using "goto site" as the first step?

I'm not using that, I referred this default "Goto Site" step:
Screenshot 2024-05-15 at 2 21 03 PM

from changedetection.io.

manojVivek avatar manojVivek commented on June 12, 2024

@dgtlmoon If you are fine with the following fix, I can try and make a PR if you are fine with the following fix:

  1. Filter out the Goto site step only when it is at Step 1.
  2. Swap any other Goto site action to Goto URL, watch.url.

Please let me know your thoughts.

from changedetection.io.

dgtlmoon avatar dgtlmoon commented on June 12, 2024

@dgtlmoon If you are fine with the following fix, I can try and make a PR if you are fine with the following fix:

  1. Filter out the Goto site step only when it is at Step 1.
  2. Swap any other Goto site action to Goto URL, watch.url.

Please let me know your thoughts.

yeah goto site should be the first step always

Goto URL should be every other step

problem is you'll also need to create an update hook so that you dont break everyones installations if you simply rename the step...

from changedetection.io.

manojVivek avatar manojVivek commented on June 12, 2024

problem is you'll also need to create an update hook so that you dont break everyones installations if you simply rename the step...

No, I didn't mean to replace all Goto site to Goto URL in the datastore. All other Goto site will still be the same in the datastore.

But during the execution, we can do an inline conversion of all non-first-step Goto site into Goto URL with watch.url as arg like in

if step_operation == 'Goto site':
step_operation = 'goto_url'
step_optional_value = datastore.data['watching'][uuid].get('url')
step_selector = None

Wdyt?

from changedetection.io.

manojVivek avatar manojVivek commented on June 12, 2024

I have implemented the above explained approach in this PR #2337, and it worked well for the use case that was failing for me before.

from changedetection.io.

dgtlmoon avatar dgtlmoon commented on June 12, 2024

Create a browser steps workflow with the following steps:
Step 1: Goto site
Step 2: Click element containing text "Login"
Step 3: Enter text in field ".username" "some-username"
Step 4: Enter text in field ".password" "some-password"
Step 5: Click element button.login
Step 6: Goto site
Step 7: Click element containing text "show data"

why are you even using "goto site" as the first step?

from changedetection.io.

dgtlmoon avatar dgtlmoon commented on June 12, 2024

should be resolved with the PR

from changedetection.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.