but that's a firefox driver (well, geckodriver) implementation detail.
b4hand
Never considered that actually
andylavarre has quit
andylavarre joined the channel
whimboo
b4hand: are you waiting for the new tabs to open?
b4hand
whimboo: yeah I just used a sleep(5) to wait.
whimboo: I am an idiot. I think I put the sleep in the wrong place
superfreak3 joined the channel
b4hand facepalms
superfreak3
So bummed that I cannot get the url paste to work after opening a new tab. Actions Ctrl+v seems to paste double.
jimevans will never understand the obsession with having tests "manually" opening a new tab
whimboo
jimevans: in his case he is testing the chrome scope of Firefox. So not really a topic for this channel
andylavarre has quit
jimevans
whimboo: i was more interested in superfreak3 than what b4hand was talking about.
whimboo
oh, k
bad overlap then
b4hand
whimboo: thanks though!
jimevans
yeah, it's just that there's a common thread that people seem to want to open a new tab, but without thinking through *why* they think they need that.
superfreak3
we have an app that copys the url of a certain file in our app. to verify that the copy worked properly we were opening a new tab, pasting the url and waiting for the element with the file name to be displayed
worked smooth until upgrade to v3.5 (and now .6)
jimevans
seems an odd approach. there are APIs to get the system clipboard contents.
superfreak3
as to the why, there really isn't any other way to check that the file's url copy worked. I don't think I can fire up another driver and just goto that url because there are login issues
there are api's - System.Windows.Forms
not sure if I wanted to include those though, unless there are others I can use
jimevans
superfreak3: how does your app track login in the browser?
sorry
let me rephrase.
superfreak3
there is a token that is stored in local storage I believe
jimevans
there are a couple of approaches.
superfreak3
if the login part of it gets too heavy duty, I can chat with our licensing/login/token counter
I can understand that some things changed in the latest firefox to allow the opening of the tabs, which was worked around by adding the proper .tabs profile preferences, but just can't get why the past isn't working
jimevans
first, you could simply look at the URL, which you can get from the system clipboard. yes, you might need to know a little system programming depending on the OS you're on, but that's not that tough. on windows, i think the API call is GetClipboardData
superfreak3
yep, I think you're right - from system.windows.forms I believe
the funny thing is that if I paste to notepad after the copy, the url is fine
or, if I debug the test, it's fine
it's only release runtime that doubles the paste.
jimevans
superfreak3: no, i'm going lower level than that. not depending on any framework but the windows API. but if you want to use the .NET wrapper, that's fine too.
superfreak3
i can look into wins api, no problem. Not sure what I'm going to do with that though, as, like I said, the clipboard contents are fine.
jimevans
okay, so clearly, i'm not going to get to finish my thought, so let me just ask this question: if the URL is properly on the clipboard, are you confident that the feature is correct.
superfreak3
you mean buggy, it doesn't seem so
if I manually run through the test steps, the paste is good and the file is navigated to without issue
jimevans
no, my question is more fundamental than that. do you need to actually navigate to the URL to be confident the feature is working?
superfreak3
ah, good question, I can check on that, but I believe that is the purpose of the whole url copy function. I will check to see what my limitations are there. Unfortunately I \'ve been called away so hopefully you'll be on later if there are any other questions. Thanks Jim!
superfreak3 has quit
RyanNE joined the channel
ujadhav-sl joined the channel
ujadhav-sl
Hello! A noob selenium question. Has anybody worked with React + Selenium? One particular question - How do you guys handle table components, and toggle components? Specially while getting the values?
(given that everything is react is in `div`s)
titusfortner-sl has quit
mach6 joined the channel
sbae-sl has quit
fatguylaughing has quit
ddavison-sl has quit
fatguylaughing joined the channel
maeriens-sl has quit
neoncontrails joined the channel
simonstewart
On a real yak shaving expedition today
jimevans: aren't the methods from ISpecificationCompliant public on DesiredCapabilities?
jimevans
simonstewart: they're not accessible. not marked public.
I didn't realise C# let you have non-public methods on interfaces
jimevans
if the interface is non-public
simonstewart
Clever
The problem wasn't particularly obvious.
jimevans
no, it wasn't. i was once again a victim of my own overzealousness
simonstewart
Hahaha
The New Session stuff has been an utter pathway for misery
Automation joined the channel
jimevans
i want to drop all OSS dialect of the protocol so badly, but we just. aren't. there. yet.
simonstewart
jimevans: the java tree will continue to support them
titusfortner-sl joined the channel
jimevans
as it should.
simonstewart
At some point, we'll get there
Years from now
But by Christmas
fatguylaughing has quit
TinkerTyper joined the channel
kirua joined the channel
kirua
hi
> how to get the xpath with firefox ?
Ouchy`w has quit
Ouchy has quit
roelmonnens joined the channel
Automation
hi all, just want to ask whether touch actions can work with chromedriver?
Ouchy joined the channel
Ouchy has quit
Ouchy joined the channel
Ouchy`w joined the channel
simonstewart
Automation: try them, maybe?
jimevans pictures simonstewart saying in his head "hey, i just met you. and this is crazy, but can you find out? just try them, maybe?"
Automation
i tried and it does not work so I wonder if anyone has experience using Touch Actions in chromedriver before. Normally, I used it in Android/IOS web driver and it works fine but chrome driver is different story
simonstewart
Hahaha
RyanNE has quit
Those end points were designed for mobile testing. I'd be a little surprised to find them in desktop chromedriver
kereliuk might know better
Automation
yes, because I tried to automate a mobile webpage run on desktop browser?
roelmonnens has quit
and the event is touch event instead of mouse event so that is why i am thinking of using touch actions