nateshmbhat / webbot

Web automation library for simple and easy end to end testing and web browser automation that offers super charged features while keeping it simple to use and master
https://pypi.org/project/webbot/
Mozilla Public License 2.0
239 stars 87 forks source link

switch_to_alert removal in webbot.py #90

Open carloalbertogiordano opened 1 year ago

carloalbertogiordano commented 1 year ago

In webbot.py at line 73 the setattribute searches for switch_to_alert function in selenium. This does not exist any more in more recent versions of selenium as it has been replaced by switch_to.alert. Removing 'switch_to_alert' from the getattribute did not cause any issues in my program, so why is that there? Alternatively can it be replaced by self.switch_to_alert=self.driver.switch_to