Need the bot to search for a valid keyword on a product page and exclude unacceptable keyword values

Need your help to create a bot which does the following on a product page link such as this example

  1. The bot should check for certain keywords, which would be provided in a “Valid words” column on an Excel sheet. For the example-link shared, the keyword we are trying to look up is “Nickel”.

  2. This sheet would also have a column for “Invalid words”. In our example, the invalid word against “Nickel” is “Polished Nickel”. So ideally, if Nickel is part of Polished Nickel on the product page, it should be rejected by the bot. If only Nickel is found and Polished Nickel is not found, it should be accepted.

  3. Finally, if the bot is able to find the valid word and not the invalid word, the bot should print “Successful” in the Excel sheet in a separate column. If the bot is able to find both the valid word and the invalid word, the bot should print “Failure” in the Excel sheet. If the bot is not able to find both the valid and invalid words, the bot should print “Failure” in the Excel sheet.

OCR is unreliable. It would be better to use Get Text and then logic to check for the words in the resulting data.

They didn’t say anything about the position of the words being meaningful. Get Text can get the text of the page in one shot, into one variable. And it will be 100% accurate.

OCR is not reliable. It often gets things wrong.

I was trying to search for the keyword “Nickel” on two different links - Link 1 and Link 2. Is it possible to focus only on the product details and specifications section of a product page? Currently, it highlights keywords in all the text on the page, including unwanted sections like carousels and recommended product highlights.

How can I make the bot find keywords only from the necessary sections of the websites? The bot will need to visit many websites, so there is no fixed layout. Therefore, creating a bot based on a specific website layout is not feasible.

That is incorrect, that is not how selectors work.

shifting of the required fields to some diff position.

What required fields? You just Get Text the whole page and then look for the words they’re looking for.

Get Text would fail as soon as the position changes

No it wouldn’t. Selectors don’t work like that.

Yes, you just have to get your selectors correct. Are you able to give us a link to the page?

How can I make the bot find keywords only from the necessary sections of the websites?

Use Get Text with proper selectors.

Therefore, creating a bot based on a specific website layout is not feasible.

If the selectors are different on every web site, there is no choice but to have a different activity for each web site.

I didn’t suggest it. I explained that it’s how things work.

Tell me how you get the automation to just know the selector for 100 different web sites.