Python Forum
'<' not supported in web Element and webElement
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'<' not supported in web Element and webElement
#1
Hello Friends,
I'm scrapping data(numbers) from an online site, saving it in variable A&B and using comparison operator < to
check if A<B but am receiving this error:-

if A<B:
TypeError: '<' not supported between instances of 'WebElement' and 'WebElement'

kindly help
Reply
#2
(Jul-30-2019, 01:46 PM)law Wrote: Hello Friends,
I'm scrapping data(numbers) from an online site, saving it in variable A&B and using comparison operator < to
check if A<B but am receiving this error:-

if A<B:
TypeError: '<' not supported between instances of 'WebElement' and 'WebElement'

kindly help

Hello, can you provide the code ?? it seems your are comparison the WebElement instances and not the numbers
Reply
#3
Thanks,
creating a list, saving the values in the list and comparing the lists has solved it. Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to locate element no such element gahhon 6 4,458 Feb-18-2019, 02:09 PM
Last Post: gahhon
  Change single element in 2D list changes every 1D element AceScottie 9 12,061 Nov-13-2017, 07:05 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020