Jump to content
UBot Underground

ATTN EXPERTS: How to "scrape" UI HTML Panel?


Recommended Posts

So here's what I have going on.  I'm making a Bot that's going to utilize a .pre-existing CSV file that the user has on their computer.

 

The table has 2 columns.  One for Item name and one for Item value.  I'm trying to

 

So far the bot will create a list for each column, one list for items, one list for values.

 

Now when the bot is loaded, I have an on-load command that will populate a DIV in the Ui html panel, displaying an empty text box field for each item the user may have in the CSV file.  The text area is used for the user to input a "quantity".  I plan to multiply the "quantity" entered by the user, by the "value" for that item in the CSV file which has been added to a list.

 

My problem is I can't for the life of me figure a way to retrieve the user entered data from these fields populated in the UI HTML panel...  The issue is I cannot assign a variable to each field because UBOT doesn't support dynamic variables, otherwise I would just create a variable for each item in the csv file and use it's value...

 

So I am super stuck here, there's gotta be some way to retrieve this user entered data from the UI HTML panel.

 

The reason I'm using the UI HTML Panel is because I keep the browser hidden, as it is no use to me for this, otherwise I would just write to browser then scrape that...

 

Ugh, working on something I think is so awesome and I came to a hugely major road block lol.

 

Any help would be appreciated!

Link to post
Share on other sites

I've thought about writing the HTML to a new browser window, because I could scrape each one by DIV ID that way, without the need to create variables, but unfortunately you cannot use a "in new window" command while your 'hide browser' option is selected in the dev compile settings.

Link to post
Share on other sites

The reason I'm using the UI HTML Panel is because I keep the browser hidden, as it is no use to me for this, otherwise I would just write to browser then scrape that...

 

Wouldn't it be better to NOT use the UI HTML Panel. If you are not using the browser to show what the bot is doing, then just use the browser for your ui so you can scrape it.

Then whatever commands your bot runs can be run in a new(hidden) browser. And no need to select "Hide Browser" when you compile, unless I'm missing something here.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...