20

Dynamic / Variables in Selectors

  • Live

A
Drew

It would be powerful to have the ability to use a variable in the selectors for elements (example: //a[text()='@Domain'] or //a[text()='@step 8'] )

A

Activity Newest / Oldest

Avatar

Kyle

Status changed to: Live

Avatar

Kyle

Selectors now support variables inside expressions so you can do something like

id=@username

The selectors support CSS selectors, Xpaths, and puppeteer expressions


  • Avatar
Avatar

Cătălin Constantin

I love what you are saying but a social media automation for this should be made as a template Kyle.. And video explaining them. And please make your video demos as templates. But now..plese explain them.


Avatar

Kyle

It should be very very rare you'll need to use this. You would be better off using find by text when possible unless you have a great understanding of selectors and how to construct those.

This is definitely a more technical / advanced feature with some html knowledge likely expected so I dont intend for all users to use this

www.loom.com/share/6a24afae181349c488991f70c315234f


Avatar

Promovare David

Awesome..


Avatar

Kyle

Status changed to: Planned

Avatar

Kyle

Here we go gettin fancy with it. Ill add support for this in/before 0.4.22 version (id assume end of week)


  • A
Avatar

Kyle

"Find by text" does support variables FYI as a current "almost"
www.loom.com/share/6a24afae181349c488991f70c315234f


  • A
  • Avatar
A

Drew

Haha awesome, thank you!


A

Drew

Great video, thank you! I was able to use the Find by Text feature with a variable on one site and it worked great. However, there's another site where the same text shows in multiple elements so I'm needing to do more specific selectors; this will help add some needed precision in these types of cases. Thanks again!


  • Avatar