Python Forum
go_to() missing 1 required positional argument: 'url'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
go_to() missing 1 required positional argument: 'url'
#1
[Image: 39193552_525328034562351_519385636281516...e=5C09D16C]

if I run it in windows 10
will do it early,

but on Mac,
it gives this message,
any suggestions ?
Reply
#2
In the future, please use code tags instead of screenshots.

As to your question... your web variable references the Browser class rather than a Browser instance, so you're getting that error because you're calling an unbound method.

The short answer is to add parenthesis at the end of your second line, like so
web = Browser()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error: _vhstack_dispatcher() takes 1 positional argument but 9 were given alexfrol86 3 5,720 May-09-2022, 12:49 PM
Last Post: deanhystad
  What is positional argument self? Frankduc 22 5,493 Mar-06-2022, 01:18 AM
Last Post: Frankduc
  TypeError: missing a required argument: 'y' gible 0 2,846 Dec-15-2021, 02:21 AM
Last Post: gible
  positional argument: 'self' mcmxl22 8 3,195 Dec-13-2021, 10:11 PM
Last Post: deanhystad
  TypeError: missing 3 required positional arguments: wardancer84 9 10,663 Aug-19-2021, 04:27 PM
Last Post: deanhystad
  TypeError: run_oracle_job() missing 1 required positional argument: 'connection_strin python_student 1 1,938 Aug-06-2021, 08:05 PM
Last Post: SheeppOSU
  TypeError: max_value() missing 2 required positional arguments: 'alpha' and 'beta' Anldra12 2 4,168 May-15-2021, 04:15 PM
Last Post: Anldra12
  TypeError: sum() missing 1 required positional argument: 'num2' Insen 3 5,389 Jan-06-2021, 04:25 PM
Last Post: Insen
  Missing 1 required position argument: 'failure' while starting thread. BradLivingstone 3 4,033 Jun-19-2020, 02:31 PM
Last Post: stullis
  TypeError: forward() missing 1 required positional argument: 'x' sveto4ka 4 12,172 Jun-17-2020, 07:25 PM
Last Post: sveto4ka

Forum Jump:

User Panel Messages

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