Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to select a webelement
#9
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi, I got the following error while using UFT 12.51 :

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.
Reply


Messages In This Thread
How to select a webelement - by silpavinod - 10-09-2012, 12:13 PM
RE: How to select a webelement - by ssvali - 10-09-2012, 02:40 PM
RE: How to select a webelement - by silpavinod - 10-10-2012, 12:14 PM
RE: How to select a webelement - by harishshenoy - 10-11-2012, 10:11 AM
RE: How to select a webelement - by silpavinod - 10-11-2012, 02:59 PM
RE: How to select a webelement - by harishshenoy - 10-11-2012, 06:50 PM
RE: How to select a webelement - by silpavinod - 10-12-2012, 03:55 PM
RE: How to select a webelement - by mshivnath - 07-13-2014, 10:50 PM
RE: How to select a webelement - by spchan - 01-05-2016, 09:01 PM
RE: How to select a webelement - by vinod123 - 01-06-2016, 09:47 AM
RE: How to select a webelement - by vinod123 - 01-06-2016, 10:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation WebElement("WebElement").Click is not working sia sharma 7 23,954 09-28-2016, 08:58 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)