We are dynamically creating an "OK" button using javascript once we have 
created a new user.
 
I am using xpath to find the button but am having a problem.  My xpath checker 
verifies that this string find the right button. 
  //[EMAIL PROTECTED]'x-btn-text' and contains(text(), 'OK')]

However, in webtest, it says button not found. It will execute the test with  
just this xpath string 
  //[EMAIL PROTECTED]'x-btn-text' 

In xpath checker, just using that string identifies 5 buttons. I think it is 
pressing the "cancel" button instead since my verification step fails.
 
Does Webtest not support full xpath expressions? Or should I be using a 
variation that I'm not aware of.
 
thx,
Janet

Reply via email to