From: Wolfram Schneider Date: Fri, 23 Aug 2013 15:47:56 +0000 (+0200) Subject: better xpath X-Git-Tag: 0.9.1~202^2~49 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;ds=sidebyside;h=172ab56d0ba9d35e689e1be449f34c98d78f95a3;p=mkws-moved-to-github.git better xpath --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 371cd6d..8f4dd58 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -114,7 +114,7 @@ describe("Check pazpar2 hit counter", function () { }); it("Show record", function () { - var click = $("div#mkwsRecords div:first-child :nth-child(2)").trigger("click"); + var click = $("div#mkwsRecords div.record:nth-child(3) :nth-child(2)").trigger("click"); debug("show click is success: " + click.length); expect(click.length == 1).toBe(true); });