Can I fit my selenium script into python gui application? - python

Suppose I want to make automation software for GMAIL using selenium in Python
I have made email id textbox , password textbox, from ,to,subject,body text box and send button . if i am clicking on send button it should fetch data from text boxes and process auto login and send mail to the respective person..
Is it possible to do that using selenium and tkinter in Python? please tell me.

Related

How to make a screenshot of scrollable chat on the web page using Python and Selenium?

There is a scrollable chatbot window on the web page. Is it possible to make a snapshot of the whole conversation (with scrolling) using Python and Selenium?
The chat looks similar to this one:
chatbot

In Selenium for Python, is it possible to only execute a function if the program detects you're on a specific webpage?

I'm trying to scrape data off the Crunchbase website. To access the data in full, I have to log in first. I've set the program up to type in my username and password, but for some reason it is very difficult to press the "log in" button. Is there a way with selenium to only execute my data-scraping function when the program detects I'm on a certain webpage?

Reading outlook popup email

In a website I am testing using python, we have a "contact us" button,
that should pop up an outlook email window ready to be sent.
Its body should contain a certain text.
Users should have outlook installed.
I want 3 things, but dont know how:
To wait for the outlook email window to pop up
Read the content
Close the email window
Read about win32com.client, but not sure how
to use it in this case

Adding Connections on Linkedin with selenium and python

I am trying to add connections on Linkedin with Selenium.
I am running into a problem when I try to click each "Connect Now" button. There is a small window that pops up and the script isn't able to click the button. I have tried to click the link and then use driver.find_element_by_class_name('button-primary-large ml1').click()
Side question - How do I connect large and ml1?
When I run the code, it is clicking to connect but then it has a problem trying to click "Send Now" which is what the code above is trying to do. What is a good way for me to click the send now button? I am posting pictures to show what I mean.
You can click the button by using
driver.find_elements_by_css_selector('.send-invite__actions button.button-primary-large').click()

Handling app download window in selenium using python

I am trying to automate instagram by using selenium and python.
I went till login without any problem.
But after logging in, instagram pops up a window saying "experience the best version of instagram by getting the app" which is a download link of instagram app.
I want to ignore this download pop up window, and having trouble with it
1)no buttons to click, only close(❌) button.
2)xpath of close(❌) button not working
Please help me
And thank you
Since you are saying xpath of close(❌) button not working , you can go try to pass the Escape key to close the pop up window.
In Java
Actions action = new Actions(driver);
action.sendKeys(Keys.ESCAPE).build().perform();
Robot robot = new Robot();
robot.keyPress(KeyEvent.VK_ESCAPE);
robot.keyRelease(KeyEvent.VK_ESCAPE);
In Python
webdriver.ActionChains(driver).send_keys(Keys.ESCAPE).perform()
robot = Robot()
robot.press_and_release(Keys.escape)

Categories

Resources