-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 特殊文字コードによる楽曲名の場合、意図せずソフトクラッシュする #30
Labels
Comments
SoundCloud Service はまだローカルブランチにしかいないので、 |
SagiriSelenium 側のソース部分かもと思って調査したけれど、検討違いかもしれない。 /// <summary>
/// Process for uploading album art to Twitter.
/// </summary>
/// <param name="isCompletedPreTask"></param>
/// <param name="tweet"></param>
/// <returns></returns>
private async ValueTask<bool> _UploadAlbumArtProcessAsync(Task seleniumTask, string tweet, bool isUploadPicture)
{
try
{
// Here ChromeDriver instance is not created yet :-(
var waitInterval = (_ChromeDriver is null) ? Helper.InitialInterval : Helper.TinyInterval;
await Task.Delay(waitInterval);
if (!seleniumTask.IsCompletedSuccessfully)
return false;
var textAreaElement = _ChromeDriver?.FindElement(By.ClassName(Helper.TweetTextAreaTag));
textAreaElement?.Click();
textAreaElement?.SendKeys(tweet); |
現状なんもわからんになったので、GW 辺りにゆっくりデバッグする予定 |
ダメだったので、別途考える |
ClipBoard 活用で解決した🚀🚀🚀 /// <summary>
/// Process for uploading album art to Twitter.
/// </summary>
/// <param name="seleniumTask"></param>
/// <param name="tweet"></param>
/// <param name="isUploadPicture"></param>
/// <returns></returns>
private async ValueTask<bool> _UploadAlbumArtProcessAsync(Task seleniumTask, string tweet, bool isUploadPicture)
{
try
{
// Here ChromeDriver instance is not created yet :-(
var waitInterval = (_ChromeDriver is null) ? Helper.InitialInterval : Helper.TinyInterval;
await Task.Delay(waitInterval);
if (!seleniumTask.IsCompletedSuccessfully)
return false;
// [Fix] OpenQA.Selenium.WebDriverException.
var textAreaElement = _ChromeDriver?.FindElement(By.ClassName(Helper.TweetTextAreaTag));
textAreaElement?.Click();
//textAreaElement?.SendKeys(tweet);
ClipboardHelper.SetText(tweet);
Actions action = new(_ChromeDriver);
action.KeyDown(Keys.Control);
action.SendKeys("v");
action.KeyUp(Keys.Control);
action.Perform(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
一例 : Angeart 氏 remix 楽曲
対策案:現状なし
The text was updated successfully, but these errors were encountered: