Record http form posts via a browser

For a simple interaction, you don’t really need a tool like Selenium that will record and playback requests. You only need the tools you’ve already mentioned: Chrome already comes with the Developer Tools that you need: use the Network tab. No plugin to download. I don’t know if Safari will work — I don’t see … Read more

Windows Console Application Getting Stuck (Needs Key Press) [duplicate]

If the user accidentally clicks into the black console window, the cursor changes to a filled white rectangle, and the app hangs at the next Console.Write statement, until another clic is made. It is a generic feature of the Console window when its “QuickEdit Mode” is enabled. In order to disable that feature, you should … Read more

element not interactable exception in selenium web automation

Try setting an implicit wait of maybe 10 seconds. gmail.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); Or set an explicit wait. An explicit waits is code you define to wait for a certain condition to occur before proceeding further in the code. In your case, it is the visibility of the password input field. (Thanks to ainlolcat’s comment) WebDriver gmail= … Read more

how does selenium webdriver upload files to the browser?

Nice question buddy…they have written a HTTP proxy to solve the Javascript secuirty restrictions. Using this proxy made it possible to side-step many of the constraints of the “same host origin” policy, where a browser won’t allow Javascript to make calls to anything other than the server from which the current page has been served. … Read more

How install crx Chrome extension via command line?

For unpacked extensions, you can run with the command line flag: <path to chrome> –load-extension=<path to extension directory> For installing a packaged extension in a .crx file, you can use the “external extensions” mechanism to automatically install from either an autoupdate url or a local path: https://developer.chrome.com/extensions/external_extensions Two things of note: -Because this mechanism is … Read more

How to get Bundle Id of your app iOS UIA automation

You’d use: [[NSBundle mainBundle] bundleIdentifier] + mainBundle “[r]eturns the NSBundle object that corresponds to the directory where the current application executable is located.” and hence will return an NSBundle object for the application bundle. [- bundleIdentifier] Returns “[t]he receiver’s bundle identifier, which is defined by the CFBundleIdentifier key in the bundle’s information property list.”

In MSTest, How can I verify exact error message using [ExpectedException(typeof(ApplicationException))]

You can create your own ExpectedException attribute where you can Assert the message of the Exception that was thrown. Code namespace TestProject { public sealed class MyExpectedException : ExpectedExceptionBaseAttribute { private Type _expectedExceptionType; private string _expectedExceptionMessage; public MyExpectedException(Type expectedExceptionType) { _expectedExceptionType = expectedExceptionType; _expectedExceptionMessage = string.Empty; } public MyExpectedException(Type expectedExceptionType, string expectedExceptionMessage) { _expectedExceptionType = … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)