Jump to content



Photo

Changing Variable


  • Please log in to reply
3 replies to this topic

#1 gavner25

gavner25

    Member

  • Members
  • PipPip
  • 24 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 08 July 2019 - 05:00 PM

How do i use the type text feature on Exbrowser with a variable that keeps changing each time i post an article.

 

This works: //*[@id="cke_930_textInput"]

 

but the "930" changes to a different number each time it loads. How can i get around this? Do i use the 'contains' feature or wildcard or something ?



#2 gavner25

gavner25

    Member

  • Members
  • PipPip
  • 24 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 08 July 2019 - 05:19 PM

Just to add. This text box im trying to fill only works with the 'id' and nothing else like @class or @type



#3 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3128 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 08 July 2019 - 05:22 PM

Maybe something like this:

//*[contains(@id, '_textInput')][starts-with(@id, 'cke_')]


#4 gavner25

gavner25

    Member

  • Members
  • PipPip
  • 24 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 08 July 2019 - 06:13 PM

It works, great!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users