2323 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2424 * SOFTWARE.
2525 */
26+ #nullable enable
2627
2728using System . Text . RegularExpressions ;
2829
@@ -45,25 +46,25 @@ public FrameLocator(Frame parent, string selector)
4546
4647 public ILocator Owner => new Locator ( _frame , _frameSelector ) ;
4748
48- ILocator IFrameLocator . GetByAltText ( string text , FrameLocatorGetByAltTextOptions options )
49+ ILocator IFrameLocator . GetByAltText ( string text , FrameLocatorGetByAltTextOptions ? options )
4950 => Locator ( Core . Locator . GetByAltTextSelector ( text , options ? . Exact ) ) ;
5051
51- public ILocator GetByAltText ( Regex text , FrameLocatorGetByAltTextOptions options = null )
52+ public ILocator GetByAltText ( Regex ? text , FrameLocatorGetByAltTextOptions ? options = null )
5253 => Locator ( Core . Locator . GetByAltTextSelector ( text , options ? . Exact ) ) ;
5354
54- public ILocator GetByLabel ( string text , FrameLocatorGetByLabelOptions options = null )
55+ public ILocator GetByLabel ( string text , FrameLocatorGetByLabelOptions ? options = null )
5556 => Locator ( Core . Locator . GetByLabelSelector ( text , options ? . Exact ) ) ;
5657
57- public ILocator GetByLabel ( Regex text , FrameLocatorGetByLabelOptions options = null )
58+ public ILocator GetByLabel ( Regex text , FrameLocatorGetByLabelOptions ? options = null )
5859 => Locator ( Core . Locator . GetByLabelSelector ( text , options ? . Exact ) ) ;
5960
60- public ILocator GetByPlaceholder ( string text , FrameLocatorGetByPlaceholderOptions options = null )
61+ public ILocator GetByPlaceholder ( string text , FrameLocatorGetByPlaceholderOptions ? options = null )
6162 => Locator ( Core . Locator . GetByPlaceholderSelector ( text , options ? . Exact ) ) ;
6263
63- public ILocator GetByPlaceholder ( Regex text , FrameLocatorGetByPlaceholderOptions options = null )
64+ public ILocator GetByPlaceholder ( Regex text , FrameLocatorGetByPlaceholderOptions ? options = null )
6465 => Locator ( Core . Locator . GetByPlaceholderSelector ( text , options ? . Exact ) ) ;
6566
66- public ILocator GetByRole ( AriaRole role , FrameLocatorGetByRoleOptions options = null )
67+ public ILocator GetByRole ( AriaRole role , FrameLocatorGetByRoleOptions ? options = null )
6768 => Locator ( Core . Locator . GetByRoleSelector ( role , new ( options ) ) ) ;
6869
6970 public ILocator GetByTestId ( string testId )
@@ -72,21 +73,21 @@ public ILocator GetByTestId(string testId)
7273 public ILocator GetByTestId ( Regex testId )
7374 => Locator ( Core . Locator . GetByTestIdSelector ( Core . Locator . TestIdAttributeName ( ) , testId ) ) ;
7475
75- public ILocator GetByText ( string text , FrameLocatorGetByTextOptions options = null )
76+ public ILocator GetByText ( string text , FrameLocatorGetByTextOptions ? options = null )
7677 => Locator ( Core . Locator . GetByTextSelector ( text , options ? . Exact ) ) ;
7778
78- public ILocator GetByText ( Regex text , FrameLocatorGetByTextOptions options = null )
79+ public ILocator GetByText ( Regex text , FrameLocatorGetByTextOptions ? options = null )
7980 => Locator ( Core . Locator . GetByTextSelector ( text , options ? . Exact ) ) ;
8081
81- public ILocator GetByTitle ( string text , FrameLocatorGetByTitleOptions options = null )
82+ public ILocator GetByTitle ( string text , FrameLocatorGetByTitleOptions ? options = null )
8283 => Locator ( Core . Locator . GetByTitleSelector ( text , options ? . Exact ) ) ;
8384
84- public ILocator GetByTitle ( Regex text , FrameLocatorGetByTitleOptions options = null )
85+ public ILocator GetByTitle ( Regex text , FrameLocatorGetByTitleOptions ? options = null )
8586 => Locator ( Core . Locator . GetByTitleSelector ( text , options ? . Exact ) ) ;
8687
8788 IFrameLocator IFrameLocator . FrameLocator ( string selector ) => new FrameLocator ( _frame , $ "{ _frameSelector } >> internal:control=enter-frame >> { selector } ") ;
8889
89- public ILocator Locator ( string selector , FrameLocatorLocatorOptions options = null )
90+ public ILocator Locator ( string selector , FrameLocatorLocatorOptions ? options = null )
9091 => new Locator ( _frame , $ "{ _frameSelector } >> internal:control=enter-frame >> { selector } ", new ( )
9192 {
9293 Has = options ? . Has ,
@@ -99,7 +100,7 @@ public ILocator Locator(string selector, FrameLocatorLocatorOptions options = nu
99100 HasNotTextString = options ? . HasNotTextString ,
100101 } ) ;
101102
102- public ILocator Locator ( ILocator locator , FrameLocatorLocatorOptions options = null )
103+ public ILocator Locator ( ILocator locator , FrameLocatorLocatorOptions ? options = null )
103104 {
104105 var locatorImpl = ( Locator ) locator ;
105106 if ( locatorImpl . _frame != _frame )
0 commit comments