Hello Julien,
 
Excuse me. I can't not reply to your response because my browser have a little 
problem.
I have 2 solutions  to my previous problem: 
 
    1 - I want to define a method 
setElementAttributByXPath(String xpath, String attribute, String value) which 
looks like getElementAttributByXPath(String path,String attribute). 
This method has the folowing code : 
 
                
public class IIAHTMLUnitDialog extends HtmlUnitDialog
{
                  HtmlElement e = this.getElementByXPath(xpath);
                      if(e != null){
                       e.setAttributeValue(attributeName,attributeValue);
                  }
}
 
The problem is that getElementByXPath is private so this code doesn't compile.
I want to use this code to enable a button in the page and to disable a link.
 
2 - I get the javascript method using String javscriptMethod = 
getElementAttributByXPath(theXpath,"onkeypress").  After that, how can i call 
this javascript method?
 
Thank you for your help.
 
Karim Gzouli.
_________________________________________________________________
Nouveau ! Créez votre profil Messenger !
http://home.services.spaces.live.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to