You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, for this if you use chrome you can try right clicking on the select element you want, and right clicking it -> copy selector for css selector to make sure the selector is correct, or copy xpath for xpath selector.
While you mention you want to use a css selector instead of xpath, the selector you provided in the example here is an xpath selector. It should look similar to the screenshot here.
For doing the select, you need to provide the second argument (after the 'as') to be the value of the option you want selected. For an example of how it should be, check the issue here #305
I'm trying to enter value to dropdown by the following command.
click (//SELECT[@Class="form-control ng-pristine ng-untouched ng-valid"])[2]
select (//SELECT[@Class="form-control ng-pristine ng-untouched ng-valid"])[2] as 1
The above is failing to identify the dropdown.
PS:I don't want to use other ways of selection like xpath, etc.
The text was updated successfully, but these errors were encountered: