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 element could not be located on the page using the given search parameters. #1986
Comments
Your selector doesn't find an element. Please use a different selector or try to debug the page to make sure you are on the expected page. |
I am also having same issue module.exports = function() { this.Given(/^I have visited bct-test.ucdavis.edu$/, function () { this.When(/^I search All Trials for "([^"])" or "([^"])"$/, function (SearchTerm1, SearchTerm2) { this.Then(/^I see All Trials for "Reproductive" and "Online"$/, function () { Error Message:
Scenario: Search for Reproductive or Online
Failures:
1 scenario (1 failed) |
The problem
I am using webdriverio mocha
and I can not click on a element.
I got always the same error
An element could not be located on the page using the given search parameters.
Environment
WebdriverIO version:4.6.2
Node.js version:4.2.6
[Standalone mode ]
Details
Link to Selenium/WebdriverIO logs
Create a gist which is a paste of your full Selenium/WebdriverIO logs, and link them here. Do not paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Selenium/WebdriverIO logs!
Code To Reproduce Issue [ Good To Have ]
this is my test
and this is the element on the page
<div id="inner-content" ng-view="" class="right-panel ng-scope"><section class="page-block select-type ng-scope" ng-show="ready"><div class="select-type__wrapper"><div class="row"><div class="col-sm-6"><!-- ngIf: device === 'phone' --><!-- ngIf: device !== 'phone' --><div ng-if="device !== 'phone'" class="block ng-scope"><a ng-activate="" ng-click="startApplication('?json=true')" class="btn btn-answer first ng-scope ng-click-active"></div><!-- end ngIf: device !== 'phone' --></div><div class="col-sm-6"><!-- ngIf: device === 'phone' --><!-- ngIf: device !== 'phone' --><div ng-if="device !== 'phone'" class="block second ng-scope"><a ng-activate="" ng-click="startApplication('?parent-user=true&json=true')" class="btn btn-answer ng-scope ng-click-active"></div><!-- end ngIf: device !== 'phone' --></div></div></div></section></div>
The text was updated successfully, but these errors were encountered: