thepeanutgalleryandco/create-and-mint-nft-collection

[BUG]Error: No node found for selector: div[aria-hidden="false"] when attempting to put edition on sale: 9995

Undoqaq opened this issue · 11 comments

This script runs until the price and date are entered, then the complete listing is not clicked, Also did not sign the message to metamask.

@Undoqaq which script are you trying to use? The sell_nfts script? Can you please share your contract address that you are trying to use.

@Undoqaq which script are you trying to use? The sell_nfts script? Can you please share your contract address that you are trying to use.

Yeah it's sell_nfts, Here is my contract address "0xB19Ad0c39b28576EC95FfF0920909D0B09669797".

@Undoqaq thanks, can you also confirm the selling configuration that you are trying to use. All of the below values please.

Screenshot_20220524-193539_Chrome

@Undoqaq thanks, can you also confirm the selling configuration that you are trying to use. All of the below values please.

Screenshot_20220524-193539_Chrome

@thepeanutgalleryandco
截屏2022-05-25 02 23 32

@Undoqaq I just ran the same the following code piece and successfully put my NFTs up for sale. Take careful note of the start hour and minute along with end hour and minute. You can't list an item with a start hour and minute that is earlier than today as it lists the item from the current timestamp. I suspect your start and end hours caused issues. Also, it is not 0, it will be 00 for hour and 00 for minute as well. It is in 24-hour format.

I also noted that I had a few issues with dappeteer version, metamask version and puppeteer.
My latest test ran on the following:

  • Metamask: v10.8.1 (Instead of v10.1.1)
  • @chainsafe/dappeteer: 2.4.1 (Instead of 2.3.0)
  • puppeteer: 13.7.0 (Instead of 13.5.0)

In my next update, I will update the base versions as well.

Latest listed items with script

const START_EDITION = 9992; 
const END_EDITION = 9995; 
const NFT_PRICE = 0.01; 
const DROPDOWN_OPTION = 6; 
const DATE_PICK_SKIP = 7; 
const START_HOUR = 23; 
const START_MINUTE = 00; 
const END_HOUR = 23; 
const END_MINUTE = 59;

@Undoqaq I just ran the same the following code piece and successfully put my NFTs up for sale. Take careful note of the start hour and minute along with end hour and minute. You can't list an item with a start hour and minute that is earlier than today as it lists the item from the current timestamp. I suspect your start and end hours caused issues. Also, it is not 0, it will be 00 for hour and 00 for minute as well. It is in 24-hour format.

I also noted that I had a few issues with dappeteer version, metamask version and puppeteer. My latest test ran on the following:

  • Metamask: v10.8.1 (Instead of v10.1.1)
  • @chainsafe/dappeteer: 2.4.1 (Instead of 2.3.0)
  • puppeteer: 13.7.0 (Instead of 13.5.0)

In my next update, I will update the base versions as well.

Latest listed items with script

const START_EDITION = 9992; 
const END_EDITION = 9995; 
const NFT_PRICE = 0.01; 
const DROPDOWN_OPTION = 6; 
const DATE_PICK_SKIP = 7; 
const START_HOUR = 23; 
const START_MINUTE = 00; 
const END_HOUR = 23; 
const END_MINUTE = 59;

Thanks for your answer. I guess start and end hours shouldn't be the problem. Because I also encountered this problem when I filled in 23 00 before. I actually want the start and end hours to be the current latest default time at the time of sale. So I set the start and end time to 0. But I'll check the version and try to run successfully. Thanks again for your answer.

Understood, but unfortunately a "current" / "future" date needs to be set. It will use this value for items that you are putting on sale, so what I usually do is I put my items up for sale from the morning and I put the start hour and minute to somewhere in the evening, so that I know that I can put quite a number of items up for sale at a time. Please also use double digits for your time items and not single items.

For example:
const START_HOUR = 01;
const START_MINUTE = 15;
const END_HOUR = 09;
const END_MINUTE = 10;

const START_HOUR = 23;
const START_MINUTE = 59;
const END_HOUR = 23;
const END_MINUTE = 59;

const START_HOUR = 20;
const START_MINUTE = 23;
const END_HOUR = 21;
const END_MINUTE = 21;

Maybe test to put a single item up for sale with the time in the future, like my example, and see if you can get it up for sale.

@thepeanutgalleryandco Good news! I solved it, no relation to version and start end hour. Just need to change the code ”await page.keyboard.press('Tab', { page });” in sell_nfts.js to “await page.keyboard.press('Enter', { page });”. I don't know why my computer can't use “Tab” to exit the date picker. But it works with Enter. Also my start and end hours are still 0, and the sale is successful. Thanks for your help.
PS:My computer is mac
Old:
old
New:
new

That is very interesting, I am using a mac as well @Undoqaq , and tab works without issues on my end to move between the settings as that is used on all the pages to move on to the next items.

@thepeanutgalleryandco If you're also using a mac, that's really weird. But I do currently use enter and it works. And a new question, in the process of selling, occasionally a few NFTs will fail. Maybe 4-5 out of 100, and I think it must be my network problem.