wd icon indicating copy to clipboard operation
wd copied to clipboard

add support to select the parent frame

Open DinisCruz opened this issue 11 years ago • 2 comments

At the moment it is only possible to 'navigate into' a particular frame (using https://github.com/admc/wd/blob/1038c33b0abbe8329d81c9bb6bb62e3df3b440fa/lib/commands.js#L327) As per the JsonWireProtocol specification, there is a /frame/parent method that can be called.

Here is how I got it to work on my test script

resetToParentFrame = function() 
   {
       browser._jsonWireCall(
            {
                method: 'POST' , 
                relPath: '/frame/parent' , 
                data: {} , 
                cb: viewData
            }) 
   }

It would be nice to add this as an officially supported wd method

DinisCruz avatar Dec 01 '14 04:12 DinisCruz

:+1:

mrak avatar Dec 02 '14 22:12 mrak

Just add it to command.js and open a PR.

sebv avatar Dec 02 '14 22:12 sebv