01-05-2016, 09:01 PM
Hi, I got the following error while using UFT 12.51 :
Cannot identify the object "Create branch:new_branch" (of class WebElement)
My code:
Any help is highly appreciated.
Cannot identify the object "Create branch:new_branch" (of class WebElement)
My code:
Code:
email_addr = "sp@xxx.com"
pwd = "12Ka10##"
repo = "shanti-testrepo"
uid = "sp"
new_branch = "branch8"
SystemUtil.Run "IExplore.exe", "https://github.com"
Browser("Sign in via LDAP · GitHub").Page("Sign in via LDAP · GitHub").WebEdit("login").Set "sp@xxx.com"
Browser("Sign in via LDAP · GitHub").Page("Sign in via LDAP · GitHub").WebEdit("password").SetSecure "568a9c124918796c14dda31b0d833acefa6c5089281f"
Browser("Sign in via LDAP · GitHub").Page("Sign in via LDAP · GitHub").WebButton("Sign in").Click
Browser("Sign in via LDAP · GitHub").Page("GitHub").Link("repo").Click
Browser("Sign in via LDAP · GitHub").Page("uid/repo").WebEdit("Find or create a branch…").Set new_branch
Browser("Sign in via LDAP · GitHub").Page("uid/repo").WebElement("Create branch: new_branch").Click
Any help is highly appreciated.