def __call__(self, prof):
self.create_prof_page(prof)
- self.s.open_nav_section(raw_name)
TODO
def create_prof_page(self, prof):
+ name = '%s %s' % (prof.name.first_middle, prof.name.last)
+ self.s.open_nav_section(name)
+ return
self.s.open_nav_section('Copy of Shyamalendu Bose')
old_windows = self.s.w.get_window_handles()
self.s.w.find_element_by_link_text('Copy To').click()
name = self.s.w.find_element_by_id('Filename')
name.clear()
name.send_keys(
- '/sitecore/content/Home/physics/contact/facultyDirectory/%s %s'
- % (prof.name.first_middle, prof.name.last))
+ '/sitecore/content/Home/physics/contact/facultyDirectory/%s'
+ % name)
self.s.w.find_element_by_id('OK').click()
time.sleep(self.s.wait_time)
current_window = self.s.w.get_current_window_handle()
self.s.logger.info('handled copy popup %s, back to %s'
% (popup, current_window))
+ self.s.open_nav_section(name)
def main(argv):