I decided to play around with seleniumbase
for a project I am working on, and have been trying to figure out the syntax a bit. On the GitHub site, I found a lot of code, documentation, and examples showing off self.click()
and self.type()
. I am trying to get my code to enter the term "MRI" in the procedure box of this website, but it is not working, and most of the code I am trying to access does not have an ID value. I was hoping someone could go through my syntax and shed light on why this is the case.
This is my code:
from seleniumbase import BaseCase
class HealthSiteTest(BaseCase):
def test_health_site(self):
self.open("https://www.finestrahealth.com/")
self.assert_element_present("Finestra")
self.type("input#Procedure", "mri")
if __name__ == "__main__":
from pytest import main
main([__file__])
and this is the html for what I am trying to access:
Any help is very appreciated, thank you!