First of all follow step by step to avoid mistakes/errors, I'm starting with the basic selenium structure :
Now define the login URL by a string or alternatively you can just use driver.get("<URL>"); personally, I prefer defining a local variable and using it as its easy to change in case if need.
Now that we have our home page opened we can enter the Username and Password to log in the application.
Next task will be to navigate to the create new post page and here are the stepsNow define the login URL by a string or alternatively you can just use driver.get("<URL>"); personally, I prefer defining a local variable and using it as its easy to change in case if need.
Now that we have our home page opened we can enter the Username and Password to log in the application.
Yay ! we've reached to the Add New Post page and now we can enter the details for the post and then we can save it,
So this is how we have automated wordpress blog posting, here is the full code