[英]Using FindbyID method in Visual Studio
在 C# 中使用 FindByID 方法時遇到一些問題。 如下所示,程序將無法識別FindBy方法。 代碼的其他部分不會產生錯誤。 Database3DataSet.MemlistRow customerRow = Database3DataSet.MemlistDataTable.FindByI ...
[英]Using FindbyID method in Visual Studio
在 C# 中使用 FindByID 方法時遇到一些問題。 如下所示,程序將無法識別FindBy方法。 代碼的其他部分不會產生錯誤。 Database3DataSet.MemlistRow customerRow = Database3DataSet.MemlistDataTable.FindByI ...
[英]Is there a way to pass a webelement as a parameter?
我正在使用包含三個 ID 定位器的頁面 object 構建三個測試用例。 我想知道是否可以將定位器傳遞給所有三種情況的單個方法。 頁 Object: 測試用例: 我想將一個參數(是、可能或否)傳遞給 clicksButtons 方法,以便我可以在其他兩個測試用例中重用該方法,而無需對其進行硬編碼。 ...
[英]Vba: I want to find element by...(."<table class = "table table-bordered table-condensed table-striped text-center table-hover">") in selenium
我正在使用 Selenium.Driver 來查找應該在網頁中返回特定表格的 div class 元素。 雖然通過按標簽查找方法成功抽象了整個頁面,但我現在面臨的挑戰是,只返回頁面中的表格,除了表格 class 被列為“復合名稱”並且在 Selenium 中不受支持:I'我嘗試了 .xpath 和 ...
[英]How to initialize variable for FindBy annotation in Selenium with Kotlin?
在 Kotlin 中使用 Selenium 的FindBy注釋初始化變量的最佳方法是什么? 就像是 或者 或者 或者是其他東西? 請注意,所有以前的方法都可以完美運行。 ...
[英]Spring-Boot Data JPA findByField does not work on MySQL table REST
我想在 Java Spring Boot JPA 中查詢病毒表中枚舉類型的風險參數: 這是我的病毒類: 我的治療表:(病毒有fk-key治療id) 但是,當我輸入 url 時,我沒有得到所需的數據: http://localhost:9999/api/viruses/?risk=high ...
[英]Method findTopBy (JPA) returns differents objects
我是 Java 的新手,我有一個問題: 我在MessageRepo有一個方法: 並且每次它返回一個不同的消息,盡管它應該只返回排序數據中的第一個。 我究竟做錯了什么? ...
[英]How to find elements with @FindBy if they have multiple id values
我需要聲明頁面元素(移動元素,帶有@FindBy 或@AndroidFindBy),其中有兩個可能的 id,這將根據正在測試的應用程序的版本而改變 - 我們將有一個 id 用於暫存版本,一個用於生產,它們會略有不同(一個會在 id 值的中間有“調試”,另一個不會) 這是否可能(通過使用 OR 或任何 ...
[英]JPA ManyToMany - empty list in findById
在我的 Spring 引導項目中,我有一個實體 class 用戶 和第二個實體 class 角色 在我的一項測試中,我嘗試像這樣將帶有用戶的角色存儲到存儲庫中 調試此代碼后,我發現createdRole已按預期設置用戶,但foundRole沒有。 我怎樣才能獲得foundRole中的用戶呢? 如果 ...
[英]Findby DateTime the recent uploaded articles Symfony
你好,我試圖在我的儀表板上只看到最新的文章,但沒有工作我做了這個 function 這在我的儀表板控制器中 但是當我做一個 var 轉儲時,我沒有帶來任何帖子。 ...
[英]NullPointerException @FindBy in PageObjectModel using ChromeDriver and Chrome through Selenium
我正在嘗試在 Selenium 中實現 PageObjectModel。 但我在@FindBy 處收到 NullPointer 異常。 我希望有人能幫助我找出我的錯誤。 我創建了我的基類,它設置了 config.properties 文件(它包含 url、驅動程序參數)以及設置驅動程序。 Home ...
[英]sequelize - is it possible to use findByPk when Primary key is composite key?
我有 model,稱為 session,具有三個屬性的復合鍵:seesionId、userNameId 和 accountId。 為了創建新記錄,我需要檢查是否已經存在具有相同 userNameId 和 accountId 的 session。 findByPk 的 API: public st ...
[英]Selenium Unable To Locate Element With Any Method
我正在嘗試執行這個簡單的腳本: 但我不斷收到以下錯誤: selenium.common.exceptions.NoSuchElementException:消息:沒有這樣的元素:無法找到元素:{"method":"xpath","selector":"//*[@id="nameofuserid"] ...
[英]Difference between @By and @FindBy in POM using Selenium
在使用 Selenium 到頁面 Object Model 時,任何人都可以通過回答@By和@Findby之間的區別來幫助我。 ...
[英]React js Spring boot and findbyId
大家好,我需要更新我的 object 但是當我嘗試獲取這個 object 時,我在前端使用 react js 時遇到一些錯誤,代碼是: 代碼后端: 我的錯誤是: TypeError: this.state.listeupdate.map is not a function 請問我應該怎么做才能獲取 ...
[英]JPA findBy method always goes to orElseThrow
這是我們的代碼 對於idType我們期待兩個值,它可以是主鍵 id或其對應的identificationType 。 表只有兩列id和identificationType 。 問題是即使op1或op2不為空,它也會拋出ResourceNotFoundException 。 現在如果我像這樣改變我的 ...
[英]Meteor and GroundDB: find by id not returning any entries
我正在嘗試為我的流星應用程序實現一個離線數據庫並選擇使用“GroundDB” 。 現在我仍處於早期學習階段,但我遇到了一個找不到解決方案的問題: 在我的離線收藏中使用 .find 時,我無法通過 id 找到。 所有其他屬性都有效。 我的 mongo DB 中的典型對象如下所示: {_id:"…s ...
[英]Selenium FindBy Amazon Search Giving Error. (java.lang.NullPointerException)
有一個搜索類,我在其中創建了一個方法來進行亞馬遜搜索,主類調用方法 searchFor() 但我一直收到錯誤 線程“main”中的異常 java.lang.NullPointerException 這是主類 ...
[英]Selenium can't find element by @FindBys annotation in case of two conditions
我在頁面上有一個帶有屬性的文本元素: 我正在嘗試使用 FindBys 注釋獲取此元素: 但出現錯誤:org.openqa.selenium.NoSuchElementException:無法使用 By.chained({By.tagName: h5,By.id: email_label}) ...
[英]Please, suggest custom findBy or query
我需要通過幾個參數進行搜索,但如果其中一些參數為null則在搜索時不要考慮它們。 例如,我想找到一個在美國並在 Google 工作的人,但現在我的搜索已實現,以便所有現在在美國或目前在 Google 工作的人。 如果我使用 and 而不是 or,將使用null搜索字段。 現在我的搜索看起來像這樣, ...