TagUI
TagUI copied to clipboard
run TagUI with -h , error
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?
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.
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.