etaoin

blackawa 2018-06-19T05:37:43.000226Z

Hi, how can I change active tab with chrome? I need to test a page which open another tab…

blackawa 2018-06-19T05:54:41.000127Z

Resolved. There is get-window-handles function in etaoin.api . 😳

2018-06-19T20:12:13.000505Z

Hey guys

2018-06-19T20:12:17.000190Z

i'm killing myself with this

2018-06-19T20:12:27.000722Z

i have a bunch of {:css "li.search-result a"} elements

2018-06-19T20:12:34.000485Z

and I want to click on the nth one of that

2018-06-19T20:12:44.000428Z

and I can't figure out how to do that

2018-06-19T20:13:34.000027Z

I tried a query-all with nth and a query with :index n but in both cases I get a string back that looks like "0.08110675983330973-27"

2018-06-19T20:14:01.000231Z

i tried passing that to click but receive an "Failed to execute 'evaluate' on 'Document': The result is not a node set"

2018-06-19T20:14:10.000174Z

So I'm pretty much at my wit's end.

2018-06-19T20:14:15.000032Z

Help, please?

2018-06-19T20:22:51.000361Z

btw (click driver {:css "li.search-result a" :index 5}) also doesn't work. No matter the index, I always get the first element

2018-06-19T20:49:25.000718Z

okay, this is the only thing that seems to work: (click-el driver (nth (query-all driver (el :search :search-results)) 6))

2018-06-19T20:49:42.000519Z

i think the :index function is broken somehow in 2.8.0