79355444

Date: 2025-01-14 15:10:49
Score: 2
Natty:
Report link

The solution to extract By from WebElement [method getByFromElement() ] will fail when a By contains locator that has parent::a or ancestor::div in its xpath

This is because an extra ':' char in xpath will result in wrong split

Thus instead the split(":"); need to use split(":",2); will work instead

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jenis