Selenium - Troubles when trying to use javascript-xpath instead of ajaxslt -


i'm trying improve selenium tests on ie. use javascript-xpath instead of ajaxslt.

my setup function :

 public void setup() throws exception {   super.setup(host, browser);   selenium.setspeed(constants.delay_between_actions);   selenium.windowmaximize();   selenium.allownativexpath("false");   selenium.usexpathlibrary("javascript-xpath");  } 

when try find element xpath, instance :

selenium.click("xpath=//a[@id='linklogin']"); 

i error (only when try use javascript-xpath):

com.thoughtworks.selenium.seleniumexception: error: invalid xpath [2]: //a[@id='linklogin']

what miss correctly use javascript-xpath ?

thanks help.

have considered changing locator strategy away xpath? i've been using form of css locators on average 5 times faster xpath.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -