Forum Discussion

Ravikaanth's avatar
Ravikaanth
Contributor
9 months ago

Can't able to use EvaluateXpath or FindChildByXPath in Bitbar devices

Hi team,

I am attempting to locate an element using EvaluateXpath and FindChildByXPath. Both methods work fine in my local browser, but when it comes to Bitbar browsers (desktop and mobile), they do not work. I am encountering the following error and providing the code snippet below. Are there any other methods available to access in Bitbar browsers? Please suggest.

Code:

var freeGiftSection = sasPageObject.EvaluateXPath("//div[@class='gift-section sas-section']", true);

Only in bitbar getting the below Error:

Unable to find the object EvaluateXPath("//div[@class='gift-section sas-section']", true).

 

No RepliesBe the first to reply