Why does my Selenium VBA code no longer work? - excel

I have a very simple VGA macro in Excel that worked fine for awhile and now has stopped. I now get one of the two error message below:
The code is somewhat longer, but I've taken out the irrelevant lines; even what I have below doesn't work:
Public edgebot As WebDriver
Sub EUPatentClass()
edgebot.Start "edge"
End Sub
The references are as follows:
Current version of Edge is Version 108.0.1462.54 (Official build) (64-bit)
Current version of edgedriver.exe (renamed from msedgedriver.ext) is also Version 108.0.1462.54
I've tried uninstalling and then reinstalling Selenium 2.0.9, and also repairing .NET Core Runtime 3.1.32(x64) and .NET SDK 6.0.307(x64). I'm running Windows 10, ver 22H2 (Build 19045.2364), fully patched and up to date.
Can anyone give me a suggestion as to what to try next? THANKS!!!

Related

pywhatkit.sendwhatmsg_to_group function is not working

It might sound crazy but yesterday the function pywhatkit.sendwhatmsg_to_group worked fine with me but today I do not seem to make it work. The message was sent using the group id.
pywhatkit.sendwhatmsg_to_group('Groupid','Testing message',11,51)
But it just worked once. Now the window opens and the particular group also gets selected but the message doesn't get typed not sent.
Has this function worked for anyone?
I am using it on windows machine and python3.
I am using:
OS: macOs Big Sur 11.4
Browser:O Google Chrome 91.0.4472.114
IDE: PyCharm CE 2021.1.3
Pywhatkit: 5.0
I changed a line of code of the sendwhatmsg_to_group function to work in my environment.
I replaced the code (line 166):
pg.click(width / 2, height - height / 10)
with this:
pg.click(width / 2, height / 2)
And then it worked.
PS: The previous code was opening an application from my program bar.
Try this. It worked for me on Python 3.9.12 jupyter notebook
pwt.sendwhatmsg_to_group_instantly('Groupid','Testing message')

node-serialport 6.x.x doesn't receive data or errors on Windows (but does on Mac)

I am using the following library to connect via USB to an external device:
https://github.com/node-serialport/node-serialport
I set up the following sample project to narrow down where the issue might be:
https://github.com/nyoung697/node-serial-test
This code works on my Mac. The device I am connecting to accepts an ascii command and the carriage return to terminate that command.
In the example project, I am passing in 'V\r' and am expecting the version of the device to be returned. When I run this code on my Mac, I get the expected response.
However, when I run it on my Windows 10 machine, I do not get any response at all. Neither the port.on('data') or port.on('error') events are hit.
I tested downgrading the serialport library to version 4.0.7 and it does work.
Does anyone have any ideas what might have changed between 4 => 6?
P.S. I edited this question, as I originally thought it had something to do with Electron, however after doing this simple test with only node.js, I believe I have narrowed it down to this version of the library on Windows.
Okay... I just figured this out.
All I needed to do was add the property 'rtscts' to the openOptions object I pass in to the constructor and set it to true.
const SERIAL_PORT_SETTINGS = {
baudRate: 115200,
rtscts: true
};
let port = new SerialPort(devicePath, SERIAL_PORT_SETTINGS);
I figured this out by digging around in the release notes. I noticed that from v5.x.x to 6.0.0 the breaking changes included making this value default to false.
windows: We previously hard coded to have RTS on for windows at all times it now default to off.

NSProgressIndicator built-in animation raises CA_ASSERT_MAIN_THREAD_TRANSACTIONS

This looks like a bug in either NSProgressIndicator or Xcode 9 to me:
Run Xcode 9 Beta 1 or Beta 4, in macOS 10.12.6.
File > New Project, macOS, Cocoa app, Objective-C or Swift, ARC or not, no storyboards, latest (10.13) SDK.
In the app target's environment, set CA_ASSERT_MAIN_THREAD_TRANSACTIONS=1.
In app delegate, add a IBOutlet progressIndicator.
In the nib, add a NSProgressIndicator to the window, connect to that outlet. Leave the checkbox Indeterminate switched on.
In -applicationDidFinishLaunching, call -startAnimation: on progressIndicator.
Build and run.
Expected Result:
Progress indicator should happily show indeterminate progress, because I did everything on the main thread.
Actual Result:
App crashes, citing CA_ASSERT_MAIN_THREAD_TRANSACTIONS, when
-startAnimation: is called.
You can see this in a tiny demo project.
Did I do anything wrong? Is my Expected Result incorrect?
P.S. I asked this on Apple's Developer Forums, but still awaiting moderator approval after 2 working days, so I deleted it and came here instead :(
Update: Still lacking an explanation, I filed Apple Bug 33593575.
This was a bug in NSProgressIndicator. Your bug report (thank you for filing!) was marked as a duplicate of an earlier bug, which was already resolved in macOS 10.13.

Getting started with Datacell on MonetDB

I am a master student working with MonetDB for my thesis. I installed MonetDB and now I need to work with the DataCell extension to proceed. I am on Lubuntu 15.04 and started the MonetDB tutorial, however when I begin to work with the DataCell (https://www.monetdb.org/Documentation/Extensions/Streams), I keep finding errors.
For example, on the "set optimizer = 'datacell_pipe';" instruction, I get the error "optimizer 'datacell_pipe' unknown". I also tried the "sensor --host=localhost --port=50500 --events=1000 --columns=3 & " command, which is not found.
I am using the July 2015 release, and I installed every package related to the MonetDB on Linux repositories.
Thanks in advance!
DataCell was officially removed in the July2015 release, along with the required datacell_pipe optimiser. Mostly do the changes in the low-level APIs that its query pipeline relied on. The last release know to work good with DataCell was Feb2013-SP6.
There are plans for a port to the new version or a new implementation. Timing might not be great, if you plan to use it for master thesis - it will take a while until a new version is available.

Excel export works locally, fields become hidden when running on server

OK, so i have a SmartGWT web application, where i have some reports running in list grids.
I export to excel using the Smartgwt built-in export as per the examples using the listgrid.exportclientdata();
Here's the issue:
-When running locally, all works fine and i can open the XLSX file and see all data.
-When running from the server, the columns containing data become hidden! If i manually do the "unhide" thing from within Excel, i can see the columns...
My local environment is Mac OSX, Mountain Lion(also tried earlier), running Sun's Java.
The prod server is Debian running OpenJDK.
Not sure if that would have something to do with it, and i am at a loss as to how i go about solving it... Running my webapp on Tomcat6 in both environments.
For others, searching the stackoverflow void for answers to riddles in the dark:
This was caused by certain fonts not being available in OpenJDK, without any errors being logged anywhere...
I switched to Sun's JDK on my Debian as well, and the Excel files now open and display properly.
This an also happen when facing this POI Bug that seems to be related to a Java Bug.
If it's the case changing the Font to something other than Calibri or using jre above 7u21 should fix the issue.
You can also mitigitate the issue and avoid the columns from being totally collapsed by using a code like this
sheet.autoSizeColumn(x);
if (sheet.getColumnWidth(x) == 0) {
// autosize failed use MIN_WIDTH
sheet.setColumnWidth(x, MIN_WIDTH);
}

Resources