Issue #3139440 by jungle, Hardik_Patel_12, siddhant.bhosale, sharma.amitt16, durgeshs: Replace usages of deprecated AssertLegacyTrait::buildXPathQuery()