Bug 11335 - The all builds, All projects, documentation buttons dont have an ID
Summary: The all builds, All projects, documentation buttons dont have an ID
Status: RESOLVED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4 M1
Assignee: David Reyna
QA Contact: Libertad
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-04-11 17:28 UTC by Libertad
Modified: 2017-06-24 05:12 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
a snap shot of the buttons I am talking about (5.09 KB, image/png)
2017-04-11 17:28 UTC, Libertad
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Libertad 2017-04-11 17:28:15 UTC
Created attachment 3709 [details]
a snap shot of the buttons I am talking about

While creating automated testcases for Toaster, I realize that some buttons dont hold an id. 


All builds
All projects
Documentation


They are held within a <div>--<ul>---<li>---<a> and just hold a href. I am talking about the elements within the tag <div id="global-nav">. So, when automating I have to search for an xpath to the the href to be able to click on them. 


self.driver.find_element_by_xpath("//div[@id='global-nav']/ul/li/a[@href="+'"'+'/toastergui/projects/'+'"'+"]").click()