Luke, thank you for the recommendation --that worked. For some
reason, only the first two overloads of the method (passing index of
the frame, or name of frame) showed in my IDE - the overload for
passing the webelement was hidden. That's part of why I was having
problems. The other bit is that I might have gotten confused from
trying so many different things, and lost track of what I had tried
and not tried.
Thanks to everyone for your help.
Michael
On Feb 2, 1:28 am, Luke Inman-Semerau <
luke.seme...@gmail.com> wrote:
> You should be able to pass that webelement to the Frame method, it can take either a number (index of the frame), frame name (string), or a webelement.
>
> -Luke
>
> On Feb 1, 2012, at 9:49 PM,Michael<
goll...@gmail.com> wrote:
>
>
>
>
>
>
>
> > driver.SwitchTo().Frame("searchPanel"); (in my case the VB equivalent
> > of same) errors out with the error
> > "the frame could not be found". Interestingly, I can find this frame
> > by selecting it like this:
>
> > iquery2 = driver.FindElement(By.Name("searchPanel"))
>
> > but once I have that, what do I do? Is there a way to feed iquery2 to
> > as the object (frame) to switch to? My ultimate goal is that I need
> > to drill down into that frame so I can send some text into an input
> > box within the markup of that frame.
>
> >Michael
>
> > On Jan 31, 2:28 pm, Luke Inman-Semerau <
luke.seme...@gmail.com> wrote:
> >> looks like all you need is
> >> driver.SwitchTo().Frame("searchPanel");
> >> driver.FindElement(By.Id("searchInput")).SendKeys("some query");
> >> driver.FindElement(By.Id("tlsBtn").Click();
> >> driver.SwitchTo().DefaultContent();
> >> # ...
> >> #more switchTo()'s depending on which frame
> >> # do what you need to do...
>
> >> that's c# I'm guessing you can translate to VB
>
> >> On Tue, Jan 31, 2012 at 9:55 AM,Michael<
goll...@gmail.com> wrote:
> >>> Bump. Anyone have any thoughts?
>
> >>> Thanks,
> >>>Michael
>