Skip to content
Advertisement

Selenium Select the exact date from Datepciker

This is continuation of this question asked earlier Earlier question

I am able to select the date but the problem arises in below scenarios when there is some dates like

JavaScript

I tried using XPath not contains but I am getting more than 1 element identified.

below is my code

JavaScript

I want to select only the dates which are below

JavaScript

how to do that ?

Advertisement

Answer

Predicate [not(contains(class,'disabled'))] is not working as you should use @class not class:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement