How to solve if I get Xpath not worked?

Dika Lusuma

New Member
I am new in workfusion,
I want to ask, I get xpath from inspect element but not worked in workfusion. And show Error message "NoSuchElementException".
This example for xpath : "/html/body/form/table[2]/tbody/tr[9]/td[2]/input"
What should I do, to solve this problem?
thank's..
 

Dika Lusuma

New Member
Thank you Alesia,
Sometimes it's worked, some time failed. How to solve if I get error after Input Iframe and get error "NoSuchElementException" again?
 

walemark

New Member
And show Error message "NoSuchElementException".

The NoSuchElementException in Java is thrown when one tries to access an iterable beyond its maximum limit. This means that, this exception is thrown by various accessor methods to indicate that the element being requested does not exist . The next() method in Java returns the next element in the iteration or NoSuchElementException if the iteration has no more elements.

The solution to this exception is to check whether the next position of an iterable is filled or empty . The following methods are used to check the next position:
  • hasNext()
  • hasMoreElements()
 
Top