Ok, so the text in the headers, is located in span tags, inside divf without unique ids. Those are children (twice removed) of divs that are siblings of divs that contain children containing rows in the grids.
truth be told, though apple's safari driver implementation is still under development, so it has some issues still-to-be-worked-out. and it's safari 10 or higher, only.
WhereIsMySpoon
am i thinking of the tech preview
Lord_Drake
Balls. It keeps choking on my wait.
Rabid
Is Apple's Safari Driver a RemoteWebDriver implementation?
WhereIsMySpoon
ah no thats a different question altogether, never mind me
smccarthy has quit
Rabid: the safaridriver has nothing to do with remotewebdriver
jimevans bets Rabid says perl or php or something silly like that.
WhereIsMySpoon
safaridriver itself, is the thing that drives the browser, like chromedriver or iedriver
Rabid
C# and Java
WhereIsMySpoon
Lord_Drake: no
Lord_Drake
/div[2]/div not ok?
WhereIsMySpoon
Lord_Drake: //span[text()="Location Description"]
Lord_Drake
Oh
*facepalm*
railssmith has quit
WhereIsMySpoon
not sure that [2] is valid either like that
marekj-sl has quit
jimevans
Rabid: then, if you're using the .NET bindings, you should be able to connect directly using the SafariDriver class (assuming you're executing the code using mono or similar)
WhereIsMySpoon
im pretty certain you need brackets around everything before the [2]
Lord_Drake
I recall using something like that. Let me go back and look.
Rabid: let me rephrase that. you need to be running your .NET code directly on the mac in order for that to work
hmcgowan-sl has quit
WhereIsMySpoon
good luck running .net code on anything but windows
fuck that shit
*mutter*
smccarth_ joined the channel
jimevans
WhereIsMySpoon: i've been able to successfully do that, so ease the fuck off.
lukeis
his way says essentially div#row0jqxWidget > div:nth-child(2)
WhereIsMySpoon
do it sure. have it work in a timely and useful fashion, nope :P
lukeis: i know, i just thought you needed brackets
lukeis
nope, you don't
WhereIsMySpoon
hm, ok
i guess you can ignore me on that count then Lord_Drake
Rabid
Wait the whole point of RemoteWebDriver is to run scripts against a remote machine
Lord_Drake
Mmk
Rabid
That can't be done with MAC?
bret-sl joined the channel
lukeis
Rabid: it can be done… what's the issue?
jimevans
Rabid: i'm not entirely sure if the java remote implementation has been updated to handle safari driver capabilities. if so, all you'd need do is create a RemoteWebDriver instance, using the .ToCapabilities() method on the SafariOptions object as your capabilities.
but i've not actually tried that to make sure it'll work.
Lord_Drake
Nope, still hanging.
smccarthy joined the channel
lukeis
Rabid: please don't pm :) you run the standalone server (java) on the mac… run your code from your host machine… point to it with IP / hostname
Rabid
We are currently using C# .NET 4.6.1 implementation
lukeis the standalone server for 2.53.1 and 3.0 does not have safari as an option
lukeis
yes, yes it does
mach6-sl joined the channel
drharmony has quit
ardesco-sl has quit
Rabid
I get all other options in the static/resources/hub.html not with safari
Lord_Drake: i dont see "Location Description" anywhere in the html you've given me so i cant see if its wrong or not really, other than im not sure if the spaces are legal
around the =
"text() =" is an exact match btw, so if there are any spaces in that span text after or before the words, it wont match
Lord_Drake
No, it's not on that page.
WhereIsMySpoon
you can use contains(text(), 'mytext') if you want to do a partial
Lord_Drake
I'm testing another grid atm. They're built basically the same way.