Xpath select that the field has more than one attribute

-1

Hello Very good I have a problem when looking for another attribute in a node

WebElement SelecionFechaCalendario = findElementByXPath ("// tbody / tr / td [@ data-month=" + fechaselecionarmes + "] / a [@date=" + fechanueva + "]", DEFAULT_WAIT_TIME, false);

I have this part of the code and I have to check if in the sectioned date there is also the price element and if not spend another day and look for the next day some idea someone and how to check that has the other element too. Thank you.

    
asked by zekamodz 18.05.2018 в 10:13
source

1 answer

0

The answer is: [@ class = 'xxxxxx' and @ id = 'xxxxx'] so you can check various attributes from xpath.

    
answered by 21.05.2018 / 15:11
source