Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

having an issue with clicking on ID in a webpage

View previous topic View next topic Go down

having an issue with clicking on ID in a webpage

Post by myusername on 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?)

myusername

Posts : 2
Join date : 2012-01-18

Back to top Go down

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

Post by ashish_techie on 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

ashish_techie
Amateur
Amateur

Posts : 73
Join date : 2011-08-09

Back to top Go down

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

Post by myusername on 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.

myusername

Posts : 2
Join date : 2012-01-18

Back to top Go down

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

Post by Sponsored content Today at 7:14 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