Hi,
I am not able to type in any of the textbox in browserstack cloud agent . below is the code where it is throwing exception in case of android but in case of IOS , it is returning false which is fine.
private bool TrySwitchToActiveElement(TExecutor executor, ref IWebElement element)
{
try
{
element = executor.Driver.SwitchTo().ActiveElement();
return true;
}
catch (NoSuchElementException ex)
{
executor.Log.Error(ex, $"There is no active mobile element to set text");
}
catch (Exception ex)
{
executor.Log.Error(ex);
}
return false;
}
Kindly assist.