Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How to click a link present inside the frame of a frameset

View previous topic View next topic Go down

How to click a link present inside the frame of a frameset

Post by Moskva on Thu Dec 25, 2014 10:16 pm

Here is  what I am trying to do to to click a link present inside the frame of a frameset..





firefox.FindElement(By.XPath("//Tag[@name='frame']"));
firefox.SwitchTo().Frame(firefox.FindElement(By.Id("101")));
IWebElement frame = firefox.FindElement(By.Name("Name"));

All of this command are unsuccessfull. They could not locate frame. I have question whether selenium 2.44 supports frames?
Maybe some example where it is working? Maybe I am missing something?

Moskva

Posts : 4
Join date : 2014-12-25

Back to top Go down

Re: How to click a link present inside the frame of a frameset

Post by shweta.bet on Fri Dec 26, 2014 1:46 pm

Just try use id as an argument to switchTo statement,
such as ,

Code:
driver.switchTo().frame("frameID");

shweta.bet

Posts : 7
Join date : 2014-11-14
Age : 34

Back to top Go down

Re: How to click a link present inside the frame of a frameset

Post by Edalincam55 on Fri Jan 02, 2015 11:31 am

After reading your post, I am assuming your experience, so please, would you mind to tell me, this is right way to creat frames??
To use frames on a page we use tag instead of tag. The tag defines how to divide the window into frames. The rows attribute of tag defines horizontal frames and cols attribute defines vertical frames. Each frame is indicated by tag and it defines which HTML document shall open into the frame.

Edalincam55

Posts : 4
Join date : 2015-01-02
Age : 28
Location : PK

Back to top Go down

Re: How to click a link present inside the frame of a frameset

Post by anemuday on Wed Jan 07, 2015 11:01 pm

Hi,

The first thing you should do with frames is, you need to switch to the frame.
This can be done on below ways.
driver.switchTo().frame("Index")
driver.switchTo().frame("name")
driver.switchTo().frame("Frame as webelement").

Once you are done with your operation on your frame, you need to come out of the focus by using
driver.switchTo().defaultContent()

For detailed explanation please watch the below video:


Let me know if you still see the problem.

Thanks,
Uday

anemuday
Active particpant
Active particpant

Posts : 11
Join date : 2012-10-11

Back to top Go down

Re: How to click a link present inside the frame of a frameset

Post by nabhanya.varma on Sun Jan 25, 2015 8:41 pm

You should have a look on  WebDriverWait class. We have a method to wait for a frame and then switch

Code:
WebDriver frame = wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt("frame"))



And then you should wait for the element to be visible to perform any action.


Code:
WebDriverWait wait = new WebDriverWait(driver, 3000);
wait.until(ExpectedConditions.visibilityOfElementLocated((By
                .name("element"))));


Check the below link to work with frames using selenium webdriver

http://seleniumeasy.com/selenium-tutorials/how-to-work-with-iframes-in-selenium-webdriver

nabhanya.varma
Active particpant
Active particpant

Posts : 13
Join date : 2014-03-02

Back to top Go down

Re: How to click a link present inside the frame of a frameset

Post by Moskva on Wed Feb 04, 2015 12:41 am

I have code like this:



testedbrowser.SwitchTo().DefaultContent();



Thread.Sleep(5000);

// IWebElement Frameneeded = testedbrowser.FindElement(By.Name("SideFrame"));

testedbrowser.SwitchTo().Frame("SideFrame");

it works fine with  firefox but no way with Chrome and with IE 11. That is  and that was the problem for me.    I have windows 8. MS VS 2008. 

Moskva

Posts : 4
Join date : 2014-12-25

Back to top Go down

Re: How to click a link present inside the frame of a frameset

Post by hanaij on Thu Feb 12, 2015 11:18 am

I'm having trouble in locating an element inside the iframe, once I perform mouse over there is a tooltip showing the time but there's no id, name, etc to locate the element.
Here below the HTML tag inside the iframe id = "scheduler"


div onmouseup="fireScheduleTimeClicked(this, event, 'schedulerForm', 'schedulerForm:schedCalendar');" style="position: relative; top: 0px; left: 0px; width: 100%; height: 100%; z-index: 0;" class="column" id="schedulerForm:schedCalendar_body_20150213">

Hoping anyone can help me.

hanaij

Posts : 1
Join date : 2015-02-12

Back to top Go down

Re: How to click a link present inside the frame of a frameset

Post by AgoBalan on Mon Feb 23, 2015 3:45 pm

Actually what is your exact problem.. switch to iframe or finsing eklement in Iframe?

AgoBalan
Amateur
Amateur

Posts : 36
Join date : 2015-02-23

Back to top Go down

Re: How to click a link present inside the frame of a frameset

Post by Sponsored content Today at 1:55 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum