New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Goto site
step in the browser steps doesn't work even though it is part of the steps.
#2330
Comments
fantastic report, thanks! will check it out |
@dgtlmoon If you are fine with the following fix, I can try and make a PR if you are fine with the following fix:
Please let me know your thoughts. |
yeah
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 But during the execution, we can do an inline conversion of all non-first-step changedetection.io/changedetectionio/blueprint/browser_steps/__init__.py Lines 170 to 173 in ee52947
Wdyt? |
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. |
Create a browser steps workflow with the following steps: why are you even using "goto site" as the first step? |
should be resolved with the PR |
Describe the bug
Any
Goto site
step that is at step index > 0 of the browser steps is not getting executed and getting skipped silently.Version
v0.45.20
To Reproduce
Steps to reproduce the behavior:
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"Now, in this example, the step 6 is always skipped when the run is performed, it goes to step 7 after step 5.
! ALWAYS INCLUDE AN EXAMPLE URL WHERE IT IS POSSIBLE TO RE-CREATE THE ISSUE - USE THE 'SHARE WATCH' FEATURE AND PASTE IN THE SHARE-LINK!
Expected behavior
It runs the
Goto site
that is part of the browser stepsAdditional context
I went through the code a bit and found that the
Goto site
step is being filtered out in thebrowser_steps_get_valid_steps
function here:changedetection.io/changedetectionio/content_fetchers/base.py
Line 116 in 1ba2965
It makes sense to just remove the
Goto site
step when it is atStep 1
of the steps, but it should not be filtered when it is at a step other than1
.Please let me know if you have any questions.
The text was updated successfully, but these errors were encountered: