0 votes
in Xpath Interview Questions by
How do you handle lower and upper case attributes in Xpath?

1 Answer

0 votes
by

We can use @ method for an attribute, but if the attribute values change every time lower to upper case or mix case value when the page refreshes, in this @ method may not help us.

During such kinds of situations, we must ignore the case(UPPER/lower).

Syntax :// tagname[text(), 'sourceCaseContent', 'targetCaseContent'), 'value']​

Related questions

0 votes
asked Jul 24, 2021 in Xpath Interview Questions by Robindeniel
0 votes
asked Jul 23, 2021 in Xpath Interview Questions by kamalkhandelwal29
...