Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
myusername
Posts : 2
Join date : 2012-01-18

having an issue with clicking on ID in a webpage Empty having an issue with clicking on ID in a webpage

Wed Jan 18, 2012 10:06 pm
hi all,

I am using webdriver with python. the script i am working on is supposed to login to hotmail.com, click on inbox, click on New (to compose mail), compose a mail and send the message.

however it fails when i try to click on New (to open the new mail window).
(BTW it works on selenium IDE)

here is the HTML of hotmail.com :
Code:

<ul id="InboxToolbar" class="FloatLeft" style="width: 462px;">
<li class="ToolbarItem ToolbarItemFirst" aid="newMsg">
<a id="NewMessage" href="#" title="Write a new message (Ctrl+N)">
<span class="Label">New</span>
i have tried :
find_element_by_class_name
find_element_by_css_selector
find_element_by_id
find_element_by_link_text
find_element_by_name
find_element_by_partial_link_text
find_element_by_tag_name
find_element_by_xpath

all fail with error : Unable to locate element : ....
i also tried using the implicitly_wait method - nothing works.

any ideas guys? (and girls?)
avatar
ashish_techie
Amateur
Amateur
Posts : 73
Join date : 2011-08-09

having an issue with clicking on ID in a webpage Empty Re: having an issue with clicking on ID in a webpage

Sat Jan 21, 2012 4:14 pm
Is this element in a css menu which drops down after you hover mouse over it?
If yes, then you will have to use another techniue

If no, then is this inside a frame?

Regards
Ashish
For selenium training and videos visit:
http://qtpselenium.com/selenium-training
avatar
myusername
Posts : 2
Join date : 2012-01-18

having an issue with clicking on ID in a webpage Empty Re: having an issue with clicking on ID in a webpage

Sun Jan 22, 2012 2:29 pm
Hi Ashish,

i was able to solve the issue using the "switch_to_frame" command.

thanks for your reply.

BTW, do you know where can i get the complete list of selenium webdriver commands in python?

regards,

Happy Tester.
Sponsored content

having an issue with clicking on ID in a webpage Empty Re: having an issue with clicking on ID in a webpage

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