From 172ab56d0ba9d35e689e1be449f34c98d78f95a3 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 23 Aug 2013 17:47:56 +0200 Subject: [PATCH] better xpath --- test/spec/mkws-pazpar2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); -- 1.7.10.4