- myusername
- Posts : 2
Join date : 2012-01-18
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 :
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?)
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>
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?)
- ashish_techieAmateur
- Posts : 73
Join date : 2011-08-09
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
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
- myusername
- Posts : 2
Join date : 2012-01-18
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.
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.
Permissions in this forum:
You cannot reply to topics in this forum