[ABTEST-71] Research how to select one item in a page Created: 08/Aug/19  Updated: 03/Oct/19  Resolved: 30/Sep/19

Status: Closed
Project: A/B Testing
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Story Priority: Neutral
Reporter: Laura Delnevo Assignee: Evzen Fochr
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to ABTEST-47 New test. Goals Closed
dependency
is depended upon by ABTEST-78 Implement goals infra in the backend Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: Tests generation
Sprint: Add-Ons 20, Add-Ons 21
Story Points: 8

 Description   

In order to define goals, currently, we are limited to have pre-defined goals and let users define which component/item they are interested in. However, there is no way in earth that a Marketeer is able to define a CSS selector

We have to give them a possibility to choose their item from the rendered variant/page.

 

AC

  • Research how complicated/feasible to achieve this
    • Render the page to the user
    • Make them select the interested item
    • Get this item via 'save'-ish action/button (one idea is to use Jsoup and scrape the HTML to find out which item is selected)
  • Alternative ways to achieve this

https://wiki.magnolia-cms.com/display/~efochr/Research+how+to+select+one+item+in+a+page



 Comments   
Comment by Evzen Fochr [ 18/Sep/19 ]

https://stackoverflow.com/questions/39414287/html-element-selector-with-java-vaadin

Comment by Evzen Fochr [ 30/Sep/19 ]

On the branch there is dialog where page is loaded in.

Way to select and get path to element is nicely described here (using xpath) https://stackoverflow.com/questions/39414287/html-element-selector-with-java-vaadin

For javascript it should be usable this https://vaadin.com/docs/v8/framework/gwt/gwt-javascript.html (vaadin Javascript component)

Good example can be taken from appswitcher module

Generated at Sun Feb 11 22:52:34 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.