Bug 11335

Summary: The all builds, All projects, documentation buttons dont have an ID
Product: [Build System, Metadata & Runtime] Toaster Reporter: Libertad <libertad.gonzalez.de.la.cruz>
Component: toasterAssignee: David Reyna <david.reyna>
Status: RESOLVED FIXED QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: normal    
Priority: Medium CC: jessica.zhang, stanciux.mihail
Version: 2.3   
Target Milestone: 2.4 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
a snap shot of the buttons I am talking about none

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()