Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to have a variable that has a string comma string ..
#1
Not Solved
Code:
COMMA = chr(34) & "\," & chr(34)

'HTML Tags


Browser_ComplianceLink = "title:=Compliance.*"
Page_ComplianceLink = "title:=Compliance.*"
HTMLTagINPUT = "INPUT"
WE_Username = "type:=text"&COMMA&"name:=username"&COMMA&"html Tag:=INPUT"

Browser(Browser_ComplianceLink).Page(Page_ComplianceLink).WebEdit(WE_Username).Set "Shareq"    '---- not working



I have isolated the error and the variable WE_Username does not work. It was working yesterday but today it seems to be throwing an error saying the webedit box is not found.

Any help or suggestion is appreciated
Reply
#2
Not Solved
Check if the webEdit properties have changed.
Reply
#3
Not Solved
I checked that, but how can I define a descriptive programming text in a variable and then use that variable in the statement

Code:
Browser.Page.WebEdit(variable).set "myName"
Reply
#4
Not Solved
Use it like this

Code:
Browser_ComplianceLink = "Compliance.*"
Page_ComplianceLink = "Compliance.*"
strType = "text"
strName="username"
strTag="INPUT"

Browser("title:="&Browser_ComplianceLink).Page("title:="&Page_ComplianceLink).WebEdit("html tag:="&strTag,"type:="&strType,"name:="&strName).Set "Shareq"

Hope this answers your question

Regards,
Ravi
Reply
#5
Not Solved
Thanks Ravi, but I want to use the variable myVar instead. When I write it this way it gives me errors and the code does not execute.

Code:
myVar = "html tag:="&strTag,"type:="&strType,"name:="&strName
Browser("title:="&Browser_ComplianceLink).Page("title:="&Page_ComplianceLink).WebEdit(myVar).Set "Shareq"
Reply
#6
Not Solved
i hav not debugged it but one of these should work for u:

Code:
myVar =""type:=text""&","&""name:=username""&","&""html Tag:=INPUT""
or
Code:
myVar =""type:=text""&"",""&""name:=username""&"",""&""html Tag:=INPUT""

Code:
Browser("title:="&Browser_ComplianceLink).Page("title:="&Page_ComplianceLink).WebEdit(myVar).Set "Shareq"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help in creating dynamic object string using Childobjects Keshub Mathur 0 1,507 09-11-2017, 05:52 PM
Last Post: Keshub Mathur
  How to extract particular digit from a string amit25007 3 3,265 10-05-2016, 10:49 AM
Last Post: Ankur
  Not able to use wild character in string amit25007 2 2,391 03-09-2016, 10:36 AM
Last Post: amit25007
  String Pattern : Alternet Character Capital abhideshpande001 4 3,303 09-03-2015, 03:43 PM
Last Post: abhideshpande001
  How to validate a format of an alphanumeric string PrateepKaraval 2 5,783 11-08-2014, 10:26 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)