Find "Version: <b>1</b>"

11 views
Skip to first unread message

Jeff Riley

unread,
Apr 21, 2016, 5:39:29 PM4/21/16
to splinter-users
How do I go about finding "Version: <b>1</b>" on my HTML page.  I have tried.... context.browser.find_by_text('Version: <b>' + version)...... where version is a 1.

Gabriel Lima de Oliveira

unread,
Apr 22, 2016, 7:47:36 AM4/22/16
to splinte...@googlegroups.com
You may use browser.find_by_text('Version'), without using the '<b>' tag.

If you don't mind me saying so, I'd add a tag to scope the version number, making things easier to find.

Something similar to Version <span id='version_number'>1</span>

and them:
browser.find_by_id('version_number')




 Att,
Gabriel L. Oliveira

On Thu, Apr 21, 2016 at 6:39 PM, Jeff Riley <javaj...@gmail.com> wrote:
How do I go about finding "Version: <b>1</b>" on my HTML page.  I have tried.... context.browser.find_by_text('Version: <b>' + version)...... where version is a 1.

--
You received this message because you are subscribed to the Google Groups "splinter-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to splinter-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages