TagUI icon indicating copy to clipboard operation
TagUI copied to clipboard

run TagUI with -h , error

Open cenwenchu opened this issue 2 years ago • 2 comments

error msg as below:

click //[@id="fxg-pc-header"]/div[1]/div[1]/div/div[2]/div[2]/div/div[2]/div ERROR - cannot find //[@id="fxg-pc-header"]/div[1]/div[1]/div/div[2]/div[2]/div/div[2]/div /usr/local/bin/tagui: line 459: 1420 Terminated: 15 "$tagui_browser_command" --user-data-dir="$TAGUI_DIR/chrome/tagui_user_profile" $chrome_switches $window_size $headless_switch $no_sandbox_switch > /dev/null 2>&1


if run as TagUI -h , not support click XPATH?

cenwenchu avatar Jul 28 '22 11:07 cenwenchu

Hi @cenwenchu could it be that the page is rendered differently in headless mode such that the xpath cannot be found?

You can try this suggestion here to check the html of the headless page.

ruthtxh avatar Jul 29 '22 01:07 ruthtxh

Adding on, if it is necessary to run in headless mode but hard to figure out the XPaths, you can try out solutions like Xvfb to create virtual frame buffer display. And run Chrome in the normal visible mode. That should render the webpage accurately.

kensoh avatar Jul 30 '22 08:07 kensoh