Simulate mouse click in a link

66 views
Skip to first unread message

Romulo Soratto

unread,
May 8, 2014, 2:38:22 PM5/8/14
to seleniu...@googlegroups.com
Hello,
I´m trying to click a link in web page using this comand
element = driver.findElement(By.Id("IDName")).Click(); 
But visual studio throw me the followwing error
'OpenQA.Selenium.IWebDriver' does not contain a definition for 'findElement' and no extension method 'findElement' accepting a first argument of type 
So i don´t know if I'm doing the right thing here.

The link I'm trying to click is within several frames. 
So not sure if this is a problem. 
I need access the frames before simulate the click? 
How do I do that?
Thanks in advice!

jeevan

unread,
May 8, 2014, 2:56:45 PM5/8/14
to seleniu...@googlegroups.com
I think it suppose to be FindElement

Thanks,
Jeevan



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f24bc76e-f5d5-4ce0-a1ac-41a1df43cc86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lan Ta Bao

unread,
May 8, 2014, 9:49:54 PM5/8/14
to seleniu...@googlegroups.com
Please take a look in this link

You will need to access to this frame contain the link, then you will find element and click in this!

Vào 01:38:22 UTC+7 Thứ sáu, ngày 09 tháng năm năm 2014, Romulo Soratto đã viết:

Romulo Soratto

unread,
May 9, 2014, 1:45:01 PM5/9/14
to seleniu...@googlegroups.com
Ok thanks!
Reply all
Reply to author
Forward
0 new messages