-
Notifications
You must be signed in to change notification settings - Fork 447
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
An action should be performed if it is shown as successful #38
Comments
This issue is because the element is visible in the DOM but not in the viewport, the click event is triggered on the text, since it is not in viewport it did not navigate. we might have to scroll to the element if it is not in viewport like how puppeteer does. |
But currently the step in script is passing without doing the selection or failing. If an action fails for whatever reason, shouldn't the script fail and give the reason where the step failed? Currently the click step is shown as successful giving the impression that the click action was successful. However, the next step fails. |
The click dint fail actually the mouse click got simulated but as the element was not on the viewport the onclick action dint happen, the thing that we have to fix here is scrolling up to the element to click. |
Fix should be available in commit |
Actual behavior
The click action is not successful, however it is shown as successful on the command line
Steps to replicate
git clone https://github.com/getgauge/taiko.git
git checkout taiko-cri
npm install -g
Add a click.js file with
taiko click.js
Version
Blocks #29
The text was updated successfully, but these errors were encountered: