Open sramssh opened 4 years ago
Word Yes Excel don't know, but the probably also yes Powerpoint, I don't use Powerpoint
Thanks for the response! I understand that it can be used for desktop apps excel, word and powerpoint. Did you use it for Word Online?
I do not use Office online, never will
Office 365 is a web product, it will be automated using browser automation tools like Selenium or Cypress.io WinAppDriver is designed specifically for desktop Windows applications.
@naeemakram It is not as simple as that, spend some time, figure out how you might select a single word within the document.
@DLightstone do you have any code written for MS Word desktop app using java?
@swethakucherlapatiTR
sorry, I do not work in Java I have no Java MS Word code
@naeemakram It is not as simple as that, spend some time, figure out how you might select a single word within the document.
I know it must be very hard. You can select the entire text using Ctrl + A, Ctrl + C and then read the contents of clipboard to get all the text. But that's as far as I've gone(in an Excel application)
@naeemakram
Not hard, impossible
You need to use Word Automation to manipulate the document.
@DLightstone What is Word Automation? I am trying to edit a Microsoft word document and sendKeys() is not helping.
@swethakucherlapatiTR
Perhaps you have heard of Google Do you know how to use it also?
https://www.google.com/search?client=firefox-b-1-d&q=word+automation
Microsoft Office applications expose an object model which allows you to automate various aspects of the application. Same is leveraged for creating macros. Please see the link below for more information about office automation using VBA. https://docs.microsoft.com/en-us/previous-versions/office/troubleshoot/office-developer/automate-word-create-file-using-visual-basic
@ naeemakram
Perhaps you are familiar with the expression
Give a man a fish and he eats for a day Show a man how to fish and he eats for the rest of his life
Sometimes answering a question is not a good idea
Office 365 is a web product, it will be automated using browser automation tools like Selenium or Cypress.io WinAppDriver is designed specifically for desktop Windows applications.
How can we automate office 365 apps using cypress? are there any libraries to be added in the project?
Can WinAppDriver be used to automate online office apps like Excel, word and powerpoint online?